/* Tuzluca arayüzü — Unity UITheme'in web karşılığı (Arayüz 2.0):
   sıcak krem yüzeyler, mercan vurgu, nane ikincil, altın (Tuz); başlıklar Fredoka, metin Nunito; beyaz Material ikonları maske ile boyanır. */
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url(assets/ui/fonts/Fredoka-SemiBold.ttf) format('truetype'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url(assets/ui/fonts/Fredoka-Bold.ttf) format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url(assets/ui/fonts/Nunito.ttf) format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url(assets/ui/fonts/Nunito-SemiBold.ttf) format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url(assets/ui/fonts/Nunito-ExtraBold.ttf) format('truetype'); }

:root {
  --ink: #2e2a3b; --ink-muted: #8c8497; --surface: #fff8ee; --surface-alt: #f3e9da; --surface-deep: #eadcc6;
  --primary: #ff7a6b; --primary-dark: #e4604f; --secondary: #5bc8a8; --secondary-dark: #3fa98a; --sky: #6ea8ff;
  --gold: #f4b942; --gold-ink: #b07a10; --danger: #e5484d; --success: #3db57f;
  --overlay: rgba(27, 23, 38, .55); --hud: rgba(31, 26, 43, .62); --hud-line: rgba(255, 248, 238, .14); --on-dark: #fff8ee;
  --line: rgba(46, 42, 59, .1); --shadow: 0 18px 50px rgba(32, 20, 48, .28), 0 2px 0 rgba(255, 255, 255, .7) inset;
  --r-lg: 28px; --r-md: 18px; --r-sm: 12px;
  --head: 'Fredoka', ui-rounded, system-ui, sans-serif; --body: 'Nunito', ui-rounded, system-ui, sans-serif;
  --ui-scale: 1;
  /* eski adlar (JS içindeki küçük satır içi stiller için) */
  --cream: var(--ink); --soft: var(--ink-muted); --muted: var(--ink-muted); --sun: var(--primary); --bmo: var(--secondary); --gum: var(--danger); --night: #1f1a2b;
}
html { font-size: calc(16px * var(--ui-scale)); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: #1f1a2b; color: var(--ink); font-family: var(--body); -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }
b, strong { font-weight: 800; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; }
.muted { color: var(--ink-muted); }
.small { font-size: .78rem; }
.ok { color: var(--success); font-weight: 800; } .gold { color: var(--gold-ink); }
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; }

/* İkon: beyaz Material ikonları maske olarak (rengi currentColor) */
.ic { display: inline-block; flex: none; width: 1.25em; height: 1.25em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; vertical-align: -.22em; }

