/* LungType home: the desktop scene under the first screen (REVIZE-2 #30, 30 Ekim gece; 2. tur: the desktop is only here).
   Each scene is a whole 1440×900 screen drawn in fixed pixels and scaled down to its box by js/masaustu.js (--olcek), like a
   screenshot of a real Mac shown smaller: thin menu bar, small Dock, the wallpaper at the edges, windows at about half the screen.
   No camera move, no crop, nothing reflows; phones get the same screen, smaller.
   Our own design (Hukuk 49 §4): generic window/menu bar/Dock patterns only; no logo, no product names, no brand colour, no SF font,
   no Apple wallpaper, one-colour window buttons. Wallpaper: Berke's pick "çayır ve bulut" (Unsplash License; 29-hero-deneme/DUVAR-LISANS.md).
   The bubble and words styles (.ms-k, .ms-cizik) are shared with the "what it does" box B1 (css/sahne.css).
   The markup is the finished frame; js/masaustu.js resets it and loops while on screen. Reduced motion or no JavaScript: it stands still.
   Loaded on the home page only (gen.py). */

/* ---------- boxes on the page (same grid as the header: --en minus the gutters) ---------- */
.ms { padding: 0 var(--kenar) 8px; }
.ms > .ms-masa, .ms-not { max-width: calc(var(--en) - 2 * var(--kenar)); margin-left: auto; margin-right: auto; }
.ms-masa { position: relative; width: 100%; aspect-ratio: 1440 / 900; overflow: hidden; container-type: inline-size; border-radius: 18px; background: #8FB4D9;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); --olcek: .8; }
@media (max-width: 1199px) { .ms-masa { --olcek: .6; } }
@media (max-width: 899px) { .ms-masa { --olcek: .45; border-radius: 12px; } }
@media (max-width: 599px) { .ms-masa { --olcek: .24; border-radius: 10px; } }
.ms-not { margin-top: 14px; text-align: center; font-size: 13px; line-height: 1.45; color: var(--ikincil); }
.ms-ornek { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 1, .72);
  color: #FFFFFF; font-size: 12px; font-weight: 700; line-height: 1.3; }
@media (max-width: 599px) { .ms-ornek { right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 5px; font-size: 10px; } }

/* ---------- the screen (1440×900 px) ---------- */
.ms-dunya { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform: scale(var(--olcek)); transform-origin: 0 0;
  overflow: hidden; font-family: var(--f-funnel); color: #1C1F24; text-align: left; user-select: none; -webkit-user-select: none; }
.ms-duvar { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ms-menu { position: absolute; left: 0; right: 0; top: 0; height: 26px; z-index: 30; display: flex; align-items: center; gap: 20px; padding: 0 16px;
  background: rgba(255, 255, 255, .5); font-size: 13px; font-weight: 500; color: rgba(0, 0, 0, .85); white-space: nowrap; }
.ms-menu b { font-weight: 700; } .ms-bosluk { flex: 1; }
.ms-lt { display: inline-grid; grid-template-columns: 6px 6px; gap: 1.5px; }
.ms-lt i { width: 6px; height: 6px; border-radius: 2px; background: rgba(0, 0, 0, .8); } .ms-lt i:nth-child(2) { border-radius: 50%; }
.ms-dock { position: absolute; left: 50%; bottom: 8px; z-index: 4; transform: translateX(-50%); display: flex; gap: 8px; padding: 6px 8px; border-radius: 18px;
  background: rgba(255, 255, 255, .36); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 8px 24px rgba(0, 0, 0, .12); }
.ms-ds { position: relative; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .66)); }
.ms-ds svg { width: 24px; height: 24px; fill: none; stroke: rgba(29, 29, 31, .75); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ms-ds.ms-acik::after { content: ""; position: absolute; bottom: -5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(0, 0, 0, .55); }

/* windows: our own chrome; one-colour buttons (the active window's are dark) */
.ms-pen { position: absolute; z-index: 2; display: flex; flex-direction: column; background: #FBFAF8; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 14px 36px rgba(8, 18, 40, .22); }
.ms-pen.ms-aktif { z-index: 3; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14), 0 28px 70px rgba(8, 18, 40, .34), 0 6px 16px rgba(8, 18, 40, .12); }
.ms-ubar { flex: none; height: 38px; display: flex; align-items: center; padding: 0 14px; background: #F2F0EC; border-bottom: 1px solid #E6E3DD; }
.ms-nok { display: flex; gap: 8px; } .ms-nok i { width: 12px; height: 12px; border-radius: 50%; background: #CFCAC2; }
.ms-aktif .ms-nok i { background: #6B717A; }
.ms-pbas { flex: 1; margin-right: 52px; text-align: center; font-size: 13px; font-weight: 700; color: #A29E97; }
.ms-aktif .ms-pbas { color: #3E434C; }
.ms-av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #8C929A; color: #FFFFFF; font-weight: 700; font-size: 12px; }
.ms-imlec { display: none; width: 2px; height: 1.2em; margin-left: 1px; vertical-align: -.22em; background: #1C1F24; }
.ms-aktif .ms-imlec { display: inline-block; }
.hareket .ms-aktif .ms-imlec { animation: ms-yan 1.06s steps(1) infinite; }
@keyframes ms-yan { 50% { visibility: hidden; } }
.ms-hedef { white-space: pre-wrap; }

/* email: toolbar, fields, body, signature */
.ms-arac { flex: none; height: 46px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid #ECE9E4; }
.ms-arac-d { width: 34px; height: 30px; border-radius: 7px; display: grid; place-items: center; }
.ms-arac-d:nth-child(2) { margin-left: 10px; }
.ms-gonder { background: #2B2F36; }
.ms-ik { width: 19px; height: 19px; fill: none; stroke: #5D626B; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ms-gonder .ms-ik { stroke: #FFFFFF; }
.ms-alan { flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-bottom: 1px solid #EEEBE6; font-size: 14px; color: #1C1F24; }
.ms-alan-e { width: 72px; color: #8D8A85; }
.ms-alici { padding: 3px 10px; border-radius: 12px; background: #ECEAE6; }
.ms-govde { flex: 1; padding: 20px 22px; font-size: 15.5px; line-height: 1.55; }
.ms-imza { margin-top: 22px; font-size: 14px; line-height: 1.5; color: #8D8A85; }

/* chat: people on the left, bubbles, the message box */
.ms-s-ic { flex: 1; display: flex; min-height: 0; }
.ms-s-yan { flex: none; width: 214px; padding: 10px 8px; background: #F2F0EC; border-right: 1px solid #E6E3DD; }
.ms-ara { margin: 0 4px 10px; padding: 6px 10px; border-radius: 8px; background: #E6E3DE; font-size: 13px; color: #8D8A85; }
.ms-s-yan ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.ms-s-yan li { display: flex; align-items: center; gap: 9px; padding: 8px 8px; border-radius: 9px; }
.ms-s-yan li.ms-sec { background: #E3E0DA; }
.ms-ki { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ms-ki b { font-size: 13px; } .ms-ki span { font-size: 12px; color: #8D8A85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-saat { align-self: flex-start; font-size: 11px; color: #A29E97; }
.ms-s-ana { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ms-s-bas { flex: none; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border-bottom: 1px solid #EEEBE6; font-size: 15px; }
.ms-akis { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 16px 18px; background: #F6F5F2; }
.ms-b { align-self: flex-end; max-width: 78%; padding: 9px 13px; border-radius: 16px 16px 4px 16px; background: #2B2F36; color: #FFFFFF; font-size: 14px; line-height: 1.4; }
.ms-b.ms-b-gelen { align-self: flex-start; border-radius: 16px 16px 16px 4px; background: #FFFFFF; color: #1C1F24; box-shadow: 0 0 0 1px #E3E0DA; }
.ms-yaz { flex: none; display: flex; align-items: flex-end; gap: 10px; padding: 12px 16px; border-top: 1px solid #EEEBE6; }
.ms-kutu { position: relative; flex: 1; min-height: 40px; padding: 9px 14px; border-radius: 20px; background: #FFFFFF; box-shadow: 0 0 0 1px #D9D5CE;
  font-size: 14.5px; line-height: 1.45; }
.ms-aktif .ms-kutu { box-shadow: 0 0 0 1.5px #3E434C; }
.ms-yer { color: #9A9AA0; }
.ms-kutu.ms-dolu .ms-yer { display: none; }
.ms-aktif .ms-kutu:not(.ms-dolu) .ms-imlec { position: absolute; left: 14px; top: 11px; }
.ms-gon { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #CFCBC4; display: grid; place-items: center; }
.ms-kutu.ms-dolu + .ms-gon { background: #2B2F36; }
.ms-gon::after { content: ""; width: 9px; height: 9px; margin-top: 4px; border-top: 2.4px solid #FFFFFF; border-left: 2.4px solid #FFFFFF; transform: rotate(45deg); }

/* notebook: the list on the left, a titled note */
.ms-n-ic { flex: 1; display: flex; min-height: 0; }
.ms-n-yan { flex: none; width: 210px; padding: 12px 8px; background: #F2F0EC; border-right: 1px solid #E6E3DD; }
.ms-n-yan ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.ms-n-yan li { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 9px; }
.ms-n-yan li.ms-sec { background: #E3E0DA; }
.ms-n-yan b { font-size: 13.5px; } .ms-n-yan span { font-size: 12px; color: #8D8A85; }
.ms-n-ana { flex: 1; min-width: 0; padding: 14px 30px 20px; }
.ms-n-tarih { text-align: center; font-size: 12px; color: #A29E97; }
.ms-n-bas { margin-top: 14px; font-family: var(--f-funnel); font-size: 24px; font-weight: 700; color: #1C1F24; }
.ms-n-eski { margin: 12px 0 0 20px; font-size: 15px; line-height: 1.6; }
.ms-n-yazi { margin-top: 10px; font-size: 15px; line-height: 1.6; }

/* LungType's pill: rest line, listening, writing, the one-time card (after app/Sources/LungType/Cubuk, not a copy) */
.ms-hap { position: absolute; left: 50%; bottom: 84px; z-index: 8; width: 40px; height: 6px; transform: translateX(-50%); border-radius: 16px; overflow: hidden;
  background: rgba(18, 18, 20, .92); color: #F2F0EC; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 8px 22px rgba(0, 0, 0, .3); }
.ms-h { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ms-dalga { display: flex; align-items: center; gap: 2.4px; height: 16px; }
.ms-dalga i { display: block; width: 2.6px; height: 16px; border-radius: 2px; background: rgba(242, 240, 236, .92); transform: scaleY(.35); }
.hareket .ms-dalga i { animation: ms-dalga .8s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.17s); }
.hareket .ms-dalga i:nth-child(2n) { animation-duration: .62s; }
@keyframes ms-dalga { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.ms-donen { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(242, 240, 236, .25); border-top-color: #F2F0EC; }
.hareket .ms-donen { animation: ms-don .9s linear infinite; }
@keyframes ms-don { to { transform: rotate(360deg); } }
.ms-h-kart { align-items: flex-start; justify-content: flex-start; gap: 10px; width: 380px; padding: 12px 16px; white-space: normal; }
.ms-kart-n { flex: none; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: #A6A6A6; }
.ms-h-kart b { display: block; font-size: 14px; line-height: 19px; }
.ms-h-kart b + span { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; font-weight: 400; color: rgba(242, 240, 236, .72); }

/* what was said: grey words flowing above the pill; the dropped ones get struck, then fall */
.ms-balon { position: absolute; left: 50%; bottom: 128px; z-index: 7; width: 860px; margin-left: -430px; opacity: 0; }
.ms-b-kutu { padding: 16px 26px 20px; border-radius: 22px; background: rgba(16, 16, 18, .93); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 14px 40px rgba(0, 0, 0, .35); }
.ms-b-ust { margin-bottom: 6px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .5); }
.ms-b-metin { font-size: 30px; line-height: 1.36; font-weight: 500; color: #B9B9BE; }
.ms-k { position: relative; display: inline-block; white-space: pre; vertical-align: top; }
.ms-k[data-at] { overflow: hidden; }
.ms-cizik { position: absolute; left: -2px; right: .26em; top: 54%; height: 3px; border-radius: 2px; background: #FFFFFF; transform: scaleX(0); transform-origin: 0 50%; }

/* phones: the screen is ~1/4 size, so the said words would be ~7 px. The bubble becomes a layer of its own, sized to the box and not
   to the screen (counter-scaled by 1/--olcek): 12–13.5 px text whatever the scale, centred, never wider than the box. */
@media (max-width: 599px) {
  .ms-balon { width: 0; margin-left: 0; bottom: 120px; }
  .ms-b-kutu { position: absolute; left: 0; bottom: 0; width: calc(100cqw - 20px); padding: 7px 11px 9px; border-radius: 12px;
    transform-origin: 0 100%; transform: scale(calc(1 / var(--olcek))) translateX(-50%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 18px rgba(0, 0, 0, .35); }
  .ms-b-ust { margin-bottom: 2px; font-size: 12px; }
  .ms-b-metin { font-size: 13.5px; line-height: 1.35; }
  .ms-cizik { height: 1.5px; }
}

/* the shortcut key (no "fn" on it: the shortcut can be changed) */
.ms-tus { position: absolute; left: 150px; top: 650px; z-index: 9; width: 104px; height: 104px; opacity: 0; }
.ms-tus-kapak { position: absolute; inset: 0; border-radius: 20px; background: linear-gradient(180deg, #FAFAFB, #DCDCE1);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), inset 0 -3px 0 rgba(0, 0, 0, .12), 0 8px 0 #8E8E94, 0 18px 34px rgba(0, 0, 0, .28); }
.ms-tus-ad { position: absolute; left: 14px; bottom: 12px; font-size: 18px; font-weight: 600; color: #3A3A3E; }

/* ---------- where the windows sit, per scene (each about half the screen; nothing touches the edges) ---------- */
.ms-d-hero .ms-defter { left: 56px; top: 80px; width: 520px; height: 440px; }
.ms-d-hero .ms-sohbet { left: 870px; top: 100px; width: 520px; height: 500px; }
.ms-d-hero .ms-posta { left: 360px; top: 150px; width: 760px; height: 560px; }
/* ---------- the first screen above the scene: heading, sentence and button in the middle; the scene's top edge shows under them ---------- */
/* 1.0.2 P1-4: the first screen is as tall as its content (it was 84vh with the content centred) and the scene is capped by the
   screen height, so at least half of it is in the first screen (1280×800 52 %, 1440×900 56 %, 1366×768 51 %). The heading sits
   64 px under the header. Phones (<720 px) get the before/after card instead of the scaled desktop. */
.sahne.s-ilk { min-height: 0; padding-top: calc(var(--ust-h) + 64px); padding-bottom: 32px; }
.s-ilk .s-hero .s-eylem { margin-top: 28px; }
.ms > .ms-masa.ms-masa-hero { max-width: min(calc(var(--en) - 2 * var(--kenar)), max(720px, calc(3.2 * (100svh - 470px)))); }
/* og-4 as the still frame (no JS or reduced motion): the said line stays with the dropped part struck and faded, next to the clean text */
.ms-d-hero .ms-balon { opacity: 1; }
.ms-d-hero .ms-k[data-at] { opacity: .45; }
.ms-d-hero .ms-k[data-at] .ms-cizik { transform: scaleX(1); }
.ms-mobil { display: none; position: relative; }
/* Fable F9: the note under the scene and the page's pause/play button on one line */
.ms-alt { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.ms-alt .ms-not { margin: 0; }
@media (max-width: 719px) {
  .sahne.s-ilk { padding-top: calc(var(--ust-h) + 40px); padding-bottom: 24px; }
  .ms > .ms-masa.ms-masa-hero { display: none; }
  .ms-mobil { display: block; max-width: 34rem; margin: 0 auto; padding: 18px 18px 40px; }
  .ms-mobil .nb-etiket { font-size: 15px; }
  .ms-mobil .nb-ham, .ms-mobil .nb-temiz { font-size: 18px; white-space: pre-line; }
  .ms-mobil .nb-temiz { min-height: 7em; }          /* five lines at 390 px: the card does not grow while the text is typed */
  .ms-mobil .nb-etiket-2 { margin-top: 16px; padding-top: 14px; }
  .ms-mobil .ms-ornek { right: 12px; bottom: 12px; font-size: 15px; }
  .ms-not, .s-ilk .s-meta { font-size: 15px; }       /* Fable F10: smallest first-screen text 15 px at 390 px */
}
