/* Zarf üzerindeki yerler uygulamadaki EnvelopeLayout ile aynı oranlar (lib/core/widgets/envelope_layout.dart). */
/* web.letterbird.app: uygulamanın ve letterbird.me'nin renkleri ve yazı tipleriyle (Inter arayüz, Lora başlık/mektup, Caveat el yazısı). */
:root {
  --cream50: #FBF8F1; --cream100: #F5EFE2; --cream200: #E9E0CC; --cream300: #DCD0B6; --paper50: #FFFCF5;
  --blue50: #F1F5FF; --blue100: #E3EBFE; --blue200: #C7D6FB; --blue400: #6F94F2; --blue500: #2F6FED; --blue700: #1A46A6;
  --ink900: #1B2440; --ink700: #3C4767; --ink500: #667089; --ink300: #A9AFC2; --ink100: #E8EAF1;
  --green500: #2E9E6B; --green100: #DDF4E8; --coral500: #EE7B60; --coral100: #FDE6DE; --gold: #F6C453; --error: #D64545;
  --shadow: 0 8px 24px rgba(27, 36, 64, .12); --shadow-lg: 0 24px 60px rgba(27, 36, 64, .22);
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --serif: 'Lora', Georgia, serif; --hand: 'Caveat', cursive;
  --side: 272px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--cream50); color: var(--ink900); font: 15px/1.5 var(--ui); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
a { color: var(--blue700); }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--blue500); outline-offset: 2px; }
.muted { color: var(--ink500); } .small { font-size: 13px; }
h1 { font: 600 clamp(28px, 3vw, 40px)/1.15 var(--serif); margin: 0 0 10px; letter-spacing: -.01em; }
h2 { font: 600 22px/1.3 var(--serif); margin: 0 0 8px; }

/* düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0;
  border-radius: 24px; background: var(--blue400); color: var(--ink900); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .05s; }
.btn:hover:not(:disabled) { background: #5f87ee; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { background: rgba(111, 148, 242, .45); color: rgba(27, 36, 64, .45); cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.line { background: #fff; box-shadow: inset 0 0 0 1.5px var(--cream200); }
.btn.line:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink300); background: #fff; }
.btn.danger { background: #fff; color: var(--error); box-shadow: inset 0 0 0 1.5px #F2C6C6; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 18px; }
/* Yeni mektup sayfasında eşleşme ayarları: belirgin, mavi çerçeveli düğme. */
.btn.match-set { color: var(--blue700); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--blue400); }
.btn.match-set:hover:not(:disabled) { background: var(--blue50); box-shadow: inset 0 0 0 1.5px var(--blue500); }
.btn.match-set svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.link { background: none; border: 0; padding: 6px 0; color: var(--blue700); font-weight: 600; cursor: pointer; text-decoration: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--cream200); background: #fff; display: grid; place-items: center;
  cursor: pointer; position: relative; color: var(--ink700); flex: none; }
