/* Ömer & Müge OS: pastel, retro çizgili, sıcak bir masaüstü. */
:root {
  --ink: #2b2340;
  --muted: #6d6485;
  --paper: #fffaf3;
  --paper2: #fff0e4;
  --paper3: #ffe4ec;
  --line: #2b2340;
  --pink: #ff8fb3;
  --mint: #7fdcc0;
  --lav: #b9a6ff;
  --sun: #ffd166;
  --sky: #8fd3ff;
  --peach: #ffb38a;
  --glass: rgba(255, 250, 243, 0.62);
  --label: #fff;
  --hard: 4px 4px 0 var(--line);
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pix: "Pixelify Sans", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --hand: "Caveat", "Segoe Print", cursive;
  --bar: 32px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #f4effd;
  --muted: #b2a9cc;
  --paper: #241e38;
  --paper2: #2c2546;
  --paper3: #382c52;
  --line: #0c0916;
  --glass: rgba(28, 22, 46, 0.62);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: #1d1830;
  color: var(--ink);
  font: 14px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--pink); color: #2b2340; }

/* ---------- Açılış ---------- */
.boot {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: #fff3ea; color: #2b2340;
  transition: opacity .5s ease, visibility .5s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-logo { animation: bootbob 1.6s ease-in-out infinite; }
.boot-eye { animation: blink 3s infinite; transform-origin: center; transform-box: fill-box; }
.boot-name { font: 700 20px var(--pix); letter-spacing: .5px; }
.boot-bar { width: 180px; height: 12px; border: 2px solid #2b2340; border-radius: 99px; overflow: hidden; background: #fff; }
.boot-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, #ff8fb3 0 8px, #ffb3cb 8px 16px); animation: load 1.3s cubic-bezier(.6,.1,.3,1) forwards; }
@keyframes load { to { width: 100%; } }
@keyframes bootbob { 50% { transform: translateY(-6px) rotate(-2deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

/* ---------- Duvar kağıdı ---------- */
.os { position: fixed; inset: 0; overflow: hidden; }
.wall { position: absolute; inset: 0; z-index: 0; }
.wall svg { width: 100%; height: 100%; display: block; }
.wall .layer { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.balloon { cursor: pointer; transform-box: fill-box; transform-origin: center; }
.balloon-float { animation: float var(--d, 9s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
.balloon.popped { animation: popfly 1.1s ease-in forwards; pointer-events: none; }
@keyframes float { 50% { transform: translateY(-18px) rotate(1.5deg); } }
@keyframes popfly { 0% { transform: scale(1); opacity: 1; } 15% { transform: scale(1.25); opacity: 1; } 30% { transform: scale(.2); opacity: 0; } 100% { transform: scale(0); opacity: 0; } }
.twinkle { animation: twinkle var(--d, 3s) ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .2; } }
.cloud { animation: drift var(--d, 80s) linear infinite; }
@keyframes drift { from { transform: translateX(-30%); } to { transform: translateX(130%); } }

/* ---------- Menü çubuğu ---------- */
.menubar {
  position: absolute; top: 0; left: 0; right: 0; height: var(--bar); z-index: 50;
  display: flex; align-items: center; gap: 2px; padding: 0 10px;
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 2px solid var(--line);
  font-size: 13px; user-select: none;
}
.mb-btn { background: none; border: 0; padding: 4px 10px; border-radius: 7px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mb-btn:hover, .mb-btn.open { background: rgba(255, 143, 179, .45); }
.mb-logo svg { width: 20px; height: 20px; }
.mb-app { font-weight: 800; }
.mb-spacer { flex: 1; }
.mb-right { display: flex; align-items: center; gap: 2px; }
.mb-clock { font-variant-numeric: tabular-nums; font-weight: 600; }
.mb-lang { font-weight: 800; border: 2px solid var(--line); padding: 1px 7px; border-radius: 6px; margin: 0 4px; font-size: 11px; }

/* ---------- Masaüstü ve ikonlar ---------- */
.desktop { position: absolute; inset: var(--bar) 0 0 0; z-index: 2; pointer-events: none; }
.icons { position: absolute; inset: 0; }
.icon, .sticky, .cat { pointer-events: auto; }
.icon {
  position: absolute; width: 96px; padding: 6px 4px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 2px solid transparent; touch-action: none; user-select: none;
}
.icon .art { width: 58px; height: 58px; filter: drop-shadow(2px 3px 0 rgba(43, 35, 64, .35)); transition: transform .18s cubic-bezier(.3,1.6,.5,1); }
.icon:hover .art { transform: translateY(-3px) scale(1.06) rotate(-2deg); }
.icon span {
  font-size: 12.5px; font-weight: 700; line-height: 1.2; text-align: center; color: var(--label);
  text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 0 8px rgba(0,0,0,.35); padding: 2px 6px; border-radius: 6px;
}
.icon.sel { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .55); }
.icon.sel span { background: var(--pink); color: #2b2340; text-shadow: none; }
.icon.dragging { opacity: .85; z-index: 5; }

.sticky {
  position: absolute; width: 230px; padding: 14px 16px 16px; z-index: 1;
  background: #fff3a8; color: #3b3020; border: 2px solid #2b2340; border-radius: 4px 4px 18px 4px;
  box-shadow: 4px 4px 0 #2b2340; transform: rotate(-3deg);
  font: 600 22px/1.15 var(--hand); touch-action: none; user-select: none; cursor: grab;
}
.sticky::before { content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 20px; margin-left: -35px; background: rgba(255, 143, 179, .7); transform: rotate(2deg); }
.sticky b { color: #d1477a; }
.sticky small { display: block; margin-top: 8px; font-size: 18px; opacity: .75; }

/* ---------- Kedi ---------- */
.cat { position: absolute; bottom: 96px; left: 0; width: 70px; height: 52px; z-index: 3; cursor: pointer; will-change: transform; }
.cat svg { width: 100%; height: 100%; overflow: visible; }
.cat.walk .leg { animation: legs .32s steps(2) infinite; }
.cat.walk .leg.b { animation-delay: .16s; }
.cat .tail { transform-origin: 8px 30px; animation: tail 1.6s ease-in-out infinite; }
.cat.left svg { transform: scaleX(-1); }
.cat .heart { position: absolute; left: 30px; top: -10px; font-size: 18px; animation: heart 1s ease-out forwards; pointer-events: none; }
@keyframes legs { 50% { transform: translateY(-2px); } }
@keyframes tail { 50% { transform: rotate(18deg); } }
@keyframes heart { to { transform: translateY(-40px) scale(1.4); opacity: 0; } }

/* ---------- Dock ---------- */
.dock {
  position: absolute; left: 50%; bottom: 12px; z-index: 40; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px; height: 74px;
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 2px solid var(--line); border-radius: 22px; box-shadow: var(--hard);
}
.dock-item { position: relative; width: 54px; height: 54px; flex: none; background: none; border: 0; padding: 0; transition: width .14s ease, height .14s ease; }
.dock-item .art { width: 100%; height: 100%; filter: drop-shadow(1px 2px 0 rgba(43, 35, 64, .35)); }
.dock-item.running::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ink); }
.dock-item .tip {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--paper); border: 2px solid var(--line); border-radius: 8px; padding: 3px 9px;
  font-size: 12px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: .12s;
}
.dock-item:hover .tip { opacity: 1; transform: translateX(-50%); }
.dock-item.bounce { animation: bounce .45s ease 2; }
@keyframes bounce { 40% { transform: translateY(-16px); } }
.dock-sep { width: 2px; align-self: stretch; margin: 6px 4px; background: var(--line); opacity: .35; border-radius: 2px; }

/* ---------- Pencereler ---------- */
.windows { position: absolute; inset: 0; pointer-events: none; }
.win {
  position: absolute; pointer-events: auto; display: flex; flex-direction: column;
  min-width: 300px; min-height: 200px;
  background: var(--paper); border: 2px solid var(--line); border-radius: 14px;
  box-shadow: 6px 6px 0 var(--line), 0 24px 60px rgba(20, 10, 40, .28);
  overflow: hidden;
}
.win:not(.focused) { box-shadow: 3px 3px 0 var(--line), 0 10px 30px rgba(20, 10, 40, .18); }
.win.max { border-radius: 0; box-shadow: none; }
.titlebar {
  height: 40px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: var(--tb, var(--pink)); color: #2b2340; border-bottom: 2px solid var(--line);
  cursor: grab; user-select: none; touch-action: none;
}
.win:not(.focused) .titlebar { filter: saturate(.35) brightness(1.05); }
.titlebar:active { cursor: grabbing; }
.lights { display: flex; gap: 7px; }
.lights button { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #2b2340; padding: 0; display: grid; place-items: center; font-size: 9px; font-weight: 900; line-height: 1; color: transparent; }
.lights .x { background: #ff6b6b; }
.lights .m { background: #ffd166; }
.lights .f { background: #7fdcc0; }
.titlebar:hover .lights button { color: #2b2340; }
.titlebar .ttl { flex: 1; text-align: center; font: 600 15px var(--pix); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 50px; }
.titlebar .back { display: none; }
.win-body { flex: 1; overflow: auto; position: relative; container-type: inline-size; }
.grip { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 50%, var(--line) 50% 58%, transparent 58% 70%, var(--line) 70% 78%, transparent 78%); opacity: .5; }
.win.max .grip { display: none; }

/* Ortak parçalar */
.pad { padding: 22px; }
.h1 { font: 700 26px/1.15 var(--pix); margin: 0 0 6px; }
.h2 { font: 700 18px var(--pix); margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; padding: 0; list-style: none; }
.chips li { border: 2px solid var(--line); border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 700; background: var(--paper2); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px;
  border: 2px solid var(--line); background: var(--pink); color: #2b2340; font-weight: 800; text-decoration: none;
  box-shadow: 3px 3px 0 var(--line); transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--line); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.btn.alt { background: var(--paper); color: var(--ink); }
.btn.mint { background: var(--mint); }
.btn.sun { background: var(--sun); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Projeler (Finder) */
.finder { display: grid; grid-template-columns: 180px 1fr; height: 100%; }
.side { background: var(--paper2); border-right: 2px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.side small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 4px 8px 6px; }
.side button { text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 8px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.side button:hover { background: var(--paper3); }
.side button.on { background: var(--pink); color: #2b2340; }
.tiles { padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; align-content: start; overflow: auto; }
.tile { border: 0; background: none; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.tile .thumb { aspect-ratio: 16 / 10; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 3px 3px 0 var(--line); background: var(--c); transition: transform .15s, box-shadow .15s; }
.tile .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tile:hover .thumb, .tile.sel .thumb { transform: translate(-2px, -3px) rotate(-1deg); box-shadow: 5px 6px 0 var(--line); }
.tile b { font-size: 14px; }
.tile i { font-style: normal; font-size: 12px; color: var(--muted); margin-top: -6px; }
.finder-foot { grid-column: 1 / -1; }
@container (max-width: 560px) {
  .finder { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 2px solid var(--line); padding: 8px; }
  .side small { display: none; }
  .side button { white-space: nowrap; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; padding: 14px; }
}

/* Tarayıcı */
.browser { display: flex; flex-direction: column; height: 100%; }
.addr { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--paper2); border-bottom: 2px solid var(--line); flex: none; }
.addr .url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; background: var(--paper); border: 2px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr .url em { font-style: normal; color: var(--muted); }
.addr .btn { padding: 4px 12px; font-size: 12.5px; box-shadow: 2px 2px 0 var(--line); }
.page { flex: 1; overflow: auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; padding: 22px; align-items: start; }
.device { border: 2px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 4px 4px 0 var(--line); background: var(--c); position: sticky; top: 0; }
.device .dbar { height: 22px; background: var(--paper2); border-bottom: 2px solid var(--line); display: flex; gap: 5px; align-items: center; padding: 0 8px; }
.device .dbar i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line); }
.device img { width: 100%; }
.info .tag { display: inline-block; font-size: 12px; font-weight: 800; background: var(--c); color: #2b2340; border: 2px solid var(--line); border-radius: 99px; padding: 1px 10px; margin-bottom: 10px; }
.info p { margin: 0 0 12px; }
@container (max-width: 640px) { .page { grid-template-columns: 1fr; padding: 16px; } .device { position: static; } }

/* Vaka çalışması: Outreach Engine */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 14px 0; }
.stat { border: 2px solid var(--line); border-radius: 12px; padding: 12px; background: var(--paper2); box-shadow: 3px 3px 0 var(--line); }
.stat b { display: block; font: 700 28px var(--pix); }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; }
.livelog { background: #17122a; color: #cfc6ff; font: 12px/1.7 var(--mono); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; height: 210px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.livelog div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: logIn .3s ease; }
.livelog .ok { color: #7fdcc0; } .livelog .hot { color: #ffd166; } .livelog .dim { color: #8a80ad; }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } }

/* Fotoğraflar */
.photos { padding: 16px; columns: 3 180px; column-gap: 12px; }
.photos button { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper2); box-shadow: 3px 3px 0 var(--line); break-inside: avoid; transition: transform .15s; }
.photos button:hover { transform: rotate(-1deg) scale(1.02); }
.lightbox { position: absolute; inset: 0; background: rgba(20, 14, 34, .92); display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 16px; z-index: 2; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 8px; min-height: 0; }
.lightbox .cap { color: #fff; font-weight: 700; display: flex; gap: 12px; align-items: center; padding-top: 10px; }
.lightbox .cap button { background: #fff; color: #2b2340; border: 2px solid #2b2340; border-radius: 8px; padding: 2px 12px; font-weight: 900; }

/* Video */
.player { background: #0d0a17; height: 100%; display: grid; place-items: center; }
.player video { width: 100%; height: 100%; object-fit: contain; }

/* Biniş kartı (Erasmus) */
.erasmus { padding: 22px; }
.pass { display: grid; grid-template-columns: 1fr 160px; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 5px 5px 0 var(--line); background: var(--paper); }
.pass-main { padding: 18px 20px; }
.pass-top { display: flex; justify-content: space-between; align-items: center; font: 700 13px var(--pix); color: var(--muted); letter-spacing: .06em; }
.route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 14px 0; }
.route b { font: 700 46px/1 var(--pix); display: block; }
.route small { font-size: 12px; color: var(--muted); font-weight: 700; }
.route .plane { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.route .plane span { position: absolute; top: -16px; font-size: 24px; animation: fly 4s ease-in-out infinite; }
@keyframes fly { 0% { left: 0; } 100% { left: calc(100% - 26px); } }
.pass-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; }
.pass-grid small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pass-grid b { font-size: 14px; }
.stub { border-left: 2px dashed var(--line); background: var(--sun); color: #2b2340; padding: 16px 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; position: relative; }
.stub::before, .stub::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); }
.stub::before { top: -12px; } .stub::after { bottom: -12px; }
.barcode { height: 54px; background: repeating-linear-gradient(90deg, #2b2340 0 2px, transparent 2px 4px, #2b2340 4px 7px, transparent 7px 9px, #2b2340 9px 10px, transparent 10px 13px); border-radius: 3px; }
.stub b { font: 700 18px var(--pix); }
@container (max-width: 560px) {
  .pass { grid-template-columns: 1fr; }
  .stub { border-left: 0; border-top: 2px dashed var(--line); flex-direction: row; align-items: center; }
  .stub::before, .stub::after { display: none; }
  .barcode { width: 120px; height: 40px; }
  .route b { font-size: 36px; }
  .pass-grid { grid-template-columns: repeat(2, 1fr); }
}
.erasmus .wants { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.want { border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--paper2); }
.want b { display: block; margin-bottom: 2px; }
.want span { font-size: 13px; color: var(--muted); }

/* Hakkında (TextEdit) */
.doc { padding: 26px 30px; max-width: 640px; }
.doc-head { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.doc-head img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--line); flex: none; }
.doc p { margin: 0 0 12px; }
.facts { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.facts li::before { content: "✦ "; color: var(--pink); }

/* Mail */
.mail { display: flex; flex-direction: column; height: 100%; }
.mail .fld { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 2px solid color-mix(in srgb, var(--line) 18%, transparent); }
.mail .fld label { width: 64px; color: var(--muted); font-weight: 700; font-size: 13px; }
.mail input, .mail textarea { flex: 1; border: 0; background: none; font: inherit; color: inherit; outline: none; }
.mail textarea { padding: 14px 16px; resize: none; min-height: 140px; }
.mail-foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 16px; border-top: 2px solid var(--line); background: var(--paper2); align-items: center; }
.mail-foot .grow { flex: 1; }

/* Terminal */
.term { background: #17122a; color: #e8e2ff; font: 13px/1.6 var(--mono); padding: 14px 16px; min-height: 100%; cursor: text; }
.term .ln { white-space: pre-wrap; word-break: break-word; }
.term .p { color: #ff8fb3; } .term .g { color: #7fdcc0; } .term .y { color: #ffd166; } .term .d { color: #8a80ad; } .term .l { color: #b9a6ff; }
.term .inrow { display: flex; gap: 8px; }
.term input { flex: 1; background: none; border: 0; outline: none; color: inherit; font: inherit; caret-color: #ff8fb3; }

/* Paint */
.paint { display: flex; flex-direction: column; height: 100%; background: var(--paper2); }
.tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; border-bottom: 2px solid var(--line); }
.sw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); padding: 0; }
.sw.on { outline: 3px solid var(--ink); outline-offset: 2px; }
.tools .btn { padding: 3px 10px; font-size: 12px; box-shadow: 2px 2px 0 var(--line); }
.paint canvas { flex: 1; min-height: 0; width: 100%; background: #fff; cursor: crosshair; touch-action: none; }

/* Oyun */
.game { position: relative; height: 100%; background: linear-gradient(#ffd9c2, #ffb3c7 60%, #c9a7ff); overflow: hidden; touch-action: manipulation; }
.game canvas { width: 100%; height: 100%; display: block; }
.game .hud { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; font: 700 16px var(--pix); color: #2b2340; pointer-events: none; }
.game .over { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; background: rgba(255, 245, 238, .78); color: #2b2340; }
.game .over b { font: 700 28px var(--pix); }

/* Çöp kutusu */
.trash { padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
.trash button { background: none; border: 2px solid transparent; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-align: center; }
.trash button:hover { border-color: var(--line); background: var(--paper2); }
.trash .art { width: 46px; height: 46px; }
.trash-note { grid-column: 1 / -1; color: var(--muted); font-size: 13px; margin: 0; }

/* Hızlı bakış */
.quick { padding: 26px 30px; max-width: 760px; }
.quick h2 { font: 700 18px var(--pix); margin: 22px 0 8px; }
.quick .plist { display: grid; gap: 10px; }
.quick .pitem { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; border: 2px solid var(--line); border-radius: 12px; padding: 8px; background: var(--paper2); }
.quick .pitem img { width: 96px; height: 60px; object-fit: cover; object-position: top; border-radius: 6px; border: 2px solid var(--line); }
.quick .pitem b { display: block; }
.quick .pitem span { font-size: 13px; color: var(--muted); }

/* Diyalog */
.dialog { padding: 22px; display: flex; gap: 16px; align-items: flex-start; }
.dialog .big { font-size: 40px; line-height: 1; }
.dialog p { margin: 0 0 14px; }

/* ---------- Bağlam menüsü, açılır menü ---------- */
.ctx {
  position: fixed; z-index: 90; min-width: 220px; padding: 6px;
  background: var(--paper); border: 2px solid var(--line); border-radius: 12px; box-shadow: var(--hard);
  font-size: 13.5px; animation: pop .12s ease;
}
.ctx button { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; background: none; padding: 7px 10px; border-radius: 7px; text-align: left; }
.ctx button:hover { background: var(--pink); color: #2b2340; }
.ctx button kbd { margin-left: auto; font: 11px var(--mono); opacity: .6; }
.ctx hr { border: 0; border-top: 2px solid var(--line); opacity: .15; margin: 5px 4px; }
.ctx .lbl { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 2px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* ---------- Arama (Spotlight) ---------- */
.spot { position: fixed; inset: 0; z-index: 95; background: rgba(20, 14, 34, .25); display: flex; justify-content: center; align-items: flex-start; padding-top: 16vh; }
.spot-box { width: min(620px, 92vw); background: var(--paper); border: 2px solid var(--line); border-radius: 16px; box-shadow: 6px 6px 0 var(--line), 0 30px 80px rgba(0,0,0,.35); overflow: hidden; animation: pop .14s ease; }
.spot-box input { width: 100%; border: 0; outline: none; background: none; padding: 16px 20px; font: 600 20px var(--ui); color: var(--ink); }
.spot-res { border-top: 2px solid var(--line); max-height: 50vh; overflow: auto; padding: 6px; }
.spot-res:empty { display: none; }
.spot-res button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 8px 12px; border-radius: 10px; text-align: left; }
.spot-res button .art { width: 30px; height: 30px; }
.spot-res button small { color: var(--muted); margin-left: auto; font-size: 12px; }
.spot-res button.on { background: var(--pink); color: #2b2340; }
.spot-res button.on small { color: #2b2340; }

/* ---------- Bildirimler ---------- */
.toasts { position: fixed; top: calc(var(--bar) + 12px); right: 12px; z-index: 80; display: grid; gap: 10px; width: min(340px, calc(100vw - 24px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%;
  background: var(--paper); border: 2px solid var(--line); border-radius: 14px; box-shadow: var(--hard); padding: 12px 14px;
  animation: toastIn .45s cubic-bezier(.2,1.4,.4,1);
}
.toast.out { animation: toastOut .3s ease forwards; }
.toast .art { width: 36px; height: 36px; flex: none; }
.toast b { display: block; font-size: 13.5px; }
.toast span { font-size: 13px; color: var(--muted); }
@keyframes toastIn { from { transform: translateX(120%); } }
@keyframes toastOut { to { transform: translateX(120%); opacity: 0; } }

/* ---------- Telefon ana ekranı ---------- */
.phone-home { display: none; }
@media (max-width: 720px) {
  :root { --bar: 0px; }
  .menubar, .dock, .icons, .sticky { display: none; }
  .cat { bottom: 112px; }
  .phone-home {
    display: flex; flex-direction: column; position: absolute; inset: 0; z-index: 3;
    padding: max(14px, env(safe-area-inset-top)) 18px max(14px, env(safe-area-inset-bottom));
    color: #fff;
  }
  .ph-status { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.4); padding: 0 6px; }
  .ph-status .r { display: flex; gap: 8px; align-items: center; }
  .ph-status .r button { background: rgba(255,255,255,.25); border: 1.5px solid rgba(255,255,255,.6); border-radius: 8px; padding: 1px 8px; font-weight: 800; font-size: 12px; color: #fff; }
  .ph-widget {
    margin: 18px 0 22px; padding: 16px 18px; border-radius: 22px; color: var(--ink);
    background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 2px solid var(--line); box-shadow: var(--hard);
  }
  .ph-widget .t { font: 700 28px/1.1 var(--pix); }
  .ph-widget .s { font-weight: 700; margin-top: 4px; }
  .ph-widget .s2 { font-size: 13px; color: var(--muted); }
  .ph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 8px; }
  .ph-app { background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #fff; font-size: 11.5px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
  .ph-app .art { width: 58px; height: 58px; filter: drop-shadow(1px 2px 0 rgba(43,35,64,.4)); }
  .ph-app:active .art { transform: scale(.9); }
  .ph-dock { margin-top: auto; display: flex; justify-content: space-around; padding: 10px; border-radius: 26px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 2px solid var(--line); }
  .ph-dock .ph-app span { display: none; }

  .desktop { z-index: 10; }
  .windows { z-index: 20; }
  .win { position: fixed; inset: 0 !important; width: auto !important; height: auto !important; border: 0; border-radius: 0; box-shadow: none; min-width: 0; }
  .titlebar { height: 52px; padding-top: env(safe-area-inset-top); cursor: default; }
  .titlebar .lights { display: none; }
  .titlebar .back { display: block; border: 2px solid #2b2340; background: #fff; border-radius: 10px; padding: 3px 12px; font-weight: 800; color: #2b2340; }
  .titlebar .ttl { margin-right: 60px; font-size: 16px; }
  .grip { display: none; }
  .toasts { top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
