/* POSTA KUTUSU (2026-12-01) — js/posta.js. Solda mektup listesi, sağda okunan mektup (kâğıt), ekli hediye ve "Hediyeyi al".
   Oyunun dili: koyu zemin, ince altın kontur, serif başlık; altın yalnız yeni mektup noktasında ve hediye düğmesinde. */
.app.desk .pk-win .sh-body { overflow: hidden; padding: 0 18px 16px; display: flex; }
.pk { --t1: #f0e8d8; --t2: #cfc7bc; --mu: #8f867d; --ln: #2c2722; --gd: #e2be68; --ok: #8fd07a;
  flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(250px, 34%) 1fr; gap: 16px; color: var(--t2); font-size: 12.5px; }
.pk .ic { flex: none; stroke-width: 1.6; }
.pk .num { font-family: var(--fn, Inter, sans-serif); font-variant-numeric: tabular-nums; }
:where(.pk) button { font: inherit; color: inherit; text-align: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* liste */
.pk-list { min-height: 0; display: flex; flex-direction: column; border-radius: 12px; background: #110f0e; box-shadow: inset 0 0 0 1px #24201c; overflow: hidden; }
.pk-lh { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px 10px; border-bottom: 1px solid var(--ln); }
.pk-lh b { font: 700 9.5px/1 var(--fs); letter-spacing: .14em; text-transform: uppercase; }
.pk-lh small { color: var(--mu); font-size: 11px; }
.pk-rows { flex: 1; min-height: 0; overflow: auto; padding: 6px; display: grid; align-content: start; gap: 2px; scrollbar-width: thin; scrollbar-color: #3a332b transparent; }
.pk .pk-row { display: grid; grid-template-columns: 30px 1fr 8px; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 8px; transition: background .15s, box-shadow .15s; }
.pk .pk-row:hover { background: #181513; }
.pk .pk-row.on { background: #1b1815; box-shadow: inset 0 0 0 1px #3d352b; }
.pk-seal { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--mu); background: #171412; box-shadow: inset 0 0 0 1px #2f2a24; }
.pk-seal .ic { width: 15px; height: 15px; }
.pk-row.new .pk-seal { color: var(--gd); box-shadow: inset 0 0 0 1px rgba(226, 190, 104, .45); }
.pk-rt { display: grid; gap: 4px; min-width: 0; }
.pk-r1, .pk-r2 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.pk-r1 b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px/1.15 var(--fs); color: var(--t2); }
.pk-row.new .pk-r1 b { color: var(--t1); }
.pk-r1 small, .pk-r2 small { flex: none; color: var(--mu); font-size: 10.5px; white-space: nowrap; }
.pk-r2 small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pk-r2 em { flex: none; font: 600 9.5px/1 var(--fb); font-style: normal; color: var(--gd); }
.pk-r2 em.ok { color: var(--mu); }
.pk-dot { width: 7px; height: 7px; border-radius: 50%; }
.pk-row.new .pk-dot { background: #e7c26a; box-shadow: 0 0 5px rgba(231, 194, 106, .6); }
.pk-lf { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--ln); }
.pk-lf .pk-btn { flex: 1; }

/* düğmeler */
.pk .pk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px;
  font: 600 12px/1 var(--fb); color: #1a140c; background: linear-gradient(180deg, #d1b26a, #a7874b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 0 #0b0a0a; transition: filter .15s, transform .1s; }
.pk .pk-btn .ic { width: 15px; height: 15px; }
.pk .pk-btn:hover { filter: brightness(1.08); }
.pk .pk-btn:active { transform: translateY(1px); }
.pk .pk-btn.ghost { color: var(--t2); background: #171412; box-shadow: inset 0 0 0 1px #3a332b; }
.pk .pk-btn:disabled { cursor: default; filter: saturate(.2) brightness(.6); }
.pk .pk-btn.big { height: 38px; padding: 0 20px; font-size: 13px; }

/* okunan mektup */
.pk-read { min-height: 0; display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; border-radius: 12px; background: #110f0e; box-shadow: inset 0 0 0 1px #24201c; overflow: hidden; }
.pk-rh { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ln); }
.pk-seal.big { width: 42px; height: 42px; color: var(--gd); box-shadow: inset 0 0 0 1px rgba(226, 190, 104, .4); }
.pk-seal.big .ic { width: 20px; height: 20px; }
.pk-rh span { display: grid; gap: 5px; min-width: 0; }
.pk-rh small { color: var(--mu); font-size: 11px; }
.pk-rh b { font: 700 19px/1.1 var(--fs); color: var(--t1); }
.pk-paper { flex: 1; min-height: 60px; overflow: auto; padding: 16px 18px; border-radius: 10px; color: #d9cfbf; font: 400 14px/1.6 var(--fb, Georgia, serif);
  background: repeating-linear-gradient(180deg, transparent 0 21.4px, rgba(226, 190, 104, .05) 21.4px 22.4px), #151210; box-shadow: inset 0 0 0 1px #2a241e; }
.pk-paper p { margin: 0 0 6px; }
.pk-paper .pk-sign { margin-top: 14px; text-align: right; font-style: italic; color: var(--mu); }
.pk-gift { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px; padding: 12px 14px; border-radius: 10px; background: #14110f; box-shadow: inset 0 0 0 1px rgba(226, 190, 104, .28); }
.pk-gift.got { box-shadow: inset 0 0 0 1px #2a241e; }
.pk-gh { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; }
.pk-gh b { font: 700 9.5px/1 var(--fs); letter-spacing: .14em; text-transform: uppercase; color: var(--t2); }
.pk-gh small { color: var(--mu); font-size: 11px; }
.pk-gl { display: flex; flex-wrap: wrap; gap: 10px 14px; min-width: 0; }
.pk-it, .pk-sv { display: grid; justify-items: center; gap: 4px; max-width: 86px; text-align: center; }
.pk-it small, .pk-sv small { font-size: 10.5px; color: var(--mu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 86px; }
.pk-f { width: 44px; height: 44px; }
.pk-sv { align-content: center; height: 44px; margin-bottom: 15px; }
.pk-sv b { font: 700 16px/1 var(--fn, Inter, sans-serif); color: var(--gd); display: inline-flex; align-items: center; }
.pk-sv .coin { margin-right: 5px; }
.pk-gift.got .pk-gl { opacity: .55; }
.pk-rf { display: flex; justify-content: flex-end; }

/* boş */
.pk-empty { grid-column: 1 / -1; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; color: var(--mu); }
.pk-empty .ic { width: 34px; height: 34px; color: #5f564c; }
.pk-empty b { font: 700 16px/1.2 var(--fs); color: var(--t2); }
