/* İnsan Kaynakları Simülatörü — oyun arayüzü
   Düzen: tam ekran Phaser tuvali; üstünde dokunulabilir HTML katmanı (HUD, diyalog, pencereler).
   Tek görünüm: koyu gece-ofis zemini, krem kâğıt paneller, piksel kenarlıklar. */
:root {
  --ink: #17111f;          /* oyun zemini */
  --ink-2: #251b33;        /* koyu panel */
  --paper: #fff7e8;        /* krem kâğıt */
  --paper-2: #f3e6cf;      /* gölge kâğıt */
  --line: #2a1e2e;         /* piksel kontur */
  --text: #2a1e2e;         /* kâğıt üstü metin */
  --text-soft: #6d5b70;    /* ikincil metin */
  --on-ink: #f6eedd;       /* koyu zemin üstü metin */
  --gold: #ffd45c;
  --gold-2: #ffe9a3;
  --plum: #7b4fa8;
  --teal: #2e8b8b;
  --coral: #e8604c;
  --mint: #3fbf86;
  --sky: #4fa8e0;
  --amber: #f39c32;
  --os-bg: #c8c2b4;
  --os-dark: #1d2a6b;
  --kk-brand: #ff6b3d;
  --display: "Pixelify Sans", "Courier New", monospace;
  --body: "Rubik", "Segoe UI", system-ui, sans-serif;
  --mono: "VT323", "Courier New", monospace;
  --px: 3px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; overflow: hidden; background: var(--ink); color: var(--on-ink);
  font-family: var(--body); font-size: 15px; -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none; touch-action: none;
}
#game { position: fixed; inset: 0; }
#game canvas { display: block; image-rendering: pixelated; }
#ui { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#ui > * { pointer-events: none; }
button, select, input, textarea, a { font: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-soft); }
.small { font-size: 0.85em; }
.warn { color: var(--coral); }
.urgent { color: var(--coral) !important; }
.good { color: var(--mint); }
img.ico, .ico { width: 16px; height: 16px; image-rendering: pixelated; flex: none; }
kbd { font-family: var(--mono); font-size: 1.05em; background: var(--paper-2); color: var(--text); border: 2px solid var(--line); border-bottom-width: 3px; padding: 0 5px; border-radius: 3px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ---------- butonlar */
.btn {
  pointer-events: auto; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border: var(--px) solid var(--line); background: var(--paper); color: var(--text);
  font-family: var(--display); font-size: 16px; line-height: 1.1; text-decoration: none;
  box-shadow: 0 4px 0 var(--line); transform: translateY(0); transition: transform .06s, box-shadow .06s, background .1s;
}
.btn:hover { background: #fff; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.btn.primary { background: var(--gold); }
.btn.primary:hover { background: var(--gold-2); }
.btn.ghost { background: transparent; color: inherit; box-shadow: none; border-color: currentColor; }
.btn.danger { background: var(--coral); color: #fff; }
.btn.big { font-size: 19px; padding: 10px 18px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 0 2px 0 var(--line); }

/* ---------- HUD */
.hud { position: fixed; inset: 0; }
.hud-left {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 10px); left: max(12px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 6px; max-width: min(560px, 62vw);
}
.title-chip, .chip, .day-card, .quest-box, .inv-slot {
  background: var(--paper); color: var(--text); border: var(--px) solid var(--line); box-shadow: 3px 3px 0 rgba(0,0,0,.45);
}
.title-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; align-self: flex-start; font-family: var(--display); font-size: 15px; }
.title-chip .xp { display: block; width: 120px; height: 5px; background: var(--paper-2); margin-top: 3px; border: 1px solid var(--line); }
.title-chip .xp i { display: block; height: 100%; background: var(--plum); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: flex; align-items: center; gap: 6px; padding: 3px 8px 4px; min-width: 0; }
.chip .chip-txt { display: flex; flex-direction: column; line-height: 1.05; }
.chip-label { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); }
.chip b { font-family: var(--display); font-size: 15px; font-variant-numeric: tabular-nums; }
.chip.warn { background: #ffe1d9; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 3px 3px 0 rgba(0,0,0,.45), 0 0 0 3px rgba(232,96,76,.45); } }
.mini-bar { display: block; width: 54px; height: 4px; background: var(--paper-2); margin-top: 2px; }
.mini-bar i { display: block; height: 100%; }
.mini-bar.gold i { background: #e0a91d; } .mini-bar.green i { background: var(--mint); } .mini-bar.blue i { background: var(--sky); }
.mini-bar.red i { background: var(--coral); } .mini-bar.orange i { background: var(--amber); }
.mini-bar.big { width: 100%; height: 12px; border: 2px solid var(--line); }
.pips { display: inline-flex; gap: 3px; margin-top: 2px; }
.pips i { width: 9px; height: 9px; background: var(--paper-2); border: 2px solid var(--line); }
.pips i.on { background: var(--gold); }

.hud-right {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 10px); right: max(12px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px; width: min(270px, 40vw);
}
.day-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 8px; padding: 5px 6px 5px 10px; width: 100%; }
.day-main { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 16px; }
.day-main .time { font-family: var(--mono); font-size: 20px; color: var(--plum); }
.place { grid-column: 1; font-size: 11px; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { pointer-events: auto; grid-row: 1 / span 2; grid-column: 2; width: 38px; height: 38px; border: var(--px) solid var(--line); background: var(--gold); cursor: pointer; display: grid; place-items: center; box-shadow: 0 3px 0 var(--line); }
.icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 3px; background: var(--line); position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.quest-box { pointer-events: auto; cursor: pointer; text-align: left; width: 100%; padding: 6px 10px 8px; display: flex; flex-direction: column; gap: 3px; font-family: var(--body); }
.qb-head { font-family: var(--display); font-size: 13px; color: var(--plum); letter-spacing: .04em; }
.qb-item { display: flex; align-items: baseline; gap: 6px; font-size: 13px; line-height: 1.25; color: var(--text-soft); }
.qb-item.main { color: var(--text); font-weight: 600; }
.qb-item::before { content: "◆"; font-size: 9px; color: var(--gold); text-shadow: 0 0 0 var(--line); -webkit-text-stroke: 1px var(--line); }
.qb-title { flex: 1; min-width: 0; }
.qb-dl { font-family: var(--mono); font-size: 16px; color: var(--teal); }
.qb-dl.urgent { color: var(--coral); }
.hud-inv { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); display: flex; gap: 6px; align-items: center; }
.inv-label { font-family: var(--display); font-size: 12px; color: var(--gold); }
.inv-slot { display: flex; align-items: center; gap: 5px; padding: 3px 8px; font-size: 12px; }
.inv-slot .ico { width: 20px; height: 20px; }
body.touch-on .hud-inv { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 150px); }

/* ---------- etkileşim etiketi, oda, bildirimler, yüzen sayılar */
.prompt { position: absolute; left: 0; top: 0; pointer-events: auto !important; display: flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; background: var(--ink-2); color: var(--on-ink); border: 2px solid var(--gold); font-size: 13px; white-space: nowrap; margin-top: -26px; cursor: pointer; }
.prompt-key { font-family: var(--mono); font-size: 16px; background: var(--gold); color: var(--line); padding: 0 6px; line-height: 1.2; }
.room-toast { position: absolute; left: 50%; top: 22%; transform: translate(-50%, -10px); font-family: var(--display); font-size: clamp(18px, 3vw, 26px); color: var(--on-ink); text-shadow: 3px 3px 0 var(--line); opacity: 0; transition: opacity .35s, transform .35s; white-space: nowrap; }
.room-toast.in { opacity: 1; transform: translate(-50%, 0); }
.toasts { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; width: min(340px, calc(100vw - 32px)); z-index: 30; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--paper); color: var(--text); border: var(--px) solid var(--line); box-shadow: 3px 3px 0 rgba(0,0,0,.5); transform: translateY(-14px); opacity: 0; transition: transform .25s, opacity .25s; }
.toast.in { transform: none; opacity: 1; }
.toast.out { opacity: 0; transform: translateY(-8px); }
.toast.good { border-color: #1f6b4a; background: #e4f8ec; }
.toast.bad { background: #ffe4dc; }
.toast.gold { background: #fff3c4; }
.toast-ico { width: 24px; height: 24px; image-rendering: pixelated; }
.toast-badge { width: 40px; height: 40px; image-rendering: pixelated; }
.toast-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.toast-txt strong { font-family: var(--display); font-size: 15px; }
.toast-txt span { font-size: 13px; color: var(--text-soft); }
.toast-act { pointer-events: auto; border: 2px solid var(--line); background: var(--gold); font-family: var(--display); cursor: pointer; padding: 4px 8px; }
.floaters { position: absolute; inset: 0; overflow: hidden; }
.floater { position: absolute; display: flex; align-items: center; gap: 4px; transform: translate(-50%, 0); font-family: var(--display); font-size: 15px; white-space: nowrap; text-shadow: 2px 2px 0 var(--line), -1px -1px 0 var(--line); animation: floatUp 1.6s ease-out forwards; }
.floater.good { color: #8ff0b5; } .floater.bad { color: #ff9a86; }
.fl-ico { width: 16px; height: 16px; image-rendering: pixelated; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, 8px); } 15% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -46px); } }
.fade { position: absolute; inset: 0; background: var(--ink); opacity: 0; transition: opacity .4s; display: grid; place-items: center; z-index: 60; }
.fade.on { opacity: 1; pointer-events: auto !important; }
.fade-text { font-family: var(--display); font-size: 22px; color: var(--gold); }