/* ---------- Ortak bileşenler (UIFactory) ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--surface-alt); color: var(--ink); font-family: var(--head); font-weight: 600; font-size: 1rem;
  box-shadow: 0 3px 0 var(--surface-deep); transition: transform .12s ease, filter .12s ease, box-shadow .12s ease; white-space: nowrap; }
.pill:hover { filter: brightness(1.04); transform: translateY(-1px); }
.pill:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--surface-deep); }
.pill.sun, .pill.primary { background: linear-gradient(#ff8a7c, var(--primary)); color: #fff; box-shadow: 0 4px 0 var(--primary-dark); }
.pill.sun:active, .pill.primary:active { box-shadow: 0 1px 0 var(--primary-dark); }
.pill.mint { background: linear-gradient(#6fd4b5, var(--secondary)); color: #fff; box-shadow: 0 4px 0 var(--secondary-dark); }
.pill.danger { background: linear-gradient(#ee6266, var(--danger)); color: #fff; box-shadow: 0 4px 0 #b8363a; }
.pill.ghost { background: transparent; box-shadow: none; color: var(--ink-muted); }
.pill.big { min-height: 56px; width: 100%; font-size: 1.15rem; }
.pill:disabled { opacity: .45; pointer-events: none; }
.link { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px; font-weight: 600; }
.link b { color: var(--primary-dark); }
.link:disabled { color: var(--ink-muted); text-decoration: none; cursor: default; }
kbd { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 7px; background: var(--surface); color: var(--ink);
  font: 600 .74rem var(--head); box-shadow: 0 2px 0 rgba(0, 0, 0, .28); }
.x { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--surface-alt); color: var(--ink); font-size: 0; display: grid; place-items: center; transition: background .15s, transform .15s; }
.x::before { content: ''; width: 24px; height: 24px; background: currentColor; -webkit-mask: url(assets/ui/icons/close.png) center / contain no-repeat; mask: url(assets/ui/icons/close.png) center / contain no-repeat; }
.x:hover { background: var(--surface-deep); transform: rotate(90deg); }
.field { display: grid; gap: 6px; margin-top: 12px; }
.field > span { font-size: .88rem; color: var(--ink-muted); font-weight: 600; }
.field input, .field select, textarea, .inp { width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 2px solid transparent; background: #fff; color: var(--ink);
  outline: none; box-shadow: 0 0 0 1px var(--line) inset; transition: border-color .15s, box-shadow .15s; }
textarea { padding: 12px 16px; resize: none; }
.field input:focus, textarea:focus, .inp:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255, 122, 107, .16); }
.field small { font-size: .82rem; color: var(--ink-muted); min-height: 1em; }
.field small.good { color: var(--success); } .field small.bad { color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .92rem; color: var(--ink); }
.check input { width: 22px; height: 22px; accent-color: var(--primary); margin-top: 1px; flex: none; }
.check a { color: var(--primary-dark); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; padding: 5px; border-radius: 999px; background: var(--surface-alt); width: fit-content; max-width: 100%; }
.tabs button { min-height: 38px; padding: 0 18px; border-radius: 999px; color: var(--ink-muted); font: 600 .95rem var(--head); transition: background .15s, color .15s; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(46, 42, 59, .12); }
.tabs button:hover:not(.on) { color: var(--ink); }

/* ---------- Pencereler (Card + UIPanelAnimator) ---------- */
.panel { position: absolute; background: var(--surface); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.panel::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset; }
.modal { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(600px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; padding: 28px 30px; animation: pop .26s cubic-bezier(.2, .9, .3, 1.2); scrollbar-width: thin; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.95); } }
.modal-dim { position: fixed; inset: 0; z-index: 12; background: var(--overlay); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal header { display: flex; align-items: center; gap: 14px; padding-right: 54px; margin-bottom: 18px; min-height: 52px; }
.modal header .hico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--primary); flex: none; font-size: 1.5rem; }
.modal h2 { font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.modal header p { color: var(--ink-muted); font-size: .92rem; }
.modal footer { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.modal h4, .chest-h { margin: 14px 0 8px; font: 600 1.05rem var(--head); color: var(--ink); letter-spacing: 0; }
.sub-card { background: var(--surface-alt); border-radius: var(--r-md); padding: 14px 16px; }

/* ---------- Yükleme ---------- */
.loader { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 0%, #4a3d78 0%, #2a2246 55%, #1a1528 100%); color: var(--on-dark); transition: opacity .6s ease, visibility 0s linear .6s; }
.loader.gone { opacity: 0; visibility: hidden; }
.loader-card { width: min(440px, 86vw); text-align: center; }
.loader h1 { font: 700 clamp(3.4rem, 12vw, 6rem) var(--head); line-height: .9; background: linear-gradient(#fff, #ffd7b8); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 0 rgba(30, 20, 50, .45)); }
.bar { height: 12px; margin-top: 34px; border-radius: 999px; background: rgba(255, 248, 238, .12); overflow: hidden; }
.bar i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--primary), var(--gold)); border-radius: inherit; transition: transform .25s ease; }
.status { margin-top: 14px; color: rgba(255, 248, 238, .75); font-variant-numeric: tabular-nums; }
.back { display: none; }

/* ---------- Giriş ekranı (Unity MainMenuUI) ---------- */
.front { position: fixed; inset: 0; z-index: 30; display: grid; grid-template-columns: 1fr minmax(0, 510px); align-items: center; gap: 40px; padding: 24px clamp(18px, 7vw, 130px);
  background: linear-gradient(90deg, rgba(20, 16, 34, .5) 0%, rgba(20, 16, 34, .15) 45%, rgba(20, 16, 34, 0) 70%); pointer-events: none; color: var(--on-dark); }
.front > * { pointer-events: auto; }
.fe-hero { max-width: 640px; }
.fe-hero h1 { font: 700 clamp(4rem, 10vw, 8.2rem) var(--head); line-height: .95; letter-spacing: -.01em; background: linear-gradient(#fffaf2 30%, #ffd2b0); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 7px 0 rgba(40, 24, 50, .35)) drop-shadow(0 10px 24px rgba(0, 0, 0, .25)); }
.fe-hero h3 { margin-top: 18px; font: 700 clamp(1.3rem, 2.2vw, 1.9rem) var(--head); text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.fe-hero p { margin-top: 10px; font-size: 1.1rem; max-width: 46ch; line-height: 1.45; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.fe-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.fe-chips span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 999px; background: rgba(255, 248, 238, .26); backdrop-filter: blur(8px); font: 600 .95rem var(--head); }
.fe-card { width: 100%; max-height: calc(100vh - 48px); overflow: auto; scrollbar-width: none; background: var(--surface); color: var(--ink); border-radius: 30px; padding: 34px 38px; box-shadow: 0 24px 70px rgba(10, 6, 22, .35); }
.fe-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--surface-alt); margin-bottom: 24px; }
.fe-seg button { min-height: 44px; border-radius: 999px; font: 600 1.05rem var(--head); color: var(--ink); }
.fe-seg button.on { background: #fff; box-shadow: 0 2px 8px rgba(46, 42, 59, .12); }
.fe-card h2 { font: 700 2rem var(--head); line-height: 1.1; }
.fe-sub { margin: 6px 0 18px; color: var(--ink-muted); font-size: 1rem; }
.fe-view form { display: grid; }
.fe-view .pill.big { margin-top: 20px; }
.inp-ic { position: relative; margin-top: 14px; }
.inp-ic > .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); font-size: 1.15rem; pointer-events: none; }
.inp-ic input { width: 100%; min-height: 54px; padding: 0 48px 0 48px; border-radius: 16px; border: 2px solid transparent; background: #fff; outline: none; font-size: 1.02rem; box-shadow: 0 0 0 1px var(--line) inset; transition: border-color .15s, box-shadow .15s; }
.inp-ic input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255, 122, 107, .14); }
.inp-ic .eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; color: var(--ink-muted); display: grid; place-items: center; }
.inp-ic small { display: block; margin-top: 4px; font-size: .82rem; color: var(--ink-muted); min-height: 1em; padding-left: 4px; }
.inp-ic small.good { color: var(--success); } .inp-ic small.bad { color: var(--danger); }
.fe-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.fe-row .check { margin-top: 0; }
.fe-hello { font-size: 1.15rem; margin-bottom: 14px; }
.fe-hello b { color: var(--primary-dark); }
.fe-err { min-height: 1.2em; margin-top: 10px; color: var(--danger); font-size: .92rem; font-weight: 600; }
.fe-links { text-align: center; margin-top: 16px; font-size: .95rem; color: var(--ink-muted); }
.fe-guest { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; text-align: center; }
.fe-credit { margin-top: 12px; font-size: .72rem; color: var(--ink-muted); line-height: 1.4; text-align: center; }
.fe-credit a { color: var(--ink-muted); }
.fe-corner { position: fixed; z-index: 31; display: flex; gap: 10px; }
.fe-corner.tl { left: 26px; top: max(22px, env(safe-area-inset-top)); }
.fe-corner.bl { left: 30px; bottom: 22px; font: 600 .92rem var(--head); color: rgba(255, 248, 238, .85); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.fe-corner.br { right: 26px; bottom: 18px; }
.round-btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(40, 32, 58, .55); backdrop-filter: blur(8px); color: #fff; font-size: 1.35rem; transition: background .15s, transform .15s; }
.round-btn:hover { background: rgba(40, 32, 58, .8); transform: translateY(-1px); }
.glass-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: rgba(40, 32, 58, .55); backdrop-filter: blur(8px); color: #fff; font: 600 .98rem var(--head); text-decoration: none; }
.chars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.char { text-align: left; padding: 14px 16px; border-radius: 18px; border: 2px solid transparent; background: var(--surface-alt); display: grid; gap: 4px; transition: border-color .15s, background .15s, transform .15s; }
.char small { color: var(--ink-muted); font-size: .8rem; line-height: 1.3; }
.char b { font: 600 1.15rem var(--head); }
.char.on { border-color: var(--primary); background: #fff; }
.char:hover { transform: translateY(-1px); }
.fe-busy { position: fixed; inset: 0; z-index: 32; display: grid; place-items: center; background: rgba(20, 16, 34, .35); pointer-events: auto; }
.fe-busy span { width: 50px; height: 50px; border-radius: 50%; border: 5px solid rgba(255, 248, 238, .25); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
@media (max-width: 860px) {
  .front { grid-template-columns: 1fr; align-items: end; padding: 16px 14px max(16px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(20, 16, 34, .7), rgba(20, 16, 34, 0) 70%); }
  .fe-hero { display: none; }
  .fe-card { max-height: 80vh; padding: 24px 22px; border-radius: 26px; }
  .fe-corner.bl { display: none; }
}

/* ---------- Ad etiketleri (NameTag) ---------- */
.labels { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
body.no-names .tag.player b { display: none; }
.tag { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 2px; text-align: center; white-space: nowrap; will-change: transform; color: var(--on-dark); }
.tag b { padding: 3px 12px; border-radius: 999px; background: rgba(31, 26, 43, .62); font: 600 .9rem var(--head); }
.tag.npc b { box-shadow: inset 0 -2px 0 var(--accent); }
.tag small { font: 700 .66rem var(--body); letter-spacing: .07em; color: rgba(255, 248, 238, .82); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); text-transform: uppercase; }
.tag .mark { font: 700 1.9rem var(--head); color: var(--gold); text-shadow: 0 2px 0 #a8750d, 0 0 18px rgba(244, 185, 66, .8); animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.tag.house b { font-size: .82rem; background: rgba(31, 26, 43, .5); }
.bubble { max-width: 240px; white-space: normal; padding: 8px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface); color: var(--ink); font: 600 .92rem var(--body); margin-bottom: 4px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }

/* ---------- HUD (GameHUD) ---------- */
.hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; color: var(--on-dark); }
.hud > *, .hud .panel { pointer-events: auto; }
.glass { background: var(--hud); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 0 0 1px var(--hud-line) inset, 0 8px 24px rgba(0, 0, 0, .18); }
.card { background: var(--hud); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 22px; }
/* Sol üst rozet (PlayerBadge) */
.badge { position: absolute; left: 22px; top: max(18px, env(safe-area-inset-top)); display: flex; align-items: center; gap: 14px; padding: 8px 26px 8px 8px; border-radius: 999px; pointer-events: none; min-width: 250px; }
.badge .pf { width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(#cfe8ff, #fff); box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--sky); overflow: hidden; display: grid; place-items: center; font: 700 1.6rem var(--head); color: var(--ink); flex: none; }
.badge .pf img { width: 100%; height: 100%; object-fit: cover; }
.badge b { display: block; font: 600 1.35rem var(--head); line-height: 1.1; text-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.salt { display: inline-flex; align-items: center; gap: 7px; margin-top: 3px; padding: 2px 12px 2px 6px; border-radius: 999px; background: rgba(0, 0, 0, .18); font-size: .95rem; }
.salt em { font-style: normal; color: var(--gold); font: 700 1.05rem var(--head); font-variant-numeric: tabular-nums; }
.salt-ico { width: 18px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, #fff 0%, #f1d9e4 55%, #c9b2c8 100%); transform: skewX(-12deg); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.net { position: absolute; left: 22px; top: calc(max(18px, env(safe-area-inset-top)) + 88px); padding: 10px 18px; border-radius: 999px; background: var(--danger); color: #fff; font: 600 .92rem var(--head); }
/* Üst orta saat (BuildClock) */
.clock { position: absolute; left: 50%; top: max(14px, env(safe-area-inset-top)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: 330px; height: 48px; padding: 0 16px 0 6px; border-radius: 999px; pointer-events: none; }
.clock .cdot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; font-size: 1.4rem; }
.clock.night .cdot { background: #5b5bb8; }
.clock .ctime { font: 600 1.6rem var(--head); font-variant-numeric: tabular-nums; min-width: 78px; }
.clock .cpart { font: 600 .98rem var(--head); color: rgba(255, 248, 238, .82); white-space: nowrap; }
.clock .cw { margin-left: auto; color: #9dc8ff; font-size: 1.2rem; }
/* Sağ üst mini harita + hızlı butonlar */
.mini { position: absolute; right: 26px; top: max(18px, env(safe-area-inset-top)); width: 236px; display: grid; justify-items: center; gap: 12px; }
.mini-ring { position: relative; width: 236px; height: 236px; border-radius: 50%; background: var(--surface); box-shadow: 0 10px 30px rgba(20, 10, 40, .35); cursor: pointer; }
.mini-ring canvas { position: absolute; left: 11px; top: 11px; width: 214px; height: 214px; border-radius: 50%; }
.mini-ring .cmp { position: absolute; left: 50%; top: 50%; width: 236px; height: 236px; margin: -118px; pointer-events: none; }
.mini-ring .cmp span { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink-muted); font: 700 .78rem var(--head); }
.mini-ring .cmp span.n { width: 30px; height: 30px; margin: -15px; background: var(--primary); color: #fff; font-size: .95rem; }
.mini-ring .zoom { position: absolute; right: -4px; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); color: var(--ink); font: 700 1.3rem/1 var(--head); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.mini-ring .zoom.in { bottom: 30px; } .mini-ring .zoom.out { bottom: -6px; }
.quick { display: flex; gap: 4px; padding: 0; }
.qb { position: relative; display: grid; justify-items: center; gap: 6px; width: 50px; color: #fff; }
.qb > i.qi { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--hud); backdrop-filter: blur(10px); font-size: 1.3rem; transition: background .15s, transform .15s; }
.qb:hover > i.qi { background: rgba(255, 122, 107, .9); transform: translateY(-2px); }
.qb kbd { min-width: 22px; height: 20px; font-size: .7rem; }
.qb .dot-badge { position: absolute; right: 0; top: -4px; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 5px; background: var(--danger); color: #fff; font: 700 .72rem/20px var(--head); }
/* Görev kartı (QuestTracker) */
.quest { position: absolute; right: 22px; top: calc(max(18px, env(safe-area-inset-top)) + 330px); width: min(340px, 46vw); padding: 16px 18px; border-radius: 20px; background: rgba(255, 248, 238, .94); color: var(--ink); box-shadow: 0 10px 30px rgba(20, 10, 40, .25); backdrop-filter: blur(8px); }
.quest header { display: flex; align-items: center; gap: 10px; }
.quest .flag { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 1rem; flex: none; }
.quest header b { font: 600 1.2rem var(--head); }
.quest header small { margin-left: auto; color: var(--ink-muted); font: 600 .9rem var(--head); }
.quest .qcollapse { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-alt); color: var(--ink-muted); display: grid; place-items: center; font-size: 1rem; }
.quest .qbar { height: 6px; border-radius: 3px; background: var(--surface-deep); margin: 10px 0 8px; overflow: hidden; }
.quest .qbar i { display: block; height: 100%; background: var(--secondary); border-radius: inherit; transition: width .4s; }
.quest .qstep { display: flex; gap: 8px; align-items: center; font: 600 .95rem var(--body); color: var(--ink-muted); }
.quest .qstep .ic { color: var(--secondary); font-size: 1.2rem; }
.quest p { margin-top: 6px; color: var(--ink); font-size: .9rem; line-height: 1.4; }
.quest.done p { color: var(--secondary-dark); font-weight: 800; }
.quest.collapsed .qbody { display: none; }
.daily { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(244, 185, 66, .14); }
.daily h4 { margin: 0 0 4px; font: 700 .78rem var(--body); letter-spacing: .08em; color: var(--gold-ink); display: flex; align-items: center; gap: 6px; }
.daily p { margin-top: 4px; font-size: .86rem; color: var(--ink); display: flex; gap: 8px; align-items: center; line-height: 1.3; }
.daily p span { width: 16px; height: 16px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px var(--line) inset; display: grid; place-items: center; color: #fff; font-size: .7rem; flex: none; }
.daily p.ok span { background: var(--secondary); box-shadow: none; }
.daily p.ok { color: var(--ink-muted); text-decoration: line-through; font-weight: 400; }
.daily em { font-style: normal; color: var(--ink-muted); }
.daily small { margin-left: auto; color: var(--secondary-dark); font-weight: 800; }
/* Etkileşim ipucu */
.prompt { position: absolute; left: 50%; bottom: calc(118px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 22px 8px 8px; border-radius: 999px; background: rgba(255, 248, 238, .95); color: var(--ink); font: 600 1.02rem var(--head); box-shadow: 0 8px 24px rgba(0, 0, 0, .22); animation: rise .25s ease; }
.prompt kbd { min-width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1rem; box-shadow: 0 3px 0 var(--primary-dark); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }
/* Hızlı erişim (HotbarUI) */
.hotbar { position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 6px; padding: 8px; border-radius: 20px; background: var(--hud); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px var(--hud-line) inset; }
.slot { position: relative; width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(#fffaf2, #f3e9da); display: grid; place-items: center; border: 3px solid transparent; transition: border-color .12s, transform .12s; color: var(--ink); box-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.slot img { width: 74%; height: 74%; object-fit: contain; pointer-events: none; }
.slot em { position: absolute; right: -4px; bottom: -4px; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px; background: #4b4558; color: #fff; font: 700 .78rem/24px var(--head); text-align: center; font-style: normal; box-shadow: 0 0 0 2px #fff; }
.slot .n { position: absolute; left: 6px; top: 1px; font: 700 .72rem var(--head); color: var(--ink-muted); }
.slot.on { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 6px 14px rgba(244, 185, 66, .35); }
.slot:hover { transform: translateY(-2px); }
.panel .slot { background: var(--surface-alt); box-shadow: none; }
.panel .slot:hover { background: #fff; }
.toasts { position: absolute; left: 50%; top: max(76px, calc(env(safe-area-inset-top) + 70px)); transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { padding: 11px 20px; border-radius: 999px; background: rgba(255, 248, 238, .96); color: var(--ink); font: 600 .98rem var(--body); box-shadow: 0 8px 24px rgba(0, 0, 0, .22); animation: rise .3s ease; transition: opacity .5s, transform .5s; max-width: min(560px, 90vw); text-align: center; }
.toast.gain { background: var(--secondary); color: #fff; }
.toast.quest { background: var(--gold); color: var(--ink); }
.toast.out { opacity: 0; transform: translateY(-8px); }
/* Sohbet (ChatUI) */
.chat { position: absolute; left: 22px; bottom: max(18px, env(safe-area-inset-bottom)); width: min(440px, 40vw); pointer-events: none; }
.chat .log { max-height: 30vh; overflow: hidden; display: grid; gap: 4px; align-content: end; }
.chat .log p { justify-self: start; padding: 5px 12px; border-radius: 12px; background: rgba(31, 26, 43, .5); font-size: .92rem; opacity: 0; transition: opacity .6s; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.chat .log p.new, .hud.typing .chat .log p { opacity: 1; }
.chat .log p.sys { color: #9ff0d6; font-style: italic; }
.chat .log p b { color: var(--gold); margin-right: 4px; }
.chat .log p em { font-style: normal; font-size: .78rem; opacity: .9; } .chat .log p.ch1 em { color: #9fd3ff; } .chat .log p.ch2 em { color: #b7f08a; } .chat .log p.ch3 em { color: #f6a8d8; }
.chat form { margin-top: 8px; pointer-events: auto; display: flex; gap: 6px; }
.chat input { flex: 1; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 0; background: rgba(255, 248, 238, .96); color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(255, 122, 107, .5); }
.ch-chip { flex: none; min-height: 46px; padding: 0 16px; border-radius: 999px; background: var(--surface); color: var(--primary-dark); font: 600 .9rem var(--head); }
.ch-chip[data-ch="1"] { color: #3d79c9; } .ch-chip[data-ch="2"] { color: #3f8f2e; } .ch-chip[data-ch="3"] { color: #c2479a; }
.chat-hint { position: absolute; left: 22px; bottom: max(18px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 12px; font: 600 .92rem var(--head); pointer-events: none; }
.chat-hint kbd { min-width: 52px; height: 26px; border-radius: 7px; }
.hud.typing .chat-hint { display: none; }
.chat:has(.log p.new) ~ .chat-hint, .hud.typing .chat ~ .chat-hint { opacity: 0; }
/* Sağ alt FPS / ping (HUDStats) */
.stats { position: absolute; right: 22px; bottom: max(18px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 16px; padding: 8px 18px; border-radius: 14px; font: 600 .92rem var(--head); pointer-events: none; font-variant-numeric: tabular-nums; }
.stats i.pd { width: 9px; height: 9px; border-radius: 50%; background: var(--success); display: inline-block; margin-right: 8px; }
.stats i.pd.bad { background: var(--danger); } .stats i.pd.mid { background: var(--gold); }
.keys { display: none; }

/* ---------- Harita ---------- */
.map { position: fixed; z-index: 13; width: min(760px, calc(100vw - 24px)); }
.map-view { position: relative; width: 100%; aspect-ratio: 1; max-height: 68vh; border-radius: 22px; overflow: hidden; cursor: grab; touch-action: none; background: #2a8fb0; box-shadow: 0 0 0 4px var(--surface-alt); }
.map-view canvas { width: 100%; height: 100%; display: block; }
.map-legend { margin-top: 12px; display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; font-size: .86rem; color: var(--ink-muted); }
.lg { display: inline-block; flex: none; width: 11px; height: 11px; border-radius: 50%; margin-right: 5px; box-shadow: 0 0 0 2px #fff; vertical-align: -1px; }
.lg.me { background: var(--primary); } .lg.npc { background: #fff; box-shadow: 0 0 0 2px var(--ink); } .lg.quest { background: var(--gold); }
.lg.home { background: var(--secondary); } .lg.shop { background: #c96ad8; } .lg.pl { background: var(--sky); }

/* ---------- Emote çarkı (EmoteWheelUI) ---------- */
.wheel { position: fixed; inset: 0; z-index: 14; display: grid; place-items: center; background: rgba(27, 23, 38, .3); }
.wheel-center { position: absolute; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); font: 700 1rem var(--head); box-shadow: var(--shadow); }
.wheel-item { position: absolute; width: 112px; min-height: 60px; padding: 6px 8px; border-radius: 20px; background: var(--surface); color: var(--ink); font: 600 .9rem var(--head); display: grid; gap: 2px; place-items: center; transition: background .15s, transform .15s; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.wheel-item b { font-size: .7rem; color: var(--ink-muted); }
.wheel-item:hover { background: var(--primary); color: #fff; transform: scale(1.06); }
.wheel-item:hover b { color: #fff; }

/* ---------- Dokunmatik ---------- */
.touch { position: fixed; inset: 0; z-index: 11; pointer-events: none; }
.touch > * { pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.tc-stick { position: absolute; left: max(18px, env(safe-area-inset-left)); bottom: calc(96px + env(safe-area-inset-bottom)); width: 132px; height: 132px; border-radius: 50%; background: rgba(31, 26, 43, .35); box-shadow: inset 0 0 0 2px rgba(255, 248, 238, .25); }
.tc-stick i { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px; border-radius: 50%; background: rgba(255, 248, 238, .92); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.tc-btn { position: absolute; border-radius: 50%; background: rgba(31, 26, 43, .6); color: #fff; font: 700 1.4rem var(--head); box-shadow: inset 0 0 0 2px rgba(255, 248, 238, .25); }
.tc-jump { right: max(22px, env(safe-area-inset-right)); bottom: calc(104px + env(safe-area-inset-bottom)); width: 74px; height: 74px; }
.tc-act { right: max(108px, calc(env(safe-area-inset-right) + 86px)); bottom: calc(158px + env(safe-area-inset-bottom)); min-width: 74px; height: 56px; padding: 0 16px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .95rem; box-shadow: 0 4px 0 var(--primary-dark); }
.tc-top { display: none; }
.tc-mini { min-height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(31, 26, 43, .7); color: #fff; font: 600 .85rem var(--head); }
body.touch .prompt { display: none !important; }

/* ---------- Dükkân / üretim ---------- */
.shop { position: fixed; z-index: 13; width: min(640px, calc(100vw - 24px)); }
.shop-list { display: grid; gap: 8px; max-height: min(56vh, 480px); overflow: auto; padding-right: 4px; }
.shop-row { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 18px; background: var(--surface-alt); }
.shop-row img { width: 48px; height: 48px; object-fit: contain; }
.shop-row b { font: 600 1.05rem var(--head); }
.shop-row small { display: block; color: var(--ink-muted); font-size: .84rem; }
.shop-row .pill { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.craft-row small .ok { color: var(--success); } .craft-row small .miss { color: var(--danger); }
@media (max-width: 720px) { .shop-row { grid-template-columns: 40px 1fr; } }

/* ---------- Balık ---------- */
.bite { position: fixed; z-index: 12; left: 50%; top: 38%; transform: translate(-50%, -50%); font: 700 clamp(3rem, 10vw, 6rem) var(--head); color: #fff; -webkit-text-stroke: 3px var(--primary-dark); text-shadow: 0 .08em 0 var(--primary-dark), 0 0 40px rgba(255, 122, 107, .6); pointer-events: none; animation: biteIn .5s ease infinite alternate; }
@keyframes biteIn { from { transform: translate(-50%, -50%) scale(.92); } to { transform: translate(-50%, -50%) scale(1.06); } }
.reel { position: fixed; z-index: 12; right: calc(50% + 120px); top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: auto auto; gap: 10px; align-items: stretch; padding: 16px; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); touch-action: none; user-select: none; }
.reel p { grid-column: 1 / -1; max-width: 140px; font-size: .8rem; color: var(--ink-muted); text-align: center; }
.reel-bar { position: relative; width: 48px; height: 300px; border-radius: 16px; background: linear-gradient(#5aa9d6, #1d4f73); overflow: hidden; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .25); }
.reel-zone { position: absolute; left: 4px; right: 4px; border-radius: 10px; background: rgba(91, 200, 168, .85); box-shadow: 0 0 14px rgba(91, 200, 168, .7); }
.reel.golden .reel-zone { background: rgba(244, 185, 66, .9); }
.reel-fish { position: absolute; left: 50%; width: 28px; height: 24px; margin-left: -14px; border-radius: 50% 40% 40% 50%; background: var(--primary); box-shadow: 0 0 0 3px #fff; }
.reel-prog { position: relative; width: 14px; border-radius: 999px; background: var(--surface-deep); overflow: hidden; }
.reel-prog i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: inherit; background: var(--secondary); }
.reel.shake { animation: shake .12s linear infinite; }
@keyframes shake { 50% { transform: translateY(-50%) translateX(2px); } }
@media (max-width: 720px) { .reel { right: 16px; } .reel-bar { height: 240px; } }

/* ---------- Çanta / sandık ---------- */
.inv { width: min(780px, calc(100vw - 24px)); }
.inv .grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.inv .slot { width: auto; aspect-ratio: 1; height: auto; min-width: 0; }
.inv .slot.hot { background: rgba(91, 200, 168, .18); }
.inv .slot.picked { border-color: var(--secondary); }
.inv footer { display: block; min-height: 96px; background: var(--surface-alt); border-radius: var(--r-md); padding: 14px 16px; }
.info { display: flex; gap: 14px; align-items: flex-start; }
.info img { width: 58px; height: 58px; object-fit: contain; flex: none; }
.info b { font: 600 1.15rem var(--head); }
.info p { color: var(--ink-muted); font-size: .92rem; margin-top: 4px; }
.acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chest .grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.chest-hint { font-size: .9rem; }

/* ---------- Posta / pazar / pano / ev ---------- */
.mail { width: min(900px, calc(100vw - 32px)); }
.mail-cols { display: flex; gap: 18px; align-items: flex-start; }
.mail-inbox { flex: 1.3; min-width: 0; max-height: 54vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
#mailList, #marketList { display: flex; flex-direction: column; gap: 8px; }
.mail-row { display: flex; gap: 12px; align-items: center; background: var(--surface-alt); border-radius: 18px; padding: 12px 14px; }
.mail-row > div:first-child { flex: 1; min-width: 0; } .mail-row b { font: 600 1.05rem var(--head); } .mail-row p { font-size: .88rem; color: var(--ink-muted); margin-top: 3px; overflow-wrap: anywhere; }
.mail-gift { display: grid; place-items: center; width: 50px; } .mail-gift img { width: 40px; height: 40px; } .mail-gift small { font: 700 .78rem var(--head); }
.salt-ic { color: var(--gold); font-size: 1.4rem; }
.mail-compose { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; background: var(--surface-alt); border-radius: 20px; padding: 18px; }
.mail-compose h4 { margin: 0; }
.mail-compose input:not([type]), .mail-compose input[type="text"], .mail-compose textarea, .mail-compose input[type="number"] { width: 100%; min-height: 50px; border: 2px solid transparent; border-radius: 14px; padding: 10px 14px; background: #fff; color: var(--ink); outline: none; box-shadow: 0 0 0 1px var(--line) inset; }
.mail-compose input[readonly] { opacity: .7; }
.mail-attach { display: flex; gap: 10px; align-items: center; font-size: .9rem; padding: 10px 12px; border-radius: 14px; background: #fff; }
.mail-attach input { width: 20px; height: 20px; accent-color: var(--primary); }
@media (max-width: 700px) { .mail-cols { flex-direction: column; } .mail-inbox { max-height: 30vh; width: 100%; } .mail-compose { width: 100%; } }
.market .mail-row.mine { background: rgba(91, 200, 168, .16); }
.market .price { color: var(--gold-ink); white-space: nowrap; font: 700 1.05rem var(--head); }
.market .mail-row > div:first-child { flex: none; } .market .mail-row > div:nth-child(2) { flex: 1; min-width: 0; }
.market-held { display: flex; gap: 12px; align-items: center; min-height: 60px; padding: 10px 12px; border-radius: 14px; background: #fff; } .market-held img { width: 44px; height: 44px; } .market-held p { font-size: .84rem; }
#marketRefresh { right: 72px; }
#marketRefresh::before { -webkit-mask-image: url(assets/ui/icons/refresh.png); mask-image: url(assets/ui/icons/refresh.png); }
.board .fest { margin: -6px 0 14px; color: var(--primary-dark); font: 600 1rem var(--head); } .board .fest em { color: var(--danger); font-style: normal; }
.board-col { flex: 1; min-width: 0; background: var(--surface-alt); border-radius: 20px; padding: 16px 18px; }
.board-col h4 { margin: 0 0 4px; }
.board-col ol { margin: 12px 0 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.board-col li { font-size: .95rem; } .board-col li span { float: right; color: var(--gold-ink); font-weight: 800; } .board-col li.empty { list-style: none; margin-left: -1.4em; color: var(--ink-muted); }
.board-me { margin-top: 14px; font-size: .92rem; padding: 12px 14px; border-radius: 14px; background: var(--surface-alt); }
.visit, .home, .social, .pmenu { width: min(560px, calc(100vw - 32px)); }
.visit-acts { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px; }
.guestbook { max-height: 34vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; font-size: .95rem; padding: 12px 14px; border-radius: 16px; background: var(--surface-alt); }
.swatches { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.swatch { height: 48px; border-radius: 14px; border: 3px solid #fff; position: relative; box-shadow: 0 0 0 1px var(--line); transition: transform .12s; }
.swatch:hover { transform: translateY(-2px); }
.swatch span { position: absolute; left: -4px; right: -4px; bottom: -20px; font: 600 .68rem var(--head); color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.swatch.on { box-shadow: 0 0 0 3px var(--primary); }
#homeFloor { margin-bottom: 22px; } #homeWall { margin-bottom: 20px; }
.home-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; font: 600 1rem var(--head); }
.home-cap { margin-top: 14px; font-size: .92rem; padding: 12px 14px; border-radius: 14px; background: var(--surface-alt); }
.home-access { margin-top: 10px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--surface-alt); font-size: .92rem; }
.home-access.on { background: rgba(91, 200, 168, .2); }

/* ---------- Günlük ---------- */
.journal { width: min(1000px, calc(100vw - 32px)); }
.jpage { max-height: 62vh; overflow-y: auto; padding-right: 4px; }
.j-count { font: 600 1.15rem var(--head); } .j-track { height: 12px; border-radius: 99px; background: var(--surface-deep); overflow: hidden; margin: 8px 0; } .j-track i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 14px; }
.fish-card { background: var(--surface-alt); border-radius: 20px; padding: 14px 10px; text-align: center; }
.fish-card .ring { width: 86px; height: 86px; margin: 0 auto 8px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 0 var(--surface-deep); }
.fish-card .ring img { width: 64px; height: 64px; object-fit: contain; }
.fish-card.unk .ring img { filter: brightness(0) opacity(.35); } .fish-card.unk b { color: var(--ink-muted); }
.fish-card b { font: 600 1.05rem var(--head); }
.fish-card p { font-size: .8rem; color: var(--ink-muted); margin-top: 4px; }
.skill { background: var(--surface-alt); border-radius: 20px; padding: 14px 18px; margin-top: 10px; }
.skill-top, .skill-bot { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; } .skill-top b { font: 600 1.25rem var(--head); } .skill-top span { font: 600 1.05rem var(--head); } .skill-bot { font-size: .88rem; } .skill-bot small { color: var(--ink-muted); }
.achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 10px; }
.ach { background: var(--surface-alt); border-radius: 20px; padding: 14px; text-align: center; opacity: .7; } .ach.got { opacity: 1; background: rgba(244, 185, 66, .18); }
.ach b { font: 600 1.02rem var(--head); }
.ach .medal { width: 50px; height: 50px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-deep); font-size: 1.4rem; color: #fff; }
.ach.got .medal { background: var(--gold); } .ach p { font-size: .8rem; color: var(--ink-muted); margin-top: 4px; }
.steps p { display: flex; gap: 10px; padding: 8px 12px; border-radius: 12px; font-size: .95rem; color: var(--ink-muted); } .steps p.done { text-decoration: line-through; } .steps p.act { background: rgba(255, 122, 107, .14); color: var(--ink); font-weight: 800; }
.steps i { font-style: normal; width: 18px; text-align: center; }
.jpage h4 { margin: 16px 0 6px; } .j-hint { color: var(--primary-dark); font: 600 1rem var(--head); margin-bottom: 8px; }

/* ---------- Oyuncu menüsü / istekler / sosyal / takas ---------- */
.pm-links, .pm-mod { display: flex; gap: 18px; flex-wrap: wrap; margin: 2px 0 14px; }
.pm-mod { margin: 16px 0 0; } .pm-mod .link { color: var(--ink-muted); font-size: .88rem; }
.pm-acts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pm-acts button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px 10px; border-radius: 20px; background: var(--surface-alt); font: 600 .95rem var(--head); transition: transform .12s, background .12s; }
.pm-acts button:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .1); }
.pm-acts i { font-style: normal; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.3rem; }
.pm-acts kbd { font-size: .68rem; }
.pm-reasons { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.req { position: absolute; left: 50%; top: 92px; transform: translateX(-50%); width: min(440px, calc(100vw - 32px)); padding: 16px 18px; z-index: 30; pointer-events: auto; text-align: center; background: var(--surface); color: var(--ink); border-radius: 22px; box-shadow: var(--shadow); font-size: 1.02rem; animation: rise .25s ease; }
.req div { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
#socFriends, #socParty { display: flex; flex-direction: column; gap: 8px; max-height: 40vh; overflow-y: auto; }
.soc-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--surface-alt); flex-wrap: wrap; }
.soc-row b { font: 600 1.02rem var(--head); }
.soc-row small { color: var(--ink-muted); font-size: .82rem; } .soc-acts { margin-left: auto; display: flex; gap: 6px; } .soc-acts .pill { min-height: 34px; padding: 0 14px; font-size: .85rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-deep); } .dot.on { background: var(--success); }
.trade { width: min(800px, calc(100vw - 32px)); } .tr-cols { display: flex; gap: 14px; } .tr-side { flex: 1; min-width: 0; background: var(--surface-alt); border-radius: 20px; padding: 14px 16px; }
.tr-side h4 { margin: 0 0 8px; } .tr-offer { display: flex; flex-direction: column; gap: 6px; min-height: 64px; }
.tr-line { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: #fff; text-align: left; } .tr-line img { width: 30px; height: 30px; } .tr-line b { margin-left: auto; }
.tr-salt { margin-top: 10px; } .tr-ok { margin-top: 6px; font-size: .88rem; min-height: 1em; }
.tr-bag { display: grid; gap: 6px; grid-template-columns: repeat(10, minmax(0, 1fr)); margin-top: 10px; } .tr-bag .slot { width: auto; height: auto; aspect-ratio: 1; min-width: 0; }
.tr-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }

/* ---------- Mektup / banka ---------- */
.letter .paper { background: #fffdf7; color: #3a2f22; padding: 26px 28px; border-radius: 18px; line-height: 1.6; display: grid; gap: 12px; box-shadow: inset 0 0 0 2px #efe0c0; font-size: 1.02rem; }
.letter .sign { text-align: right; font-family: var(--head); }
.bank-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bank-row div { padding: 16px 18px; border-radius: 20px; background: var(--surface-alt); }
.bank-row small { display: block; color: var(--ink-muted); font-weight: 600; }
.bank-row b { font: 700 1.9rem var(--head); color: var(--gold-ink); font-variant-numeric: tabular-nums; }

/* ---------- NPC diyaloğu (NpcDialogueUI) ---------- */
.dialog { left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(820px, calc(100vw - 24px)); display: flex; gap: 20px; padding: 22px 26px; animation: rise2 .25s ease; }
@keyframes rise2 { from { opacity: 0; transform: translate(-50%, 14px); } }
.portrait { flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font: 700 2.2rem var(--head); background: var(--accent, var(--secondary)); color: #fff; box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--accent, var(--secondary)); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.hud:has(.dialog:not([hidden])) .hotbar, .hud:has(.dialog:not([hidden])) .prompt, .hud:has(.dialog:not([hidden])) .chat-hint { display: none; }
.dlg-body { flex: 1; min-width: 0; padding-right: 10px; }
.dlg-body header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dlg-body header b { font: 600 1.45rem var(--head); }
.dlg-body header small { display: block; font: 700 .76rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent, var(--secondary)); }
.dlg-body p { margin-top: 8px; font-size: 1.12rem; line-height: 1.5; min-height: 3em; }
.dlg-body p b { color: var(--primary-dark); }
.hearts { margin-left: auto; display: inline-flex; gap: 2px; font-size: 1.15rem; color: var(--surface-deep); }
.hearts i { font-style: normal; } .hearts i.on { color: var(--danger); } .hearts i.half { color: rgba(229, 72, 77, .45); }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.options .pill { min-height: 42px; }
.continue { display: block; margin-top: 10px; text-align: right; color: var(--ink-muted); font-size: .88rem; }

/* ---------- Ayarlar (SettingsWindow) ---------- */
.settings { width: min(1000px, calc(100vw - 24px)); height: min(700px, calc(100vh - 24px)); display: grid; grid-template-columns: 240px 1fr; grid-template-rows: auto 1fr auto; padding: 0; overflow: hidden; z-index: 40; }
.settings header { grid-column: 1 / -1; padding: 28px 34px 0; margin: 0; }
.set-tabs { padding: 18px 14px 14px 22px; border-right: 2px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.set-tabs button { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 16px; font: 600 1.08rem var(--head); color: var(--ink-muted); text-align: left; transition: background .15s, color .15s; }
.set-tabs button .ic { font-size: 1.35rem; }
.set-tabs button.on { background: var(--primary); color: #fff; box-shadow: 0 4px 0 var(--primary-dark); }
.set-tabs button:hover:not(.on) { background: var(--surface-alt); color: var(--ink); }
.set-body { padding: 14px 34px 20px 30px; overflow-y: auto; }
.set-sec { margin: 18px 0 8px; font: 700 .82rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.set-sec:first-child { margin-top: 6px; }
.set-row { display: grid; grid-template-columns: 1fr minmax(200px, 300px); align-items: center; gap: 16px; min-height: 58px; padding: 6px 16px; border-radius: 16px; background: var(--surface-alt); margin-bottom: 8px; }
.set-row > span { font: 600 1.02rem var(--head); }
.set-row small { display: block; font: 400 .82rem var(--body); color: var(--ink-muted); }
.set-row input[type=range] { width: 100%; accent-color: var(--primary); height: 6px; }
.set-val { display: flex; align-items: center; gap: 12px; }
.set-val output { min-width: 50px; text-align: right; font: 600 .98rem var(--head); color: var(--ink); font-variant-numeric: tabular-nums; }
.stepper { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; height: 44px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line) inset; }
.stepper button { height: 40px; border-radius: 50%; color: var(--ink-muted); font: 700 1.2rem var(--head); }
.stepper button:hover { color: var(--primary-dark); }
.stepper span { text-align: center; font: 600 .98rem var(--head); }
.toggle { justify-self: end; position: relative; width: 56px; height: 32px; border-radius: 16px; background: var(--surface-deep); transition: background .2s; }
.toggle::after { content: ''; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s; }
.toggle.on { background: var(--secondary); } .toggle.on::after { transform: translateX(24px); }
.keygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.keygrid div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface-alt); font-size: .95rem; }
.keygrid kbd { min-width: 34px; height: 28px; font-size: .82rem; background: #fff; }
.set-foot { grid-column: 2; display: flex; justify-content: flex-end; gap: 12px; padding: 14px 34px 26px 30px; border-top: 2px solid var(--line); }
.about p { line-height: 1.55; margin-bottom: 10px; }
@media (max-width: 760px) {
  .settings { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; height: calc(100vh - 24px); }
  .set-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 2px solid var(--line); padding: 12px; }
  .set-tabs button { min-height: 42px; padding: 0 12px; font-size: .95rem; flex: none; }
  .set-row { grid-template-columns: 1fr; }
  .set-foot { grid-column: 1; }
  .keygrid { grid-template-columns: 1fr; }
}

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .badge { left: 10px; top: max(10px, env(safe-area-inset-top)); min-width: 0; padding: 6px 16px 6px 6px; gap: 10px; }
  .badge .pf { width: 44px; height: 44px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sky); }
  .badge b { font-size: 1.05rem; }
  .clock { top: calc(max(10px, env(safe-area-inset-top)) + 64px); left: 10px; transform: none; width: auto; height: 38px; gap: 8px; padding: 0 12px 0 4px; }
  .clock .cdot { width: 30px; height: 30px; font-size: 1.1rem; } .clock .ctime { font-size: 1.15rem; min-width: 0; } .clock .cpart { font-size: .8rem; } .clock .cw { display: none; }
  .mini { right: 10px; top: max(10px, env(safe-area-inset-top)); width: 150px; gap: 8px; }
  .mini-ring { width: 130px; height: 130px; } .mini-ring canvas { left: 7px; top: 7px; width: 116px; height: 116px; }
  .mini-ring .cmp { width: 130px; height: 130px; margin: -65px; } .mini-ring .zoom { display: none; }
  .quick { flex-wrap: wrap; justify-content: center; width: 160px; } .qb { width: 40px; } .qb > i.qi { width: 36px; height: 36px; font-size: 1.05rem; } .qb kbd { display: none; }
  .quest { top: calc(max(10px, env(safe-area-inset-top)) + 230px); right: 10px; width: 52vw; padding: 12px 14px; } .quest p { font-size: .84rem; } .quest .daily { display: none; }
  .slot { width: min(46px, calc((100vw - 64px) / 10)); height: min(46px, calc((100vw - 64px) / 10)); border-radius: 10px; border-width: 2px; }
  .slot .n { display: none; } .slot em { min-width: 18px; height: 18px; font-size: .64rem; line-height: 18px; }
  .hotbar { gap: 4px; padding: 5px; }
  .chat { width: 62vw; bottom: 80px; left: 10px; } .chat-hint, .stats { display: none; }
  .dialog { padding: 16px; gap: 12px; } .portrait { width: 56px; height: 56px; font-size: 1.5rem; }
  .modal { padding: 22px 18px; } .modal h2 { font-size: 1.5rem; } .modal header .hico { width: 42px; height: 42px; }
  .inv .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pm-acts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.shop-salt { margin-left: auto; background: var(--surface-alt); color: var(--ink); padding: 6px 14px 6px 10px; } .shop-salt em { color: var(--gold-ink); }
.set-row { grid-template-columns: minmax(150px, 1fr) minmax(170px, 290px); }
@media (max-width: 1000px) { .settings { grid-template-columns: 190px 1fr; } .set-body { padding: 12px 18px; } .set-row small { display: none; } }
.quest { cursor: pointer; }