.icon-btn:hover { border-color: var(--ink300); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.on { background: var(--blue100); border-color: var(--blue200); color: var(--blue700); }
.icon-btn.fav.on { background: var(--coral100); border-color: #F7C3B5; color: var(--coral500); }
.icon-btn.fav.on svg { fill: currentColor; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral500);
  color: #fff; font: 700 11px/18px var(--ui); text-align: center; }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(27, 36, 64, .2); border-top-color: var(--blue500); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; min-height: 50vh; }
.loading .spinner { width: 30px; height: 30px; border-width: 3px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--cream100); color: var(--ink700); }
.tag.blue { background: var(--blue100); color: var(--blue700); } .tag.green { background: var(--green100); color: #1E6E49; }
.tag.gold { background: #FFF1CC; color: #8A5A0B; } .tag.coral { background: var(--coral100); color: #A5432C; }
.error { color: var(--error); font-size: 14px; margin: 8px 0; }
.input { width: 100%; height: 48px; border: 1.5px solid var(--cream200); border-radius: 14px; padding: 0 14px; background: #fff; }
.input:focus { outline: 0; border-color: var(--blue500); }

/* ================================================================== giriş (QR) */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.login-side { padding: 48px 64px; display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.login-side .brand { display: flex; align-items: center; gap: 10px; font: 600 22px/1 var(--serif); }
.login-side .brand img { height: 52px; width: auto; }
.login-side h1 { font-size: clamp(34px, 3.4vw, 48px); margin: 12px 0 0; }
.login-side .lead { font-size: 18px; color: var(--ink700); max-width: 34ch; margin: 0; }
.login-steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.login-steps li { display: flex; gap: 14px; align-items: center; font-size: 16px; }
.login-steps .num { width: 32px; height: 32px; border-radius: 50%; background: var(--blue100); color: var(--blue700); display: grid; place-items: center; font-weight: 600; flex: none; }
.keep { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--cream200); border-radius: 14px; padding: 14px 16px; max-width: 460px; cursor: pointer; }
.keep input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue500); }
.keep b { display: block; font-weight: 600; } .keep span { color: var(--ink500); font-size: 13px; }
.login-art { background: var(--blue50); display: grid; place-items: center; position: relative; overflow: hidden; }
.login-art::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 10px; background: repeating-linear-gradient(-45deg,
  #FEC6E4 0 14px, #fff 14px 22px, #B9D7FE 22px 36px, #fff 36px 44px, #FF773D 44px 58px, #fff 58px 66px, #ECE8AE 66px 80px, #fff 80px 88px, #578F65 88px 102px, #fff 102px 110px); }
.qr-card { background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); padding: 34px 34px 26px; width: min(380px, 90%); text-align: center; position: relative; z-index: 1; }
.qr-box { width: 264px; height: 264px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 16px; background: #fff; position: relative; }
.qr-box svg, .qr-box canvas { width: 100%; height: 100%; }
.qr-box.dim > svg { opacity: .12; filter: blur(2px); }
.qr-box .qr-over { position: absolute; inset: 0; display: grid; place-items: center; }
.qr-status { font-weight: 600; display: flex; gap: 10px; align-items: center; justify-content: center; min-height: 24px; }
.qr-timer { color: var(--ink500); font-size: 13px; margin-top: 6px; }
/* Büyük zarf iki sütunun arasında, pulu üzerinde; QR kartı sağda */
.login-art { overflow: visible; }
.login-art .hero-env { position: absolute; left: -26%; top: 50%; width: min(520px, 56%); margin-top: -150px; z-index: 0; animation: floatA 7s ease-in-out infinite; }
.login-art .hero-env .env { width: 100%; filter: drop-shadow(0 26px 34px rgba(27, 36, 64, .24)); }
.login-art .hero-env .stamp { position: absolute; right: 5.5%; top: 6%; width: 18%; transform: rotate(4deg); }
.login-art .qr-card { margin-left: 22%; }
.login { overflow-x: hidden; }
@keyframes floatA { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-12px) rotate(-6deg); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(8deg); } 50% { transform: translateY(10px) rotate(5deg); } }
.stores { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.store { display: inline-flex; flex-direction: column; padding: 8px 16px; border-radius: 12px; background: var(--ink900); color: #fff; text-decoration: none; min-width: 140px; }
.store small { font-size: 11px; opacity: .75; } .store b { font-weight: 600; }

/* ================================================================== kabuk */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.shell.collapsed { --side: 76px; }
.side { position: sticky; top: 0; height: 100vh; overflow: auto; background: #fff; border-right: 1px solid var(--cream200); padding: 16px 14px 20px;
  display: flex; flex-direction: column; gap: 14px; }
.side .brand-row { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; }
.side .brand { display: flex; align-items: center; gap: 8px; font: 600 20px/1 var(--serif); text-decoration: none; color: var(--ink900); }
.side .brand img { height: 38px; width: auto; display: block; }
.me-card { border: 1px solid var(--cream200); border-radius: 18px; padding: 14px; display: grid; gap: 10px; }
.me-top { display: flex; gap: 12px; align-items: center; }
.me-top img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--cream100); }
.me-top b { display: block; font: 700 16px/1.2 var(--ui); letter-spacing: .04em; }
.me-top .mail { font-size: 12px; color: var(--ink500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.me-top .ok { color: var(--green500); font-size: 12px; font-weight: 600; }
.me-meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.share { display: grid; gap: 6px; }
.share button { display: flex; align-items: center; gap: 8px; justify-content: center; min-height: 38px; border-radius: 12px; border: 0; background: var(--blue100);
  color: var(--blue700); font-weight: 600; font-size: 13px; cursor: pointer; }
.share button:hover { background: var(--blue200); }
.share .share-btn { display: flex; align-items: center; gap: 8px; justify-content: center; min-height: 38px; border-radius: 12px; background: var(--blue100);
  color: var(--blue700, #1A46A6); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.share .share-btn:hover, .share .share-btn.active { background: var(--blue200); }
.share .share-btn svg { width: 17px; height: 17px; }
.collapsed .share .share-btn .label { display: none; }
/* Profilimi paylaş sayfası */
.share-page { display: grid; gap: 18px; max-width: 760px; }
.share-page .card { background: #fff; border: 1px solid var(--line, #E6E2D8); border-radius: 18px; padding: 18px 20px; display: grid; gap: 12px; }
.share-page h3 { margin: 0; }
.share-page .linkrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-page .linkrow code { font: 600 15px/1.3 var(--sans, Inter, sans-serif); background: var(--blue100); border-radius: 10px; padding: 9px 12px; overflow-wrap: anywhere; }
.share-page .seg { display: inline-flex; gap: 4px; background: #F3EFE6; border-radius: 999px; padding: 4px; justify-self: start; }
.share-page .seg button { border: 0; background: none; border-radius: 999px; padding: 7px 14px; font-weight: 600; cursor: pointer; }
.share-page .seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(27, 36, 64, .15); }
.share-page .sh-wrap { display: grid; place-items: center; background: #F3EFE6; border-radius: 14px; padding: 16px; }
.share-page .sh-canvas { width: auto; height: auto; max-width: 100%; max-height: 62vh; border-radius: 8px; box-shadow: 0 10px 26px -12px rgba(27, 36, 64, .4); }
.share-page .row { display: flex; flex-wrap: wrap; gap: 10px; }
.share svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.write-btn { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; border-radius: 16px; background: var(--blue400); color: var(--ink900);
  font-weight: 600; text-decoration: none; }
.write-btn:hover { background: #5f87ee; }
/* Yazma düğmesi yalnızca yazma sayfasındayken dolu; diğer sayfalarda çerçeveli (seçiliymiş gibi görünmesin). */
.write-btn:not(.active) { background: #fff; box-shadow: inset 0 0 0 1.5px var(--blue400); color: var(--blue700); }
.write-btn:not(.active):hover { background: var(--blue50); }
.write-btn:not(.active) .left { background: var(--blue50); }
.write-btn .left { margin-left: auto; font-size: 12px; background: rgba(255, 255, 255, .55); padding: 2px 10px; border-radius: 10px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink700); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--cream50); }
.nav a.active { background: var(--blue100); color: var(--blue700); font-weight: 600; box-shadow: inset 3px 0 0 var(--blue500); }
.nav a .count { margin-left: auto; font-size: 12px; font-weight: 600; border: 1px solid var(--cream300); border-radius: 10px; padding: 0 8px; color: var(--ink700); }
.nav a .count.hot { background: var(--coral500); border-color: var(--coral500); color: #fff; }
.side svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side .foot { margin-top: auto; display: grid; gap: 8px; }
.side .foot .note { font-size: 12px; color: var(--ink500); background: var(--cream50); border-radius: 10px; padding: 8px 10px; }
.shell.collapsed .side .label, .shell.collapsed .side .count, .shell.collapsed .me-card, .shell.collapsed .share, .shell.collapsed .foot .note,
.shell.collapsed .write-btn .left, .shell.collapsed .write-btn .left-info, .shell.collapsed .side .brand span { display: none; }
.shell.collapsed .nav a, .shell.collapsed .write-btn { justify-content: center; padding: 10px 0; }
.shell.collapsed .brand-row { justify-content: center; }
.shell.collapsed .side .brand { display: none; }
.side-toggle { border: 2px solid var(--ink300); color: var(--ink900); }
.side-toggle svg { stroke-width: 2.3; }
.shell.collapsed .side-toggle { margin: 0 auto 6px; background: var(--blue100); border-color: var(--blue200); color: var(--blue700); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px 28px; border-bottom: 1px solid var(--cream200); background: rgba(251, 248, 241, .92);
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(6px); }
.topbar h2 { margin: 0; font-size: 21px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .sp { flex: 1; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #FFF1CC; color: #8A5A0B; }
.view { padding: 24px 28px 60px; flex: 1; }

/* ================================================================== posta kutusu: zarf yığını */
.box-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.box-bar select { height: 40px; border-radius: 12px; border: 1.5px solid var(--cream200); background: #fff; padding: 0 12px; min-width: 170px; }
.box-bar .hint { margin-left: auto; font-size: 13px; color: var(--ink500); }
.desk { position: relative; border-radius: 26px; min-height: 460px; background: radial-gradient(circle at 30% 20%, #FFFDF8, #F3ECDD 70%);
  box-shadow: inset 0 0 0 1px var(--cream200); overflow: hidden; touch-action: none; }
.pile-item { position: absolute; width: var(--ew); cursor: grab; user-select: none; -webkit-user-select: none; transition: box-shadow .2s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.pile-item.dragging { cursor: grabbing; transition: none; }
/* Üzerine gelinen zarf geçici olarak öne çıkar (arkadakinin yazısı da okunur); tıklanınca kalıcı olarak üstte kalır. */
.pile-item:hover, .pile-item:focus-visible, .pile-item.dragging { z-index: 9999 !important; translate: 0 -6px; }
.pile-item:hover .envcard { filter: drop-shadow(0 24px 30px rgba(27, 36, 64, .28)); }
.pile-item:focus-visible { outline: 3px solid var(--blue500); outline-offset: 4px; border-radius: 6px; }
.envcard { position: relative; aspect-ratio: 12 / 7; filter: drop-shadow(0 10px 16px rgba(27, 36, 64, .16)); }
.envcard.pc { aspect-ratio: 3 / 2; width: 97%; margin: 0 auto; } /* zarf görsellerinin kenarında ~%3 saydam boşluk var: kartpostal zarfın görünen genişliğinde */
.envcard > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; border-radius: 4px; pointer-events: none; }
.envcard.pc > img.bg { object-fit: cover; border-radius: 6px; }
.pile-item.top .envcard { filter: drop-shadow(0 22px 30px rgba(27, 36, 64, .28)); }
.envcard .who { position: absolute; left: 5.8%; top: 8.5%; right: 30%; font: 600 14px/1.35 var(--serif); color: #2A2F45; pointer-events: none; }
.envcard .who .replied { font-style: italic; }
.envcard .corner { position: absolute; right: 6%; top: 10%; width: 16.5%; display: grid; justify-items: center; gap: 4px; pointer-events: none; }
.envcard .corner .stamp { position: static; width: 100%; }
.envcard .corner .date { font: 11px/1.2 var(--serif); color: #2A2F45; text-align: center; white-space: nowrap; }
.envcard.pc .corner .date { text-shadow: 0 0 6px rgba(255, 255, 255, .95); }
.envcard.pc .who { text-shadow: 0 0 6px rgba(255, 255, 255, .95); }
.envcard .who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.envcard .who .sub { font-weight: 400; font-size: 11.5px; }
.envcard .dot { position: absolute; left: 3%; bottom: 9%; width: 11px; height: 11px; border-radius: 50%; background: var(--coral500); box-shadow: 0 0 0 3px rgba(255, 255, 255, .8); }
.envcard > img.stamp2 { position: absolute; right: 23.7%; top: 10%; width: 15.2%; pointer-events: none; }
/* posta damgası pulun sağ altında (uygulamadaki postmarkPlacement ile aynı oranlar) */
.envcard > img.pmark { position: absolute; right: 3.5%; top: 24.7%; width: 22.3%; opacity: .88; pointer-events: none; }
/* Mum mührü zarfın sağ altında (7 Ekim 2026; uygulamadaki sealPlacement ile aynı oranlar). Varsa kalp onun soluna kayar. */
.envcard > img.seal { position: absolute; right: 4.5%; bottom: 5.5%; width: 13%; pointer-events: none; }
.envcard.has-seal .heart { right: 22%; }
.stampbox.filled { position: relative; }
.stampbox .pmark { position: absolute; left: -50%; top: 25%; width: 100%; opacity: .88; pointer-events: none; }
.envcard .heart { position: absolute; right: 5.5%; bottom: 9%; width: 18px; height: 18px; color: var(--coral500); }
.envcard .heart svg { width: 100%; height: 100%; fill: currentColor; }
.envcard .note { position: absolute; left: 5.8%; bottom: 9%; font-size: 11px; color: #2A2F45; background: rgba(255, 255, 255, .7); padding: 1px 6px; border-radius: 6px; pointer-events: none; }
.envcard .unread-note { left: 9%; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 18px; }
.pager button { min-width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--cream200); background: #fff; font-weight: 600; cursor: pointer; }
.pager button.on { background: var(--blue500); border-color: var(--blue500); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }
.empty { display: grid; place-items: center; gap: 12px; text-align: center; padding: 70px 20px; color: var(--ink500); }
.empty img { width: 180px; opacity: .85; }
/* Boş kutu zarfı: büyükçe, hafif açılı, sağ üstte pul (zarf oranı 12:7, pul uygulamadaki gibi genişliğin %16,5'i). */
.empty-env { position: relative; width: min(300px, 72vw); aspect-ratio: 12 / 7; transform: rotate(-6deg); filter: drop-shadow(0 14px 20px rgba(27, 36, 64, .18)); margin-bottom: 8px; }
.empty-env img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; opacity: 1; border-radius: 4px; }
.empty-env img.stamp { position: absolute; right: 6%; top: 10%; width: 16.5%; opacity: 1; transform: rotate(3deg); }

/* ================================================================== okuma */
.read-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.read-bar .who { display: grid; }
.read-bar .who button { font: 700 18px/1.2 var(--ui); letter-spacing: .04em; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.read-bar .who button:hover { color: var(--blue700); }
.read-bar .who span { font-size: 13px; color: var(--ink500); }
.read-bar .sp { flex: 1; }
.letter-sheet { background: var(--paper50) center / cover no-repeat; border: 1px solid var(--cream200); border-radius: 22px; box-shadow: var(--shadow);
  padding: 44px 52px 52px; min-height: 60vh; }
.letter-sheet .meta { display: flex; justify-content: space-between; gap: 12px; font: italic 14px/1.4 var(--serif); color: var(--ink500); margin-bottom: 22px; }
.letter-sheet .body { white-space: pre-wrap; word-wrap: break-word; font-size: calc(18px * var(--scale, 1)); line-height: 1.75; }
.single { max-width: 780px; margin: 0 auto; }
.single .letter-sheet { min-height: calc(100vh - 190px); }
.thread { display: grid; grid-template-columns: repeat(2, minmax(0, 700px)); gap: 26px; align-items: start; justify-content: center; }
.thread .col-label { font-size: 13px; font-weight: 600; color: var(--ink500); margin: 0 4px 8px; display: flex; justify-content: space-between; align-items: center; }
.thread .letter-sheet { padding: 32px 36px 40px; min-height: calc(100vh - 215px); }
.thread .earlier { opacity: .96; }
.menu { position: absolute; z-index: 60; background: #fff; border: 1px solid var(--cream200); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 220px; }
.menu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 12px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: left; }
.menu button:hover { background: var(--cream50); }
.menu button.danger { color: var(--error); }

/* ================================================================== yazma */
.stepbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.stepbar .to { font: 600 20px/1.2 var(--serif); }
.dots { display: flex; gap: 6px; } .dots span { width: 28px; height: 5px; border-radius: 3px; background: var(--ink100); } .dots span.on { background: var(--blue500); }
.compose { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px 34px; align-items: start; }
.compose > * { min-width: 0; }
.compose-side { position: sticky; top: 90px; display: grid; gap: 4px; }
.paper { position: relative; border-radius: 22px; border: 1px solid var(--cream200); box-shadow: var(--shadow); background: var(--paper50) center / cover no-repeat; }
.paper textarea { display: block; width: 100%; min-height: max(calc(100vh - 230px), 520px); resize: vertical; border: 0; outline: 0; background: transparent;
  padding: 34px 40px; font-size: calc(18px * var(--scale, 1)); line-height: 1.75; }
.paper textarea::placeholder { opacity: .6; color: inherit; }
.counter { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink500); margin: 8px 4px 0; }
.counter .ok { color: var(--green500); font-weight: 600; } .counter .bad { color: var(--error); font-weight: 600; }
.saved { font-size: 12px; color: var(--ink300); margin: 2px 4px 0; min-height: 16px; }
.saved.error { color: var(--error); font-size: 14px; }
.picker { margin-top: 14px; }
.picker .label { font-weight: 600; font-size: 14px; margin: 0 0 8px; display: flex; justify-content: space-between; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { position: relative; flex: none; width: 70px; height: 70px; border-radius: 12px; border: 2px solid var(--cream200); background: var(--cream100) center / cover no-repeat;
  cursor: pointer; padding: 0; }
.thumb.wide { width: 100px; height: 64px; } .thumb.contain { background-size: contain; background-color: #fff; }
.thumb[aria-pressed="true"] { border-color: var(--blue500); box-shadow: 0 0 0 2px var(--blue200); }
.thumb .lock { position: absolute; right: -6px; top: -6px; font: 700 10px/1 var(--ui); background: var(--ink900); color: #fff; border-radius: 8px; padding: 3px 5px; }
.thumb .lock.prem { background: var(--gold); color: var(--ink900); }
.chip { flex: none; min-width: 56px; height: 44px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--cream200); background: #fff; cursor: pointer; font-size: 19px; position: relative; }
.chip[aria-pressed="true"] { border-color: var(--blue500); background: var(--blue100); }
.chip .lock { position: absolute; right: -6px; top: -6px; font: 700 9px/1 var(--ui); background: var(--gold); border-radius: 7px; padding: 2px 4px; }
.swatch { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--cream200); cursor: pointer; padding: 0; position: relative; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--blue500); }
.swatch .lock { position: absolute; right: -8px; top: -8px; font: 700 9px/1 var(--ui); background: var(--gold); color: var(--ink900); border-radius: 7px; padding: 2px 4px; }
.sizer { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--cream200); border-radius: 12px; background: #fff; padding: 2px; }
.sizer button { border: 0; background: none; width: 38px; height: 34px; border-radius: 10px; cursor: pointer; font-weight: 700; }
.sizer button:hover:not(:disabled) { background: var(--cream50); } .sizer button:disabled { opacity: .35; cursor: default; }
.sizer span { font-size: 12px; min-width: 42px; text-align: center; color: var(--ink700); }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--blue100); color: var(--ink700); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin: 14px 0 0; }
.notice.warn { background: var(--coral100); }
.actions { display: grid; gap: 6px; margin-top: 16px; }
.surface-wrap { max-width: 780px; width: 100%; margin: 0 auto; }
.surface-wrap.pc { max-width: 720px; }
/* yanıt: solda onun mektubu, sağda benim */
.reply { display: grid; grid-template-columns: repeat(2, minmax(0, 700px)); gap: 26px; align-items: start; justify-content: center; }
.reply.pc .theirs .pcback-only { max-width: 520px; }
.reply .theirs .pcback-only .postcard { box-shadow: var(--shadow); }
.reply > * { min-width: 0; }
.reply .theirs { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; border-radius: 22px; }
.reply .theirs .letter-sheet { min-height: calc(100vh - 190px); padding: 30px 34px; }
.reply .paper textarea { min-height: max(calc(100vh - 280px), 460px); padding: 30px 34px; }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; position: relative; }
.tools .tool { display: inline-flex; gap: 8px; align-items: center; height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--cream200); background: #fff; cursor: pointer; font-weight: 500; font-size: 14px; }
.tools .tool .sw { width: 16px; height: 16px; border-radius: 50%; }
.tools .tool .th { width: 22px; height: 22px; border-radius: 5px; background: center / cover; }
.pop { position: absolute; z-index: 40; top: 46px; left: 0; background: #fff; border: 1px solid var(--cream200); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px; width: 360px; }
/* zarf ve ön izleme */
.preview-box { display: grid; place-items: center; min-height: 440px; background: #fff; border: 1px solid var(--cream200); border-radius: 24px; padding: 40px; }
.envelope { position: relative; width: 100%; max-width: 520px; aspect-ratio: 12 / 7; container-type: inline-size; }
.envelope .env { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; filter: drop-shadow(0 12px 22px rgba(27, 36, 64, .18)); }
.envelope .to { position: absolute; left: 6cqw; top: 7cqw; right: 30cqw; font: 600 max(12px, 3.8cqw)/1.3 var(--serif); color: #2A2F45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.envelope .stamp { position: absolute; right: 5.5cqw; top: 6cqw; width: 18cqw; }
.extras { display: grid; gap: 10px; margin-top: 4px; }
.extra { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1.5px solid var(--cream200); border-radius: 16px; padding: 14px 16px; cursor: pointer; }
.extra.on { border-color: var(--blue500); background: var(--blue50); }
.extra input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue500); }
.extra b { display: block; } .extra p { margin: 2px 0 0; color: var(--ink500); font-size: 13px; }
.extra .price { margin-left: auto; font-size: 13px; font-weight: 600; white-space: nowrap; }
.extra input[type="datetime-local"] { width: auto; height: 38px; margin-top: 8px; border: 1.5px solid var(--cream200); border-radius: 10px; padding: 0 10px; }
.pick-step { max-width: 1040px; margin: 0 auto; display: grid; gap: 18px; }
.pick-step .preview-box { min-height: 0; padding: 36px; }
.pick-step .envelope { max-width: 560px; }
.pick-panel { background: #fff; border: 1px solid var(--cream200); border-radius: 24px; padding: 20px 24px; }
.pick-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }
.pick-panel .picker { margin-top: 4px; }
.pick-panel .thumb.wide { width: 128px; height: 80px; }
.pick-panel .thumb.contain:not(.wide) { width: 82px; height: 82px; }
.pick-panel .extras { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.pick-actions .btn { min-width: 220px; }
/* kartpostal */
.postcard { position: relative; width: 100%; aspect-ratio: 3 / 2; border-radius: 6px; background: #FCFBF8; box-shadow: var(--shadow); display: flex; padding: 3%; container-type: inline-size; }
.postcard .msg { flex: 62; padding-right: 3%; display: flex; flex-direction: column; }
.postcard .msg textarea, .postcard .msg .text { flex: 1; width: 100%; border: 0; outline: 0; resize: none; background: transparent; font-size: calc(max(20px, 5.9cqw) * var(--scale, 1)); line-height: 1.25; padding: 0; overflow: auto; white-space: pre-wrap; }
.postcard .msg textarea:focus, .paper textarea:focus { outline: none; box-shadow: none; }
.postcard .sig { font: 500 max(14px, 3.6cqw)/1.2 var(--hand); color: #2A2F45; }
.postcard .line { width: 1px; background: #55565C; }
.postcard .addr { flex: 38; padding-left: 3%; display: flex; flex-direction: column; }
.postcard .stampbox { align-self: flex-end; width: 38%; aspect-ratio: 88 / 110; border: 1px dashed #55565C; background: center / contain no-repeat; padding: 0; display: grid; place-items: center; color: var(--blue700); font: 600 12px/1.2 var(--ui); text-align: center; }
.postcard .stampbox.filled { border: 0; }
button.stampbox { cursor: pointer; background-color: transparent; }
.postcard .spacer { flex: 1; }
.postcard .aline { border-bottom: 1px solid #55565C; min-height: 1.6em; margin-top: 7%; font: 500 clamp(13px, 4cqw, 24px)/1.2 var(--hand); color: #2A2F45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcfront { width: 100%; aspect-ratio: 3 / 2; border-radius: 6px; box-shadow: var(--shadow); background: var(--cream100) center / cover no-repeat; }
.pcpair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
/* yazmaya başla */
.start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; max-width: 1240px; margin: 4vh auto 0; }
.start .card { padding: 30px; }
.start .card .art { height: 220px; }
.start-result { max-width: 680px; margin: 26px auto 0; }
.start-title { max-width: 1240px; margin: 3vh auto 0; font: 500 26px/1.2 var(--serif, Lora, serif); }
.start.four { margin-top: 18px; gap: 20px; }
.start.four .card { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.start.four .card .art { height: 130px; }
.start.four .card h2 { margin: 4px 0 0; font-size: 21px; }
.start.four .card p { margin: 0; }
.start.four .card > .btn, .start.four .card > form { margin-top: auto; }
.start.four .card > .btn { align-self: flex-start; }
.start.four .card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
@media (max-width: 900px) { .start.four { grid-template-columns: 1fr; } }
.start-result:empty { display: none; }
.result-card { background: #fff; border: 1px solid var(--cream200); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.result-more { display: flex; justify-content: space-between; align-items: center; }
.draft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px 22px; }
.draft-env { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; transition: transform .2s; }
.draft-env:hover { transform: translateY(-4px) rotate(-1deg); }
.draft-env .pending { position: absolute; left: 7%; bottom: 10%; }
.danger-link { color: var(--error); }
.card { background: #fff; border: 1px solid var(--cream200); border-radius: 24px; padding: 26px; display: grid; gap: 12px; align-content: start; }
.card .art { height: 150px; border-radius: 16px; background: var(--cream100) center / contain no-repeat; }
.idrow { display: flex; gap: 8px; }
.idrow .field { flex: 1; display: flex; align-items: center; background: #fff; border: 1.5px solid var(--cream200); border-radius: 14px; padding: 0 12px; }
.idrow .field:focus-within { border-color: var(--blue500); }
.idrow .field span { color: var(--ink500); } .idrow input { flex: 1; min-width: 0; border: 0; outline: 0; height: 46px; font-weight: 600; background: transparent; }
.seg { display: inline-flex; background: var(--cream100); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink500); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink900); box-shadow: 0 1px 2px rgba(27, 36, 64, .12); }
.member { display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: start; background: var(--cream50); border-radius: 18px; padding: 16px; }
.member img { width: 80px; height: 80px; border-radius: 18px; object-fit: cover; }
.member b { font: 700 18px/1.2 var(--ui); letter-spacing: .04em; }
.member .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.member .mbadges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.member .mbadge { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1.2 var(--ui); color: var(--ink700); }
.member .mbadge img { width: 30px; height: 30px; object-fit: contain; }
.medal { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 3px solid; background: #FBF8F1;
  font-style: normal; font-size: 12px; }
.medal.bronze { border-color: #C7834F; color: #9C5B2E; } .medal.silver { border-color: #A7B0BC; color: #7D8796; }
.medal.gold { border-color: #E2B33C; color: #B8860B; } .medal.platinum { border-color: #8FC3D6; color: #4F8EA6; }
.medal.legend { border-color: #8A5CC7; color: #5E3A9B; } .medal.special { border-color: #EE7B60; color: #C4502F; }
.thumb .lock.reward { background: #1A46A6; color: #fff; }
.member .bio { font-style: italic; color: var(--ink700); margin: 8px 0 0; }
/* taslaklar */
.drafts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.draft { background: #fff; border: 1px solid var(--cream200); border-radius: 18px; padding: 16px; display: grid; gap: 8px; }
.draft .snip { color: var(--ink700); font: 15px/1.5 var(--serif); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.5em; }
.draft .row2 { display: flex; gap: 8px; align-items: center; }

/* ================================================================== pencereler, bildirimler, şeritler */
.scrim { position: fixed; inset: 0; background: rgba(27, 36, 64, .35); z-index: 80; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 81; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg);
  width: min(520px, calc(100% - 32px)); max-height: calc(100% - 40px); overflow: auto; }
.modal .mh { display: flex; align-items: center; gap: 10px; padding: 18px 20px 6px; }
.modal .mh h3 { margin: 0; flex: 1; font: 600 20px/1.3 var(--serif); }
.modal .mb { padding: 8px 20px 18px; } .modal .mf { padding: 0 20px 20px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.x { border: 0; background: none; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 22px; color: var(--ink500); }
.x:hover { background: var(--cream50); }
.tips { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; }
.tips li { display: flex; gap: 12px; align-items: center; }
.tips li i { width: 38px; height: 38px; border-radius: 12px; background: var(--blue100); display: grid; place-items: center; font-style: normal; flex: none; }
.notifs { position: absolute; z-index: 60; top: 58px; right: 20px; width: 380px; max-height: 70vh; overflow: auto; background: #fff; border: 1px solid var(--cream200);
  border-radius: 18px; box-shadow: var(--shadow-lg); }
.notifs .nh { display: flex; align-items: center; padding: 14px 16px 8px; } .notifs .nh b { flex: 1; font: 600 17px/1 var(--serif); }
.notifs ul { list-style: none; padding: 0 8px 8px; margin: 0; }
.notifs li { display: flex; gap: 10px; padding: 10px; border-radius: 12px; cursor: pointer; align-items: flex-start; }
.notifs li:hover { background: var(--cream50); }
.notifs li.unread b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--coral500); margin-left: 6px; vertical-align: 2px; }
.notifs li span { display: block; font-size: 13px; color: var(--ink500); }
.notifs li .del { margin-left: auto; opacity: 0; }
.notifs li:hover .del { opacity: 1; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ink900); color: #fff; padding: 12px 18px; border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25); display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px); }
.toast.bad { background: var(--error); } .toast button { background: none; border: 0; color: var(--gold); font-weight: 700; cursor: pointer; }
/* dar pencere */
.narrow { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(251, 248, 241, .97); align-items: center; justify-content: center; padding: 24px; text-align: center; }
.narrow-card { max-width: 420px; } .narrow-card img { width: 200px; margin: 0 auto 18px; }
@media (max-width: 899px) { .narrow { display: flex; } }

/* ================================================================== gönderildi: mektup zarfa girer (letterbird.me ile aynı) */
.done { text-align: center; padding-top: 20px; max-width: 620px; margin: 0 auto; }
.done .pcfront { max-width: 420px; margin: 0 auto; animation: fly 1.4s ease-out both; }
/* Kartpostal gönderme animasyonu (letterbird.me ile aynı, 3,4 sn) */
.pcstage { width: min(320px, 100%); margin: 0 auto 8px; perspective: 900px; }
.pccard { position: relative; width: 100%; aspect-ratio: 3 / 2; animation: sPcFly 3.4s both; }
.pcflip { position: absolute; inset: 0; transform-style: preserve-3d; animation: sPcFlip 3.4s ease-in-out both; }
.pcface { position: absolute; inset: 0; border-radius: 6px; backface-visibility: hidden; box-shadow: var(--shadow); }
.pcface.front { background: var(--cream100) center / cover no-repeat; }
.pcface.back { transform: rotateY(180deg); background: #FFFCF5; }
.pcface.back .pclines { position: absolute; left: 12px; right: 40%; bottom: 14px; top: 46%; display: grid; align-content: start; gap: 9px; }
.pcface.back .pclines i { display: block; height: 3px; background: rgba(27, 36, 64, .14); }
.pcface.back .pclines i.short { width: 60%; }
.pcface.back .pcto { position: absolute; left: 12px; top: 12px; font: 600 12px/1.3 var(--serif); color: #2A2F45; max-width: 52%; overflow-wrap: anywhere; text-align: left; }
.pcface.back .stamp { position: absolute; right: 12px; top: 12px; width: 18%; animation: sPcStamp 3.4s both; }
@keyframes sPcFly { 0% { opacity: 0; transform: translateY(30px); } 12%, 82.4% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.55, 0, .9, .4); }
  100% { opacity: 0; transform: translate(70px, -320px) rotate(-10deg) scale(.65); } }
@keyframes sPcFlip { 0%, 35% { transform: rotateY(0); } 52%, 100% { transform: rotateY(180deg); } }
@keyframes sPcStamp { 0%, 58% { opacity: 0; transform: translateY(-50px) rotate(17deg) scale(1.8); animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
  66%, 100% { opacity: 1; transform: none; } }
/* Kartpostal yazarken: düğme kartpostalın altında, yan sütundaki pul listesi kısa (kaydırmalı) */
.surface-wrap .actions.under { margin-top: 14px; max-width: 420px; }
.compose-side.pc #pick-stamp .row { max-height: 236px; overflow-y: auto; align-content: start; }
@keyframes fly { 0% { transform: translateY(0) rotate(0); } 60% { transform: translateY(-10px) rotate(-2deg); } 100% { transform: none; } }
.stage-wrap { width: min(300px, 100%); margin: 0 auto; }
.stage { position: relative; width: 300px; height: 360px; transform-origin: top left; }
.stage > div { position: absolute; }
.stage .s-flap-open { left: 0; top: 67px; width: 300px; height: 105px; clip-path: polygon(0 100%, 100% 100%, 50% 0); background: linear-gradient(to top, #F5EEDD, #E3D6BA); animation: sFlapOpen 3.4s linear both; }
.stage .s-paper { left: 18px; top: 0; width: 264px; height: 300px; perspective: 900px; animation: sPaper 3.4s ease-in-out both; }
.stage .half { position: absolute; left: 0; width: 264px; height: 150px; }
.stage .half.top { top: 0; }
.stage .half.bottom { top: 150px; transform-origin: top center; transform-style: preserve-3d; animation: sFold 3.4s ease-in-out both; }
.stage .face { position: absolute; inset: 0; background: #FFFCF5 center / 264px 300px no-repeat; backface-visibility: hidden; box-shadow: 0 3px 10px rgba(0, 0, 0, .14); }
.stage .half.top .face { background-position: top; } .stage .half.bottom .face { background-position: bottom; }
.stage .face.back { transform: rotateX(180deg); }
.stage .lines { position: absolute; inset: 22px 22px 0; display: grid; align-content: start; gap: 12px; }
.stage .lines i { display: block; height: 4px; background: rgba(27, 36, 64, .14); } .stage .lines i.short { width: 120px; }
.stage .s-env { left: 0; top: 172px; width: 300px; height: 185px; perspective: 1000px; animation: sEnv 3.4s both; }
.stage .s-flipper { position: absolute; inset: 0; transform-style: preserve-3d; animation: sFlip 3.4s ease-in-out both; }
.stage .s-side { position: absolute; inset: 0; background: var(--cream100) center / 100% 100% no-repeat; backface-visibility: hidden; border-radius: 4px; }
.stage .s-side.front { transform: rotateY(180deg); }
.stage .shade { position: absolute; inset: 0; background: rgba(40, 25, 10, .13); border-radius: 4px; }
.stage .vline { position: absolute; left: 0; top: 0; width: 300px; height: 105px; }
.stage .s-flap-close { position: absolute; left: 0; top: 0; width: 300px; height: 105px; transform-origin: top center; clip-path: polygon(0 0, 100% 0, 50% 100%); animation: sFlapClose 3.4s ease-in-out both; }
.stage .s-flap-close > * { position: absolute; inset: 0; }
.stage .s-flap-close .liner { background: linear-gradient(#F5EEDD, #E3D6BA); animation: sLiner 3.4s linear both; }
.stage .s-flap-close .outside { background: center top / 300px 185px no-repeat; filter: brightness(.88); animation: sOutside 3.4s linear both; }
.stage .s-side.front .to { position: absolute; left: 18px; top: 21px; right: 90px; font: 600 12.5px/1.3 var(--serif); color: #2A2F45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.stage .s-side.front .stamp { position: absolute; right: 16.5px; top: 18px; width: 54px; animation: sStamp 3.4s both; }
@keyframes sPaper { 0% { opacity: 0; transform: translateY(-20px); } 8.8% { opacity: 1; transform: translateY(0); } 32.4% { opacity: 1; transform: translateY(0); } 48.8% { opacity: 1; transform: translateY(192px); } 49%, 100% { opacity: 0; transform: translateY(192px); } }
@keyframes sFold { 0%, 7.6% { transform: rotateX(0); } 25.3%, 100% { transform: rotateX(-180deg); } }
@keyframes sFlapOpen { 0%, 20.6% { opacity: 0; transform: translateY(40px); } 31.2% { opacity: 1; transform: translateY(0); } 48.8% { opacity: 1; } 48.9%, 100% { opacity: 0; } }
@keyframes sEnv { 0%, 20.6% { opacity: 0; transform: translateY(40px); } 31.2% { opacity: 1; transform: translateY(0); animation-timing-function: ease-in; }
  82.4% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); animation-timing-function: cubic-bezier(.55, 0, .9, .4); } 100% { opacity: 0; transform: translate(70px, -320px) rotate(-10deg) scale(.65); } }
@keyframes sFlip { 0%, 58.2% { transform: rotateY(0); } 70%, 100% { transform: rotateY(180deg); } }
@keyframes sFlapClose { 0%, 48.7% { opacity: 0; transform: scaleY(-1); } 48.8% { opacity: 1; transform: scaleY(-1); } 58.2%, 100% { opacity: 1; transform: scaleY(1); } }
@keyframes sLiner { 0%, 53.4% { opacity: 1; } 53.5%, 100% { opacity: 0; } }
@keyframes sOutside { 0%, 53.4% { opacity: 0; } 53.5%, 100% { opacity: 1; } }
@keyframes sStamp { 0%, 70% { opacity: 0; transform: translateY(-70px) rotate(17deg) scale(1.8); animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); } 77.6%, 100% { opacity: 1; transform: none; } }
.done.animated h1, .done.animated .lead, .done.animated .actions { animation: sText 3.4s ease-out both; }
@keyframes sText { 0%, 82% { opacity: 0; transform: translateY(8px); } 94%, 100% { opacity: 1; transform: none; } }

@media (max-width: 1180px) { .compose { grid-template-columns: minmax(0, 1fr) 300px; } .view { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------------- Açık mektuplar ---------------- */
.open-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 22px; background: var(--cream100); margin-bottom: 16px; }
.open-tabs a { padding: 8px 18px; border-radius: 18px; color: var(--ink500); font-weight: 600; font-size: 14px; text-decoration: none; }
.open-tabs a.on { background: #fff; color: var(--ink900); box-shadow: 0 2px 6px rgba(27, 36, 64, .12); }
.open-write { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; border-radius: 18px; background: var(--blue100); margin-bottom: 14px; max-width: 720px; }
.open-write.busy { background: var(--cream100); }
.open-write .ow-main { flex: 1; display: flex; align-items: center; gap: 14px; background: none; border: 0; text-align: left; cursor: pointer; padding: 0; font: inherit; color: inherit; }
.open-write .ow-main:disabled { cursor: default; }
.open-write .ow-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blue400); flex: none; }
.open-write.busy .ow-ic { background: #fff; color: var(--ink500); }
.open-write .ow-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.open-write b { display: block; font: 600 17px/1.3 var(--serif); color: var(--blue700); }
.open-write.busy b { color: var(--ink500); }
.open-write span span { font-size: 13px; color: var(--ink500); }
.open-write .icon-btn { font: 700 16px/1 Georgia, serif; color: var(--blue700); }
.open-filters select { min-width: 150px; }
.open-label { display: flex; align-items: center; gap: 8px; margin: 18px 2px 10px; font-size: 13px; font-weight: 700; color: var(--ink500); }
.open-label .postmark { width: 22px; height: 22px; }
.open-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.open-item { display: block; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; transition: translate .2s; }
.open-item:hover { translate: 0 -4px; }
.open-item:hover .envcard { filter: drop-shadow(0 22px 28px rgba(27, 36, 64, .26)); }
/* yazılar uygulamadaki EnvelopeLayout oranlarıyla (envcard .who / .corner / .note zaten öyle) */
.envcard.open-env .who .origin { font: 600 14px/1.3 var(--serif); letter-spacing: .06em; }
.envcard.open-env .who .tags { font: 400 10px/1.35 var(--serif); color: var(--ink700); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.envcard.open-env .note { background: none; padding: 0; font-size: 12px; font-weight: 600; color: var(--ink700); text-shadow: 0 0 4px rgba(255, 255, 255, .85); }
.envcard .pm-wrap { position: absolute; right: 12%; top: 13%; width: 33%; pointer-events: none; }
.postmark { display: block; color: rgba(179, 38, 30, .78); width: 100%; height: auto; }
.envcard .readmark { position: absolute; right: 5.5%; bottom: 9%; font-size: 10px; font-weight: 600; color: var(--ink500); }
.open-live { background: #fff; border: 1px solid var(--cream200); border-radius: 20px; padding: 16px; max-width: 860px; }
.open-live .ol-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.open-live .ol-body { display: grid; grid-template-columns: minmax(260px, 1.1fr) 1fr; gap: 22px; align-items: center; }
@media (max-width: 1100px) { .open-live .ol-body { grid-template-columns: 1fr; } }
.ol-side { display: grid; gap: 10px; }
.ol-bar { display: grid; grid-template-columns: 80px 1fr 56px; align-items: center; gap: 10px; font-size: 13px; color: var(--ink500); }
.ol-bar i { height: 6px; border-radius: 4px; background: var(--cream200); overflow: hidden; }
.ol-bar i b { display: block; height: 100%; background: var(--blue500); }
.ol-bar em { font-style: normal; text-align: right; color: var(--ink700); }
.ol-side .btn .postmark, .ol-feat .postmark { width: 24px; height: 24px; display: inline-block; vertical-align: middle; }
.ol-feat { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink700); }
.danger-link { color: var(--error); }
.open-past { display: grid; gap: 10px; max-width: 860px; }
.op-row { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--cream200); border-radius: 16px; padding: 12px; }
.op-row > div { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.op-row b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.op-env { width: 104px; aspect-ratio: 12 / 7; border: 0; border-radius: 4px; background: center / 100% 100% no-repeat; cursor: pointer; flex: none; }
.open-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.open-actions .btn { min-width: 140px; }
.open-actions .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; margin-right: 6px; }
.open-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--blue100); color: var(--blue700); text-decoration: none; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.open-banner svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.open-banner span { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip.text { width: auto; height: auto; padding: 6px 12px; border-radius: 16px; border: 1px solid var(--cream200); background: #fff; font-size: 13px; color: var(--ink700); cursor: pointer; }
.chip.text.on { background: var(--blue100); border-color: var(--blue500); color: var(--blue700); }
.notice.warn { background: var(--coral100); color: #A5432C; margin-top: 10px; }
.open-preview { width: min(100%, 480px); display: grid; gap: 8px; }

/* ---------------- Zengin profil (üye kartı) ve doğum günü ---------------- */
.member .facts { display: flex; flex-wrap: wrap; gap: 6px 16px; background: var(--cream50); border-radius: 12px; padding: 10px 12px; margin: 10px 0; font-size: 13px; color: var(--ink700); }
.member .facts i { font-style: normal; margin-right: 5px; }
.member .sec { margin: 12px 0 6px; font-size: 12px; font-weight: 600; color: var(--ink500); }
.member .sec.shared { color: var(--blue700); font-weight: 700; }
.member .answers > div { display: grid; gap: 2px; margin-bottom: 8px; font-size: 14px; }
.member .answers > div b { font-size: 12.5px; color: var(--ink500); }
.member .habit { display: block; font-size: 13px; color: var(--ink700); margin-bottom: 3px; }
.tag.shared { box-shadow: inset 0 0 0 1px var(--blue500); }
.spotify { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px; border-radius: 14px; background: var(--cream100); color: var(--ink900); text-decoration: none; }
.spotify .sp-cover { width: 48px; height: 48px; border-radius: 8px; background: #1DB954 center / cover no-repeat; flex: none; }
.spotify b { display: block; font-size: 14px; }
.spotify small { color: #178A40; font-weight: 600; }
.bday-strip { background: #FFF4E0; border: 1px solid #F6DDB0; border-radius: 18px; padding: 12px 14px; margin-bottom: 14px; max-width: 720px; }
.bday-strip > b { font-size: 13px; color: #8A5A0B; }
.bday-row { display: flex; gap: 14px; overflow-x: auto; padding-top: 10px; }
.bday { display: grid; justify-items: center; gap: 6px; border: 0; background: none; cursor: pointer; padding: 0; }
.bday .av { position: relative; width: 52px; height: 52px; border-radius: 50%; background: #F6C453 center / cover no-repeat; box-shadow: 0 0 0 2px #F6C453; }
.bday .av i { position: absolute; right: -6px; bottom: -6px; font-style: normal; font-size: 17px; }
.bday small { font-size: 10px; color: var(--ink700); }
/* posta damgalı zarfta tarih damganın altına iner */
.envcard.has-pm .corner .date { margin-top: 70%; }

/* Harita (Harita 2): ısı, yoldaki posta, anonim noktalar, Pasaport 2, paylaşım görseli */
.open-tabs button { padding: 8px 18px; border-radius: 18px; color: var(--ink500); font-weight: 600; font-size: 14px; border: 0; background: none; cursor: pointer; }
.open-tabs button.on { background: #fff; color: var(--ink900); box-shadow: 0 2px 6px rgba(27, 36, 64, .12); }
.mp-panel { --mp-in: var(--coral500); --mp-in-d: #B8452B; --mp-out: var(--blue500); --mp-out-d: var(--blue700);
  --mp-sea: #E8EFF6; --mp-land: var(--cream200); --mp-land-line: var(--cream300); max-width: 1180px; }
.mp-panel[hidden] { display: none; }
.mp-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.mp-per { display: contents; } .mp-per[hidden] { display: none; }
.mp-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--cream200); background: #fff;
  color: var(--ink900); font: 500 13.5px var(--ui); cursor: pointer; }
.mp-chip:hover { border-color: var(--ink300); }
.mp-chip[aria-pressed="true"] { background: var(--ink900); color: var(--cream50); border-color: var(--ink900); }
.mp-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; } .mp-dot.in { background: var(--mp-in); } .mp-dot.out { background: var(--mp-out); }
.mp-sep { width: 1px; height: 22px; background: var(--cream200); margin-inline: 4px; }
.mp-box { position: relative; background: var(--mp-sea); border: 1px solid var(--cream200); border-radius: 16px; overflow: hidden; touch-action: none; transition: opacity .15s; }
.mp-box.busy { opacity: .6; }
.mp-svg { display: block; width: 100%; height: auto; max-height: calc(100vh - 230px); min-height: 340px; cursor: grab; user-select: none; -webkit-user-select: none; }
.mp-svg.drag { cursor: grabbing; }
.mp-sea { fill: var(--mp-sea); }
.mp-land path { stroke: var(--mp-land-line); stroke-width: .3; vector-effect: non-scaling-stroke; }
.mp-land path.mp-base { fill: var(--mp-land); cursor: pointer; }
.mp-land path.mp-base:hover { fill: var(--cream300); }
.mp-heat { fill: none; opacity: 0; pointer-events: none; }
.mp-trail { fill: none; stroke-width: 1; stroke-dasharray: 2 3; opacity: .45; vector-effect: non-scaling-stroke; }
.mp-trail.in, .mp-ring.in { stroke: var(--mp-in); } .mp-trail.out, .mp-ring.out { stroke: var(--mp-out); }
.mp-ring { fill: none; stroke-width: .7; vector-effect: non-scaling-stroke; }
.mp-me { fill: var(--ink900); }
.mp-anon { cursor: pointer; }
.mp-anon-c { fill: #fff; stroke: var(--mp-in); stroke-width: .7; stroke-dasharray: 1.6 1.2; } .mp-anon-q { fill: var(--mp-in); } .mp-anon-b { fill: var(--mp-in); }
.mp-zoom { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; }
.mp-zbtn { width: 40px; height: 40px; font: 500 22px/1 var(--ui); color: var(--ink900); box-shadow: 0 2px 8px rgba(27, 36, 64, .15); padding: 0; }
.mp-zbtn svg { width: 18px; height: 18px; }
.mp-card { position: absolute; left: 12px; bottom: 12px; min-width: 210px; max-width: 300px; padding: 12px 38px 12px 16px; background: #fff; border: 1px solid var(--cream200);
  border-radius: 14px; box-shadow: var(--shadow); }
.mp-card[hidden] { display: none; }
.mp-card h3 { font: 600 16px var(--serif); margin: 0 0 6px; }
.mp-card dl { display: grid; grid-template-columns: auto auto; gap: 3px 16px; margin: 0; font-size: 13.5px; }
.mp-card dt { color: var(--ink500); } .mp-card dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.mp-cardnote { margin: 8px 0 0; color: var(--ink500); font-size: 12.5px; }
.mp-x { position: absolute; right: 8px; top: 6px; width: 28px; height: 28px; border: 0; background: none; color: var(--ink500); font-size: 20px; cursor: pointer; border-radius: 50%; }
.mp-x:hover { background: var(--cream100); }
.mp-hint { max-width: 80ch; margin: 10px 0 0; }
.mp-svg:focus { outline: none; }
.mp-svg:focus-visible { outline: 3px solid var(--blue500); outline-offset: -3px; }
/* Pasaport 2 */
.mp-pptop { display: flex; gap: 12px; margin: 4px 0 14px; }
.mp-pptop div { flex: 1; background: #fff; border: 1px solid var(--cream200); border-radius: 14px; padding: 12px; text-align: center; }
.mp-pptop b { display: block; font: 600 28px var(--serif); } .mp-pptop span { color: var(--ink500); font-size: 13px; }
.mp-ppbar { height: 10px; border-radius: 6px; background: var(--cream200); overflow: hidden; }
.mp-ppbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--coral500), var(--blue500)); }
.mp-ppcap { color: var(--ink500); font-size: 13px; margin: 6px 0 12px; }
.mp-pph { font: 600 16px var(--serif); margin: 22px 0 10px; display: flex; justify-content: space-between; align-items: baseline; }
.mp-pph span { color: var(--ink500); font: 13px var(--ui); }
.mp-ppg { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.mp-pps { position: relative; text-align: left; background: #fff; color: var(--ink900); border: 2px dashed var(--cream300); border-radius: 12px; padding: 12px 14px 14px; cursor: pointer; font: inherit; }
.mp-pps:nth-child(odd) { transform: rotate(-1.4deg); } .mp-pps:nth-child(even) { transform: rotate(1.1deg); }
.mp-pps:hover, .mp-pps:focus-visible { border-color: var(--coral500); }
.mp-pps b { display: block; font: 600 15px var(--serif); padding-right: 38px; }
.mp-pps small { display: block; color: var(--ink500); font-size: 12px; margin-top: 3px; }
.mp-pps .no { position: absolute; top: 8px; right: 10px; font-size: 11.5px; color: var(--ink500); font-variant-numeric: tabular-nums; }
.mp-ppanon { border-style: dotted; } .mp-ppanon .no { font-size: 17px; top: 6px; }
.mp-pps .ratio { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 10px; }
.mp-pps .ratio i:first-child { background: var(--coral500); } .mp-pps .ratio i:last-child { background: var(--blue500); }
/* Paylaşım görseli */
.mp-share { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 28px; align-items: start; }
.mp-canvas { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--cream200); display: block; background: #f6f1e4; }
@media (prefers-reduced-motion: reduce) { .mp-pps { transform: none !important; } }

/* Rozetlerim (salt okunur) */
.badges { max-width: 960px; }
.bbar { height: 8px; border-radius: 6px; background: var(--cream200); overflow: hidden; margin: 4px 0 18px; } .bbar i { display: block; height: 100%; background: var(--blue500); border-radius: 6px; }
.bshow { background: var(--blue50); border: 1px solid var(--cream200); border-radius: 18px; padding: 14px 16px; margin-bottom: 8px; }
.bshow h3, .bfam { font: 600 18px/1.3 var(--serif); margin: 0 0 10px; } .bfam { margin: 26px 0 10px; }
.brow { display: flex; justify-content: space-around; gap: 8px; margin: 6px 0 10px; }
.bshow-i { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 104px; background: none; border: 0; padding: 0; cursor: pointer; font-size: 12px; font-weight: 600; text-align: center; }
.bshow-i span:last-child { overflow-wrap: anywhere; } .bshow-i.empty { cursor: pointer; }
.bslot { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--cream300); background: #fff; color: var(--ink300); font-size: 22px; font-weight: 400; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 16px 10px; }
.btile { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 4px; border-radius: 14px; cursor: pointer; text-align: center; min-width: 0; }
.btile:hover { background: #fff; box-shadow: var(--shadow); }
.bwrap { position: relative; display: block; } .bname { font-size: 13px; line-height: 1.25; color: var(--ink500); overflow-wrap: anywhere; } .btile.on .bname { color: var(--ink900); font-weight: 600; }
.bprog { display: block; width: 100%; max-width: 90px; height: 4px; border-radius: 3px; background: var(--cream200); overflow: hidden; } .bprog i { display: block; height: 100%; }
.bnew { position: absolute; right: -10px; top: -4px; font-style: normal; font-size: 10px; font-weight: 700; background: var(--coral500); color: #fff; padding: 1px 6px; border-radius: 8px; }
.bpin { position: absolute; left: -6px; top: -6px; font-style: normal; font-size: 14px; color: var(--blue700); }
.bmedal { --sz: 64px; --bl: #F8B9A6; --bd: #C4502F; display: grid; place-items: center; width: var(--sz); height: var(--sz); border-radius: 50%; padding: calc(var(--sz) * .08); flex: none;
  background: linear-gradient(135deg, var(--bl), var(--bd)); box-shadow: 0 calc(var(--sz) * .04) calc(var(--sz) * .12) color-mix(in srgb, var(--bd) 25%, transparent); }
.bmedal::before { content: ''; grid-area: 1 / 1; width: 100%; height: 100%; border-radius: 50%; background: var(--cream50); border: calc(var(--sz) * .025) solid rgba(255, 255, 255, .8); }
.bmedal svg, .bmedal b { grid-area: 1 / 1; position: relative; }
.bmedal svg { width: 42%; height: 42%; fill: none; stroke: var(--bd); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bmedal b { font: 700 calc(var(--sz) * .38)/1 var(--ui); color: var(--bd); }
.bmedal.img { background: none; box-shadow: none; padding: 0; } .bmedal.img::before { display: none; } .bmedal.img img { width: 100%; height: 100%; object-fit: contain; }
.bmedal.locked { filter: grayscale(1); opacity: .45; }
.bdetail { text-align: center; display: grid; justify-items: center; gap: 4px; } .bdetail p { margin: 4px 0 0; } .btier { font-size: 13px; font-weight: 700; }

/* Yeni pul kutlaması */
.stamp-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; width: min(440px, calc(100vw - 32px)); display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 14px 16px; animation: st-up .5s cubic-bezier(.2, .9, .3, 1.2) both; }
.stamp-toast.out { opacity: 0; transform: translate(-50%, 20px); transition: opacity .2s, transform .2s; }
.st-art { position: relative; width: 74px; height: 74px; flex: none; display: grid; place-items: center; }
.st-stamp { width: 62px; filter: drop-shadow(0 4px 8px rgba(27, 36, 64, .25)); animation: st-pop .6s .15s cubic-bezier(.2, 1.4, .4, 1) both; } .st-stamp img { width: 100%; height: auto; }
.st-stamp .ph { display: grid; place-items: center; width: 56px; height: 66px; background: var(--cream100); border: 2px dashed var(--cream300); color: var(--gold); font-size: 24px; }
.st-txt { flex: 1; min-width: 150px; display: grid; gap: 2px; } .st-txt b { font: 600 16px/1.3 var(--serif); } .st-txt span { font-size: 13px; }
.sparks { position: absolute; inset: 0; pointer-events: none; } .spark { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 2px; background: var(--c); opacity: 0;
  animation: st-spark .9s var(--t) ease-out both; transform: rotate(var(--a)) translateY(0); }
@keyframes st-up { from { opacity: 0; transform: translate(-50%, 40px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes st-pop { from { transform: scale(.3) rotate(-14deg); opacity: 0; } to { transform: scale(1) rotate(-3deg); opacity: 1; } }
@keyframes st-spark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(.4); } }
@media (prefers-reduced-motion: reduce) { .stamp-toast, .st-stamp, .spark { animation: none !important; } .spark { display: none; } }

/* Yazma ilhamı (9 Ekim 2026): açık mektuplar sayfasında kart, yazarken kâğıdın üstünde şerit */
.prompt-card{background:#fff;border:1px solid var(--cream200);border-radius:16px;padding:14px 16px;margin:12px 0}
.prompt-card.in-modal{border:0;padding:0;margin:0}
.prompt-card .pc-title{margin:0 0 6px;font-weight:700;font-size:14px;color:var(--blue700)}
.prompt-card .pc-q{margin:0 0 12px;font-size:19px;line-height:1.35}
.prompt-card .pc-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.prompt-bar{display:flex;align-items:center;gap:8px;background:var(--blue100);color:var(--blue700);border-radius:12px;padding:8px 8px 8px 12px;margin:0 0 10px;font-weight:600;min-width:0}
.prompt-bar > span:nth-child(2){flex:1;min-width:0}
.prompt-bar .x{border:0;background:none;color:inherit;font-size:20px;line-height:1;cursor:pointer;padding:2px 6px}
.compose-side .idea{align-self:flex-start;margin-bottom:4px}

/* Menüde günlük hak sayacının yanındaki ⓘ (11 Ekim 2026) */
.write-btn .left-info{display:inline-grid;place-items:center;width:18px;height:18px;margin-left:6px;border-radius:50%;border:1.5px solid currentColor;font:700 11px/1 var(--ui);font-style:italic;cursor:pointer;opacity:.85;flex:none}
.write-btn .left-info:hover{opacity:1}

/* Koleksiyonum (18 Ekim 2026; uygulamadaki ekranla aynı mantık) */
.collection { max-width: 960px; }
.ctabs { margin-bottom: 16px; flex-wrap: wrap; }
.cprog { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; } .cprog .bbar { flex: 1; margin: 0; }
.cgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cgrid.stamp { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.ccell { position: relative; border: 1px solid var(--cream300); background: #fff; border-radius: 12px; padding: 6px; cursor: pointer; aspect-ratio: 3 / 2; }
.cgrid.stamp .ccell { aspect-ratio: .82; } .cgrid.envelope .ccell { aspect-ratio: 12 / 7; }
.ccell img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
.cgrid.stamp .ccell img { object-fit: contain; }
.ccell.off { border-color: var(--cream200); } .ccell.off img, .csst.off img, .cimg.off img { filter: grayscale(1); opacity: .3; }
.ccell:hover { border-color: var(--blue500); }
.ccount { position: absolute; right: 4px; top: 4px; background: var(--blue500); color: #fff; font: 600 11px/1 var(--ui); font-style: normal; padding: 3px 6px; border-radius: 10px; }
.clock { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 16px; opacity: .55; pointer-events: none; }
.ctag { position: absolute; left: 4px; top: 4px; color: #fff; font: 600 10px/1 var(--ui); font-style: normal; padding: 3px 6px; border-radius: 10px; background: #B8860B; }
.ctag.vrare { background: #6B3FA0; } .ctag.reward { background: var(--blue500); }
.chint { text-align: center; margin-top: 18px; }
.cdetail { text-align: center; } .cdetail p { margin: 4px 0; }
.cimg { height: 170px; margin: 0 auto 14px; display: flex; justify-content: center; } .cimg.stamp { height: 150px; } .cimg img { height: 100%; max-width: 100%; object-fit: contain; }
.cseries { display: grid; gap: 14px; }
.cser { background: #fff; border: 1px solid var(--cream200); border-radius: 16px; padding: 12px 14px 14px; } .cser.done { border: 2px solid var(--blue500); }
.csh { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 10px; } .csh b { font: 600 18px/1.3 var(--serif); } .csh .ok { color: var(--blue500); font-weight: 700; }
.csrow { display: flex; flex-wrap: wrap; gap: 8px; }
.csst { width: 52px; height: 62px; display: inline-block; flex: none; } .csst img { width: 100%; height: 100%; object-fit: contain; }
.csrew { display: flex; align-items: center; gap: 10px; margin-top: 10px; } .csrew .csst { width: 40px; height: 48px; }

/* ---------- Oyunlar: Pul eşleştirme (uygulamayla aynı görünüm) ---------- */
.games { max-width: 560px; display: grid; gap: 16px; }
.smcard { background: var(--cream100); border: 1px solid var(--cream200); border-radius: 20px; padding: 18px; display: grid; gap: 14px; }
.smtop { display: flex; gap: 14px; align-items: center; }
.smtop h3 { font: 600 21px/1.2 var(--serif); margin: 0 0 4px; }
.smtop p { margin: 0; font-size: 13.5px; }
.smart { width: 96px; height: 84px; position: relative; flex: none; }
.smart .smback { position: absolute; left: 0; top: 26px; width: 64px; height: 54px; transform: rotate(-9deg); }
.smart-st { position: absolute; left: 28px; top: 0; width: 64px; transform: rotate(6deg); filter: drop-shadow(0 2px 4px rgba(27, 36, 64, .2)); }
.smchips { display: flex; flex-wrap: wrap; gap: 8px; }
.smchip { background: var(--paper50); border: 1px solid var(--cream200); border-radius: 20px; padding: 6px 11px; font-size: 13px; font-weight: 600; color: var(--ink700); }
.smprize { display: flex; gap: 12px; align-items: center; background: var(--paper50); border: 1px dashed var(--cream300); border-radius: 14px; padding: 10px 12px; }
.smprize > img { width: 72px; flex: none; transform: rotate(-4deg); filter: drop-shadow(0 2px 3px rgba(27, 36, 64, .22)); }
.smprize.got { background: var(--green100); border-color: transparent; border-style: solid; }
.smprize b { font: 600 16px/1.3 var(--serif); display: block; margin-top: 2px; }
.smlabel { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink500); }
.smbadges { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.smb { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; color: var(--ink700); text-decoration: none; }
.smsoon { border: 1px dashed var(--cream300); border-radius: 16px; padding: 14px; }
.smcoin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 35%, #FCE29A, var(--gold) 60%, #D9A42E); box-shadow: inset 0 0 0 1.5px #C98F1E; }
.smgain .smcoin, .smprize > .smcoin { width: 30px; height: 30px; }
.smstars { color: var(--cream300); letter-spacing: 1px; white-space: nowrap; }
.smstars i { font-style: normal; }
.smstars i.on { color: var(--gold); }
.smstars.big { font-size: 44px; line-height: 1; display: block; text-align: center; }
/* seçim penceresi */
.smsetup { display: grid; gap: 10px; min-width: min(440px, 80vw); }
.smseg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.smopt { text-align: left; border: 1.5px solid var(--cream200); border-radius: 14px; background: var(--paper50); padding: 12px; display: grid; gap: 3px; cursor: pointer; transition: background .15s, border-color .15s; }
.smopt[aria-pressed="true"] { border-color: var(--blue500); background: var(--blue100); }
.smrules { background: var(--cream100); border-radius: 14px; padding: 12px 14px; display: grid; gap: 7px; font-size: 13.5px; }
.smrow { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.smrules p { margin: 4px 0 0; border-top: 1px solid var(--cream200); padding-top: 8px; }
.center { text-align: center; }
.btn.block { width: 100%; }
/* oyun */
.smgame { max-width: 620px; display: flex; flex-direction: column; gap: 10px; min-height: calc(100vh - 120px); }
.smhud { display: flex; align-items: center; gap: 12px; }
.smhud .icon-btn { font-size: 22px; }
.smmeter { flex: 1; display: grid; gap: 6px; }
.smmeter .row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.smmeter b { font-size: 17px; font-variant-numeric: tabular-nums; }
.smtrack { height: 6px; border-radius: 3px; background: var(--cream200); overflow: hidden; }
.smtrack i { display: block; height: 100%; background: var(--blue500); border-radius: 3px; transition: width .25s; }
.smtrack.warn i { background: var(--coral500); }
.smhud .smstars { font-size: 18px; }
.smwrap { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; padding: 8px 0; }
.smframe { padding: 7px; border-radius: 18px; background: repeating-linear-gradient(-45deg, var(--error) 0 9px, var(--paper50) 9px 18px, var(--blue500) 18px 27px, var(--paper50) 27px 36px); box-shadow: 0 4px 14px rgba(27, 36, 64, .12); width: min(100%, 560px); }
.smfelt { background: var(--cream100); border-radius: 12px; padding: 14px; }
.smboard { display: grid; gap: var(--gap); }
.smcardx { aspect-ratio: 6 / 5; border: 0; padding: 0; background: none; perspective: 700px; cursor: pointer; position: relative; }
.smcardx .in { position: absolute; inset: 0; transition: transform .38s cubic-bezier(.3, .9, .3, 1); transform-style: preserve-3d; }
.smcardx.up .in { transform: rotateY(180deg); }
.smcardx .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.smcardx .front { transform: rotateY(180deg); display: grid; place-items: center; }
.smcardx .front img.st { width: 100%; filter: drop-shadow(0 1.5px 2px rgba(27, 36, 64, .25)); }
.smcardx .front img.pm { position: absolute; width: 86%; left: 20%; top: 18%; opacity: 0; pointer-events: none; mix-blend-mode: multiply; }
.smcardx.done .front img.pm { animation: smstamp .38s cubic-bezier(.2, 1.4, .4, 1) .05s forwards; }
.smgift { position: absolute; right: -4px; top: -6px; background: var(--gold); color: var(--ink900); font: 700 10px/1.4 var(--ui); padding: 1px 6px; border-radius: 8px; font-style: normal; box-shadow: 0 1px 3px rgba(27, 36, 64, .25); }
/* kart arkası: tırtıklı boş pul */
.smback { --r: 3px; display: block; position: relative; width: 100%; height: 100%; filter: drop-shadow(0 1.5px 2px rgba(27, 36, 64, .22));
  background: radial-gradient(var(--r), #0000 97%, var(--paper50)) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(var(--paper50) 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r)); }
.smback::before { content: ""; position: absolute; inset: calc(var(--r) * 2.6); border: 1px solid var(--cream300); border-radius: 2px; }
.smback img { position: absolute; left: 50%; top: 50%; width: 52%; transform: translate(-50%, -50%); opacity: .55; }
.smcombo { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); font: 700 36px var(--hand); color: var(--coral500); pointer-events: none; opacity: 0; z-index: 2; }
.smcombo.on { animation: smcombo .9s ease-out; }
.smfoot { display: flex; align-items: center; gap: 12px; }
.smjoker { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--cream300); background: var(--paper50); border-radius: 28px; padding: 5px 16px 5px 5px; font-weight: 600; cursor: pointer; flex: none; }
.smjoker img { width: 40px; height: 40px; object-fit: contain; }
.smjoker:disabled { opacity: .4; cursor: default; }
.smresult { display: grid; gap: 12px; justify-items: center; text-align: center; min-width: min(360px, 80vw); }
.smresult p { margin: 0; }
.smlost { width: 110px; opacity: .85; transform: rotate(-9deg); }
.smstats { display: flex; gap: 26px; }
.smstats b { display: block; font-size: 18px; }
.smgain { display: flex; gap: 12px; align-items: center; background: var(--cream100); border-radius: 14px; padding: 10px 12px; text-align: left; width: 100%; }
.smgain > img { width: 58px; flex: none; }
.ccell .cgame { position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-style: normal; font-size: 11px; }
@keyframes smstamp { 0% { opacity: 0; transform: scale(1.8) rotate(var(--rot)); } 100% { opacity: .82; transform: scale(1) rotate(var(--rot)); } }
@keyframes smcombo { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 25% { opacity: 1; transform: translate(-50%, 0) scale(1.15); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -14px); } }
@media (max-width: 520px) { .smbadges { gap: 2px; } .smfelt { padding: 10px; } }
@media (prefers-reduced-motion: reduce) { .smcardx .in, .smtrack i { transition: none; } .smcardx.done .front img.pm { animation-duration: .01ms; } }

/* giriş sayfası: özellikler, dil seçici, hazır içerik (19 Ekim 2026) */
.login-feats { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 620px; }
.login-feats li { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink500); border-top: 2px solid var(--cream200); padding-top: 10px; }
.login-feats b { color: var(--ink900); font-size: 14px; }
.login-lang { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink700); }
.login-lang-sel { font: inherit; border: 1px solid var(--cream200); border-radius: 10px; padding: 6px 10px; background: #fff; color: var(--ink900); }
.route .pre { display: none; }
.narrow-card .stores { justify-content: center; margin-top: 16px; }
.login-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-top: 16px; border-top: 1px solid var(--cream200); max-width: 620px; font-size: 13px; }
.login-langs a { color: var(--ink500); text-decoration: none; }
.login-langs a:hover { color: var(--ink900); text-decoration: underline; }
.login-langs a[aria-current] { color: var(--ink900); font-weight: 600; }