/* ---------- diyalog */
.dialog {
  pointer-events: auto !important; position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  transform: translate(-50%, 16px); opacity: 0; transition: transform .18s, opacity .18s;
  width: min(780px, calc(100vw - 24px)); display: flex; gap: 12px; padding: 12px 14px 12px 12px;
  background: var(--paper); color: var(--text); border: 4px solid var(--line); box-shadow: 0 6px 0 rgba(0,0,0,.5); z-index: 40; cursor: pointer;
}
.dialog.in { transform: translate(-50%, 0); opacity: 1; }
.dialog.narration { background: var(--ink-2); color: var(--on-ink); border-color: var(--gold); }
.dlg-portrait { flex: none; width: 88px; height: 100px; background: linear-gradient(#cfe7ef, #9fd0dc); border: var(--px) solid var(--line); display: grid; place-items: end center; overflow: hidden; }
.dlg-portrait img { width: 88px; height: 99px; image-rendering: pixelated; }
.dlg-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dlg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.dlg-name { font-family: var(--display); font-size: 19px; color: var(--plum); }
.narration .dlg-name { color: var(--gold); }
.dlg-role { font-size: 12px; color: var(--text-soft); }
.dlg-title { font-family: var(--display); font-size: 14px; background: var(--gold); color: var(--line); padding: 1px 7px; }
.dlg-text { font-size: 16.5px; line-height: 1.45; min-height: 2.9em; white-space: pre-line; max-width: 65ch; }
.dlg-choices { display: flex; flex-direction: column; gap: 6px; }
.dlg-choice { pointer-events: auto; display: flex; align-items: center; gap: 8px; text-align: left; cursor: pointer; padding: 7px 10px; background: var(--paper-2); color: var(--text); border: 2px solid var(--line); font-size: 15px; line-height: 1.3; }
.narration .dlg-choice { background: #382a4a; color: var(--on-ink); border-color: #5c4a72; }
.dlg-choice:hover, .dlg-choice:focus-visible { background: var(--gold); color: var(--line); outline: none; }
.dlg-choice.disabled { opacity: .5; cursor: not-allowed; }
.dlg-key { font-family: var(--mono); font-size: 17px; background: var(--line); color: var(--gold); padding: 0 6px; flex: none; }
.dlg-ctext { flex: 1; }
.dlg-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 1px 6px; border: 2px solid currentColor; opacity: .75; }
.dlg-hint { font-size: 12px; color: var(--coral); }
.dlg-next { align-self: flex-end; font-size: 12px; animation: bob .8s steps(2) infinite; color: var(--plum); }
.narration .dlg-next { color: var(--gold); }
@keyframes bob { 50% { transform: translateY(3px); } }

/* ---------- pencereler */
.modal-layer { position: absolute; inset: 0; z-index: 35; }
.modal-wrap { position: absolute; inset: 0; pointer-events: auto; background: rgba(12, 8, 18, .62); display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); opacity: 0; transition: opacity .15s; }
.modal-wrap.in { opacity: 1; }
.modal { width: min(560px, 100%); max-height: calc(100dvh - 24px); display: flex; flex-direction: column; background: var(--paper); color: var(--text); border: 4px solid var(--line); box-shadow: 0 8px 0 rgba(0,0,0,.5); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: var(--px) solid var(--line); background: var(--paper-2); }
.modal-title { margin: 0; flex: 1; font-family: var(--display); font-size: 21px; font-weight: 600; text-wrap: balance; }
.modal-x { pointer-events: auto; width: 34px; height: 34px; border: var(--px) solid var(--line); background: var(--coral); color: #fff; font-weight: 700; cursor: pointer; }
.modal-body { padding: 14px; overflow: auto; min-height: 0; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 10px 14px 14px; border-top: 2px dashed var(--paper-2); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: baseline; margin: 10px 0; }
.kv > span { color: var(--text-soft); font-size: 14px; }
.kv > b { font-weight: 600; text-align: right; }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border: 2px solid var(--line); background: var(--paper-2); white-space: nowrap; }
.pill.good { background: #c9f0d8; color: #165c3a; } .pill.bad { background: #ffd2c7; color: #8a2a17; } .pill.mid { background: #fff0b8; color: #6b5300; }
.tag { margin-left: 8px; font-size: 12px; font-family: var(--body); padding: 1px 7px; background: var(--gold); border: 2px solid var(--line); vertical-align: middle; }
.badge { font-style: normal; font-size: 11px; background: var(--coral); color: #fff; padding: 0 5px; margin-left: 4px; }
.morning .morning-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.morning-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; background: var(--paper-2); border-left: 4px solid var(--plum); line-height: 1.4; }
.morning-list .ico { width: 20px; height: 20px; margin-top: 1px; }
.howto h3 { font-family: var(--display); margin: 4px 0 6px; }
.howto p { line-height: 1.5; max-width: 65ch; margin: 0 0 10px; }
.keys { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 6px 0 14px; font-size: 14px; }

/* ---------- İKSİS 98 */
.modal.pc { width: min(1000px, 100%); height: min(720px, calc(100dvh - 24px)); background: #3b3a43; border-color: #111; padding: 14px 14px 22px; border-radius: 14px 14px 6px 6px; }
.modal.pc .modal-head { position: absolute; background: none; border: 0; padding: 0; right: 22px; top: 18px; z-index: 2; }
.modal.pc .modal-title { display: none; }
.modal.pc .modal-body { padding: 0; flex: 1; display: flex; border: 4px solid #111; border-radius: 6px; overflow: hidden; }
.modal.pc::after { content: ""; display: block; width: 60px; height: 6px; margin: 8px auto -10px; background: #55545e; border-radius: 3px; }
.os98 { flex: 1; display: flex; flex-direction: column; background: var(--os-bg); color: #111; min-width: 0; }
.os-bar { display: flex; align-items: center; gap: 10px; padding: 4px 56px 4px 10px; background: linear-gradient(90deg, var(--os-dark), #3a5cc0); color: #fff; font-family: var(--mono); font-size: 20px; }
.os-logo { font-weight: 700; letter-spacing: .05em; }
.os-sub { font-size: 16px; opacity: .8; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-budget { display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.25); padding: 0 8px; }
.os-main { flex: 1; display: flex; min-height: 0; }
.os-nav { display: flex; flex-direction: column; gap: 4px; padding: 8px; background: #b3ad9f; border-right: 2px solid #8a8577; width: 170px; flex: none; overflow-y: auto; }
.os-tab { pointer-events: auto; display: flex; align-items: center; gap: 8px; padding: 6px 8px; text-align: left; cursor: pointer; background: var(--os-bg); border: 2px solid; border-color: #fff #6d695f #6d695f #fff; font-family: var(--mono); font-size: 19px; color: #111; }
.os-tab.on { border-color: #6d695f #fff #fff #6d695f; background: #e6e1d4; }
.os-tab .ico { width: 18px; height: 18px; }
.os-content { flex: 1; min-width: 0; overflow: auto; padding: 14px; background: #ebe6d9; }
.os-content h3 { font-family: var(--display); margin: 4px 0 10px; font-size: 19px; }
.os-hint { font-family: var(--mono); font-size: 18px; margin: 0 0 10px; color: #333; }
.os-empty { padding: 30px 10px; text-align: center; }
.os-empty h3 { font-family: var(--display); }
.os-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.os-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #fff; border: 2px solid #aaa49a; }
.os-list li > div { flex: 1; min-width: 0; }
.mini-photo { width: 32px; height: 36px; image-rendering: pixelated; background: #cfe7ef; border: 2px solid var(--line); flex: none; }
.req .quote { font-style: italic; background: #fff; border-left: 4px solid var(--os-dark); padding: 8px 12px; max-width: 65ch; }
.req .kv { max-width: 520px; }
.cv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.cv-card { background: #fff; border: 2px solid #8a8577; box-shadow: 3px 3px 0 #aaa49a; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--text); }
.cv-head { display: flex; gap: 10px; align-items: center; }
.cv-head h4 { margin: 0; font-family: var(--display); font-size: 17px; }
.cv-head p { margin: 0; font-size: 13px; }
.cv-photo { width: 48px; height: 54px; image-rendering: pixelated; background: #cfe7ef; border: 2px solid var(--line); flex: none; }
.cv-dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: 13px; }
.cv-dl dt { color: var(--text-soft); } .cv-dl dd { margin: 0; }
.cv-claim { margin: 0; font-style: italic; font-size: 13px; background: #fff8d6; padding: 6px 8px; border-left: 3px solid var(--gold); }
.flags { display: flex; flex-wrap: wrap; gap: 4px; }
.flag { font-size: 12px; padding: 2px 6px; border: 1px solid; }
.flag.red { color: #9b2c17; background: #ffe6df; } .flag.green { color: #17603d; background: #e1f6e9; } .flag.unknown { color: #555; background: #eee; border-style: dashed; }
.estimate { margin: 0; font-family: var(--mono); font-size: 17px; color: var(--os-dark); }
.checks { display: flex; flex-wrap: wrap; gap: 4px; }
.chk { font-size: 12px; padding: 2px 6px; border: 2px solid; }
.chk.ok { color: #17603d; background: #e1f6e9; } .chk.no { color: #9b2c17; background: #ffe6df; }
.cv-actions { margin-top: auto; display: flex; justify-content: flex-end; }
.ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ad-opt { background: #fff; border: 2px solid #8a8577; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ad-opt h4 { margin: 0; font-family: var(--display); font-size: 18px; }
.ad-opt p { margin: 0; flex: 1; font-size: 14px; line-height: 1.4; }
.ad-opt.locked { opacity: .65; }
.skills { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.skill { display: grid; grid-template-columns: auto 1fr 110px 40px; align-items: center; gap: 10px; font-size: 14px; }
.skill:not(:has(.ico)) { grid-template-columns: 1fr 110px 40px; }
.skill .mini-bar { width: 110px; height: 8px; margin: 0; border: 2px solid var(--line); }
.me ul { padding-left: 18px; line-height: 1.5; }

/* ---------- KariyerKuşu */
.modal.pc-home { background: #2d2d33; }
.browser { flex: 1; display: flex; flex-direction: column; background: #fff; color: var(--text); min-width: 0; }
.br-chrome { display: flex; align-items: center; gap: 10px; padding: 6px 56px 6px 10px; background: #dedde3; border-bottom: 2px solid #b8b7c0; font-size: 13px; }
.br-chrome .dots { display: flex; gap: 5px; } .br-chrome .dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e !important; } .dots i:nth-child(3) { background: #28c840 !important; }
.br-chrome .url { flex: 1; background: #fff; padding: 3px 10px; border-radius: 12px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.br-stat { display: flex; align-items: center; gap: 5px; font-weight: 600; white-space: nowrap; }
.kk-head { display: flex; align-items: baseline; gap: 14px; padding: 12px 16px 6px; flex-wrap: wrap; }
.kk-logo { font-family: var(--display); font-size: 26px; color: #333; }
.kk-logo b { color: var(--kk-brand); }
.kk-tag { font-size: 13px; color: var(--text-soft); }
.kk-tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 3px solid var(--kk-brand); overflow-x: auto; flex: none; }
.kk-tabs button { pointer-events: auto; cursor: pointer; padding: 8px 12px; border: 0; background: none; font-weight: 600; color: #555; border-radius: 6px 6px 0 0; white-space: nowrap; }
.kk-tabs button.on { background: var(--kk-brand); color: #fff; }
.kk-content { flex: 1; overflow: auto; padding: 14px 16px; background: #f6f4f1; min-height: 0; }
.kk-content h3 { font-family: var(--display); margin: 8px 0; }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.job-grid > p { grid-column: 1 / -1; margin: 0; }
.job-card { background: #fff; border: 1px solid #e2ddd5; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 2px 0 #e2ddd5; min-width: 0; }
.job-card header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.job-card h4 { margin: 0; font-size: 16px; }
.job-card .company { margin: 2px 0 0; color: var(--text-soft); font-size: 13px; }
.tier { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #eef; white-space: nowrap; }
.tier.t1 { background: #e7f4ec; } .tier.t2 { background: #fff2d8; } .tier.t3 { background: #e5edff; } .tier.t4 { background: #f3e5ff; }
.salary { margin: 0; font-weight: 700; color: #1f7a4d; }
.desc { margin: 0; font-size: 14px; line-height: 1.4; }
.reqs { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.45; }
.reqs li.warn { color: var(--coral); }
.perks { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.perks span { font-size: 12px; background: #f3efe8; padding: 2px 8px; border-radius: 10px; }
.job-card footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 8px; }
.fit { font-size: 12px; font-weight: 600; }
.fit.good { color: #1f7a4d; } .fit.mid { color: #b07800; } .fit.bad { color: var(--coral); }
.job-card .btn { font-size: 14px; padding: 6px 10px; }
.invite { border-left: 4px solid var(--kk-brand) !important; }
.mail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mail-list li { display: flex; gap: 10px; background: #fff; padding: 8px 12px; border-radius: 8px; border: 1px solid #e2ddd5; }
.mail-list li.new { border-left: 4px solid var(--kk-brand); }
.mail-list p { margin: 2px 0 0; line-height: 1.4; }
.cv-shop { max-width: 520px; display: flex; flex-direction: column; gap: 12px; }
.cv-meter { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.cv-step { background: #fff; padding: 10px 12px; border-radius: 8px; border: 1px dashed #c9c1b3; margin: 0; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.course { background: #fff; border: 1px solid #e2ddd5; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.course h4 { margin: 0; } .course p { margin: 0; font-size: 14px; } .course .btn { margin-top: 6px; align-self: flex-start; font-size: 14px; }
.course-grid .skills { grid-column: 1 / -1; background: #fff; padding: 10px; border-radius: 10px; }
.gig { max-width: 520px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* ---------- faturalar */
.bill-paper { position: relative; background: #fff; border: 2px solid var(--line); padding: 12px 16px; box-shadow: 4px 4px 0 var(--paper-2); }
.bill-paper h3 { margin: 0 0 6px; font-family: var(--display); }
.stamp { position: absolute; right: 14px; top: 10px; margin: 0; font-family: var(--display); font-size: 20px; color: var(--coral); border: 3px solid var(--coral); padding: 0 8px; transform: rotate(8deg); opacity: .8; }

/* ---------- karar ve mülakat notları */
.modal.decision { width: min(980px, 100%); }
.decision-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 10px; }
.dec-card { background: #fff; border: var(--px) solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dec-card.focus { box-shadow: 0 0 0 4px var(--gold); }
.dec-card header { display: flex; gap: 10px; align-items: center; }
.dec-card h4 { margin: 0; font-family: var(--display); font-size: 17px; }
.dec-card header p { margin: 2px 0 4px; font-size: 13px; }
.ests { display: flex; flex-direction: column; gap: 4px; }
.est { display: grid; grid-template-columns: 92px 1fr 62px; gap: 8px; align-items: center; font-size: 13px; }
.est-bar { position: relative; height: 10px; background: var(--paper-2); border: 2px solid var(--line); }
.est-bar .range { position: absolute; top: 0; bottom: 0; background: rgba(79, 168, 224, .45); }
.est-bar .dot { position: absolute; top: -3px; width: 4px; height: 12px; margin-left: -2px; background: var(--line); }
.est.unknown { opacity: .55; }
.est b { text-align: right; font-size: 13px; }
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; }
.btn.offer { flex-direction: column; gap: 1px; padding: 6px 4px; font-size: 13px; }
.btn.offer b { font-size: 14px; }
.o-p { font-family: var(--body); font-size: 11px; color: var(--text-soft); }
.o-warn { font-family: var(--body); font-size: 10px; color: var(--coral); }
.btn.offer.high { background: #d9f2e4; } .btn.offer.low { background: #ffe8df; }
.iv-panel { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); top: calc(env(safe-area-inset-top, 0px) + 70px); width: 260px; background: var(--paper); color: var(--text); border: var(--px) solid var(--line); padding: 10px; box-shadow: 3px 3px 0 rgba(0,0,0,.45); z-index: 41; display: flex; flex-direction: column; gap: 4px; }
.iv-panel header { display: flex; gap: 8px; align-items: center; }
.iv-sub { margin: 4px 0 2px; font-family: var(--display); font-size: 14px; color: var(--plum); }
.iv-panel .est { grid-template-columns: 78px 1fr 56px; }
.iv-mood { margin: 4px 0 0; font-size: 13px; font-weight: 600; }

/* ---------- sonuç kartı & oyun sonu */
.modal.card-modal { width: min(760px, 100%); }
.card-preview { width: 100%; height: auto; border: var(--px) solid var(--line); display: block; }
.share-text { width: 100%; margin-top: 10px; padding: 8px; border: 2px solid var(--line); background: #fff; color: var(--text); resize: none; font-size: 14px; }
.modal.ending-modal { width: min(680px, 100%); }
.ending-hero { display: flex; gap: 16px; align-items: center; }
.ending-hero h2 { margin: 2px 0; font-family: var(--display); font-size: clamp(24px, 4vw, 34px); line-height: 1.1; text-wrap: balance; }
.eyebrow { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-soft); }
.career { margin: 0; color: var(--plum); font-weight: 600; }
.ending-text { line-height: 1.55; font-size: 16px; max-width: 65ch; }
.ending-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ending-stats > div { background: var(--paper-2); padding: 8px; display: flex; flex-direction: column; border: 2px solid var(--line); }
.ending-stats b { font-family: var(--display); font-size: 24px; }
.ending-stats span { font-size: 12px; color: var(--text-soft); }
.ending-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ending-badges img { width: 40px; height: 40px; image-rendering: pixelated; }
.tone-bad .ending-hero h2 { color: #8a2a17; }

/* ---------- menüler */
.pause-list { display: flex; flex-direction: column; gap: 10px; }
.modal.pause { width: min(380px, 100%); }
.quest-list { display: flex; flex-direction: column; gap: 10px; }
.quest { background: var(--paper-2); padding: 10px 12px; border-left: 4px solid var(--gold); }
.quest h4 { margin: 0 0 4px; font-family: var(--display); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.quest p { margin: 0; line-height: 1.45; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ach { display: flex; gap: 10px; align-items: center; padding: 8px; background: var(--paper-2); opacity: .6; }
.ach.got { opacity: 1; background: #fff3c4; border: 2px solid var(--line); }
.ach img { width: 40px; height: 40px; image-rendering: pixelated; }
.ach > div { display: flex; flex-direction: column; min-width: 0; }
.set-list { display: flex; flex-direction: column; gap: 12px; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.set-row select, .set-row input { pointer-events: auto; }
.set-row select { padding: 6px; border: 2px solid var(--line); background: #fff; color: var(--text); }
.set-row input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--plum); }
.stats-modal .kv { max-width: 420px; }

/* ---------- ana menü */
.menu { pointer-events: auto !important; position: absolute; inset: 0; overflow-y: auto; background: radial-gradient(ellipse at 50% 40%, rgba(23,17,31,.35), rgba(23,17,31,.88) 70%); }
.menu-inner { min-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-block: calc(env(safe-area-inset-top, 0px) + 28px) calc(env(safe-area-inset-bottom, 0px) + 24px); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.logo { text-align: center; }
.logo .eyebrow { color: var(--gold); letter-spacing: .3em; }
.logo h1 { margin: 6px 0 4px; font-family: var(--display); font-weight: 700; line-height: .95; font-size: clamp(40px, 8vw, 78px); color: var(--paper); text-shadow: 4px 4px 0 var(--plum), 8px 8px 0 var(--line); display: flex; flex-direction: column; text-wrap: balance; }
.logo h1 .l2 { color: var(--gold); }
.tagline { margin: 0; color: var(--on-ink); font-size: 16px; }
.continue { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; width: min(820px, 100%); padding: 10px 14px; background: var(--ink-2); border: var(--px) solid var(--gold); }
.continue .muted { color: #cbbfd8; }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: min(820px, 100%); }
.mode-card { background: var(--paper); color: var(--text); border: 4px solid var(--line); box-shadow: 0 8px 0 rgba(0,0,0,.5); display: flex; flex-direction: column; min-width: 0; }
.mode-stage { height: 168px; display: flex; align-items: flex-end; justify-content: center; gap: 20px; padding-bottom: 10px; background: linear-gradient(#7fb7b0 0 55%, #5d8c5d 55%); border-bottom: var(--px) solid var(--line); }
.mode-card.sk .mode-stage { background: linear-gradient(#f0c6a4 0 55%, #b97f52 55%); }
.mode-info { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mode-info h2 { margin: 0; font-family: var(--display); font-size: 26px; }
.mode-sub { margin: 0; color: var(--plum); font-weight: 600; }
.mode-info ul { margin: 4px 0 10px; padding-left: 18px; line-height: 1.5; font-size: 14px; flex: 1; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; color: var(--on-ink); }

/* CSS sprite animasyonları (oyun sprite sheet'lerinden) */
.sprite-anim { width: 96px; height: 144px; background-image: url(../assets/characters/hr_player.png); background-size: 384px 1008px; image-rendering: pixelated; animation: walk .7s steps(4) infinite; }
.sprite-anim.sk { background-image: url(../assets/characters/seeker.png); }
.sprite-anim.small { width: 64px; height: 96px; background-size: 256px 672px; animation-name: walkS; }
.sprite-anim.mgr { background-image: url(../assets/characters/manager.png); background-position-y: -480px; animation: talkS 1s steps(4) infinite; }
.sprite-anim.happy { background-position-y: -720px; animation: cheer .5s steps(2) infinite; }
.sprite-anim.sad { background-position-y: -720px; animation: sad 1s steps(2) infinite; }
.sprite-anim.big { flex: none; }
.cat-anim { width: 80px; height: 80px; background: url(../assets/characters/cat.png) 0 -160px / 320px 240px; image-rendering: pixelated; animation: catSit 1.4s steps(2) infinite; }
@keyframes walk { from { background-position-x: 0; } to { background-position-x: -384px; } }
@keyframes walkS { from { background-position-x: 0; } to { background-position-x: -256px; } }
@keyframes talkS { from { background-position-x: 0; } to { background-position-x: -256px; } }
@keyframes cheer { from { background-position-x: 0; } to { background-position-x: -192px; } }
@keyframes sad { from { background-position-x: -192px; } to { background-position-x: -384px; } }
@keyframes catSit { from { background-position-x: 0; } to { background-position-x: -160px; } }

/* ---------- dokunmatik */
.touch { position: absolute; inset: 0; z-index: 20; }
.joy-base { pointer-events: auto !important; position: absolute; left: max(18px, env(safe-area-inset-left, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); width: 124px; height: 124px; border-radius: 50%; background: rgba(23,17,31,.45); border: 3px solid rgba(255,247,232,.55); touch-action: none; display: grid; place-items: center; }
.joy-knob { width: 54px; height: 54px; border-radius: 50%; background: var(--gold); border: 3px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.act-btn { pointer-events: auto !important; position: absolute; right: max(22px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 40px); width: 78px; height: 78px; border-radius: 50%; background: var(--gold); border: 4px solid var(--line); box-shadow: 0 5px 0 var(--line); font-family: var(--display); font-size: 30px; color: var(--line); touch-action: none; }
.act-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--line); }

/* ---------- dar ekran */
@media (max-width: 720px) {
  .toasts { top: calc(env(safe-area-inset-top, 0px) + 112px); }
  .hud-left { max-width: calc(100vw - 150px); }
  .chip .chip-label, .chip .mini-bar { display: none; }
  .chip { padding: 3px 6px; }
  .chip b { font-size: 13px; }
  .title-chip { font-size: 13px; }
  .title-chip .xp { width: 80px; }
  .hud-right { width: 132px; }
  .day-card { padding: 4px 4px 4px 6px; }
  .day-main { font-size: 13px; } .day-main .ico { display: none; } .day-main .time { font-size: 16px; }
  .place { display: none; }
  .icon-btn { width: 32px; height: 32px; }
  .quest-box { padding: 5px 7px; }
  .qb-item:not(.main) { display: none; }
  .qb-item { font-size: 12px; }
  .dialog { gap: 8px; padding: 10px; }
  .dlg-portrait { width: 56px; height: 64px; } .dlg-portrait img { width: 56px; height: 63px; }
  .dlg-text { font-size: 15px; }
  .modes { grid-template-columns: 1fr; }
  .mode-stage { height: 132px; }
  .sprite-anim:not(.small) { width: 72px; height: 108px; background-size: 288px 756px; }
  .sprite-anim.happy, .sprite-anim.sad { background-position-y: -540px; }
  @keyframes walk { from { background-position-x: 0; } to { background-position-x: -288px; } }
  .os-nav { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 2px solid #8a8577; }
  .os-main { flex-direction: column; }
  .os-tab { white-space: nowrap; font-size: 17px; }
  .os-sub { display: none; }
  .modal.pc { padding: 8px 8px 16px; border-radius: 8px; }
  .modal.pc .modal-head { right: 14px; top: 12px; }
  .offers { grid-template-columns: 1fr; }
  .ending-stats { grid-template-columns: repeat(2, 1fr); }
  .iv-panel { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 230px); right: 12px; width: 220px; padding: 6px; }
  .skill { grid-template-columns: 1fr 70px 34px; }
  .skill .ico { display: none; }
  .skill .mini-bar { width: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
