/* Gloop — the days between streams (game/life), in the game's one look (TECH_SPEC_GAME §25, "Şeker cilası"):
   saturated candy colours, every shape outlined in plum ink, chunky rounded panels with a hard drop shadow (a
   sticker on the screen), jelly buttons with a gloss band and a lip that squashes under the thumb, Avenir Next
   Heavy for anything you read at a glance, the system font for anything you read slowly. The slime's gloss is
   the house rule: every object gets one white highlight stroke. */

:root {
  --lk: #2b1438; --lk2: #5a3a68; --lk3: #8a6f96; --cream: #fff7ef; --paper-c: #fffaf2;
  --pink: #ff3d8b; --hot: #ff2d6f; --grape: #7a3cff; --coin: #ffc531; --coin2: #e88a00; --mint: #3ee6a8; --aqua2: #2fd6ff; --sun: #ffe14d; --lilac: #c9a6ff;
  --display: "Avenir Next", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --pop: cubic-bezier(.2, 1.6, .4, 1);
  --stk: 0 4px 0 var(--lk);
}

.life { position: absolute; inset: 0; z-index: 60; display: flex; flex-direction: column; background: #ffd9c2; color: var(--lk); overflow: hidden;
  --hand: "Noteworthy", "Marker Felt", "Chalkboard SE", "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  --paper: #fdfbf4; --ink-paper: #2b2160; touch-action: manipulation; }
.life.night { background: #3e2c66; }
.life[hidden] { display: none; }
.life .hand, .life-sheet .hand { font-family: var(--hand); }
.life svg.ic, .life-sheet svg.ic, .life-phone svg.ic { width: 20px; height: 20px; flex: none; display: block; overflow: visible; }

/* ---------------------------------------------------------------- jelly buttons (the one shape a thumb looks for) */
.jelly { position: relative; overflow: hidden; border: 3px solid var(--lk) !important; color: #fff; font-family: var(--display); font-weight: 900;
  text-shadow: 0 2px 0 rgba(43, 20, 56, 0.55); box-shadow: inset 0 -6px 0 rgba(90, 0, 40, 0.28), 0 5px 0 var(--lk) !important; transition: transform 0.08s, box-shadow 0.08s; }
.jelly::before { content: ""; position: absolute; left: 10px; right: 10px; top: 4px; height: 34%; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.12)); pointer-events: none; }
.jelly:active { transform: translateY(4px); box-shadow: inset 0 -3px 0 rgba(90, 0, 40, 0.28), 0 1px 0 var(--lk) !important; }

/* ---------------------------------------------------------------- THE ROOM, in the look the founder chose
   (2026-11-18, "Maket · Kil": game/look/kil-theme.ts, game/concepts/kil.ts `home`). Three rows of one column, so
   nothing can lie over anything: a calm strip of clay pills under the notch (.life-top), the miniature in the middle
   (.room, built by room.ts), one bottom zone (.room-cta: the phone's newest message as a quiet line, then the free
   table beside the hour's single coral action). Morning and day are bright, the evening warms, the night is a violet
   dusk with the model lit from inside. Only transform and opacity are animated. */
.life.kil { background: #f5eadb; color: var(--k-ink); font-family: var(--k-font); --mk-lead: #7d626c; }
.life.kil.night { background: #6c5890; --mk-lead: #fff6ee; }
.mk-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(120% 64% at 50% 46%, #fdf7ec 0, #f5eadb 58%, #ecdcc9 100%); }
.mk-sky i { position: absolute; inset: 0; opacity: 0; background: radial-gradient(120% 64% at 50% 46%, #ffedd4 0, #fbd0a6 58%, #f2ae88 100%); }
.life.night .mk-sky { background: radial-gradient(120% 64% at 50% 46%, #8d74a6 0, #6c5890 58%, #55457a 100%); }

/* the strip: who you are, the till, your nerve; then the day and its hours */
.life-top { position: relative; z-index: 6; flex: none; display: flex; flex-direction: column; gap: 6px; padding: calc(var(--safe-top) + 2px) 10px 0; }
.mk-row { display: flex; gap: 6px; min-width: 0; }
.life-top .k-pill { text-align: left; }
.life-top .k-pill > span { min-width: 0; }
.life-top .k-pill b, .life-top .k-pill small { overflow: hidden; text-overflow: ellipsis; }
.life-top .k-pill b { font-variant-numeric: tabular-nums; }
.life-top .k-pill small i { font-style: normal; }
.life-top .mk-me { flex: 1 1 0; padding-left: 5px; gap: 7px; }
.life-top .mk-me svg.pt { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.life-top .mk-kasa, .life-top .mk-nerve { flex: none; }
.mk-row.mk-tight .mk-nerve, .mk-row.mk-tighter .mk-kasa { padding-left: 12px; }
.mk-row.mk-tight .mk-nerve .k-bub, .mk-row.mk-tighter .mk-kasa .k-bub { display: none; }
.life-top .mk-day { flex: 1 1 0; }
.life-top .mk-clock { flex: none; }
/* the clock's bubble is the day's meter: an arc of the free hours round its face */
.life-top .mk-ring { position: relative; }
.life-top .mk-ring .mk-arc { position: absolute; inset: 0; width: 100%; height: 100%; }
.life-top .mk-ring svg.kl-ic { font-size: 15px; }
.pop { animation: pop 0.45s var(--pop); }
@keyframes pop { 40% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* the miniature: a CSS 3D scene of flat faces (room.ts); its unit is the stage's font-size, set from the room's box */
.room { position: relative; z-index: 1; flex: 1 1 0; min-height: 0; touch-action: none; }
.mk-st { position: absolute; inset: 0; perspective-origin: 51.5% 56%; animation: mkFade 0.45s both; }
.mk-wr { position: absolute; left: 51.5%; top: 56%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.mk-og { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.mk-f { position: absolute; left: 0; top: 0; display: block; transform-origin: 0 0; box-sizing: border-box; font-style: normal; }
.mk-f.mk-b { transform-origin: 50% 100%; }
.mk-f.mk-clip { overflow: hidden; }
.mk-f b { position: absolute; display: block; box-sizing: border-box; }
.mk-f svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mk-f svg text { font-family: var(--k-font); }
.mk-f[data-p], .mk-f b[data-p] { cursor: pointer; }
.mk-pulse { animation: mkPulse 2.6s ease-out infinite; }
.mk-rec { animation: blink 1.3s infinite; }
.mk-ghost { animation: mkGhost 3s ease-in-out infinite; }
.mk-spark { animation: mkSpark 1.8s ease-in-out infinite; }
.mk-in .mk-fresh { animation: mkDrop 0.9s 0.5s var(--pop) both; }
.mk-in .mk-visit svg { animation: mkStep 0.7s 0.6s var(--pop) both; }
.mk-zz { animation: zz 2.4s ease-in-out infinite; }
@keyframes mkFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mkPulse { from { transform: scale(0.9); opacity: 0.8; } to { transform: scale(1.55); opacity: 0; } }
@keyframes mkGhost { 50% { opacity: 0.55; } }
@keyframes mkSpark { 50% { transform: scale(0.6); opacity: 0.5; } }
@keyframes mkDrop { from { transform: translateY(-600%); opacity: 0; } 50% { opacity: 1; } }
@keyframes mkStep { from { transform: translateX(-40%); opacity: 0; } }
@keyframes badgeIn { from { transform: scale(0); } }
@keyframes badgeBob { 50% { transform: translateY(-2px) scale(1.04); } }
@keyframes zz { 0% { opacity: 0; translate: 0 6px; } 40% { opacity: 1; } 100% { opacity: 0; translate: 6px -10px; } }
@keyframes doorIn { from { transform: translateY(-14px) scale(0.8); opacity: 0; } }
@keyframes doorNudge { 0%, 80%, 100% { transform: none; } 86% { transform: rotate(-2deg); } 92% { transform: rotate(2deg); } }
@keyframes blink { 50% { opacity: 0.3; } }

/* the places' pills: each stands in clear air with a leader to its thing; room.ts moves them (transform only) and
   pushes apart any two that would touch. The pill of the hour's action is the coral one. */
.mk-lbs { position: absolute; inset: 0; pointer-events: none; animation: mkFade 0.4s 0.6s both; }
.mk-ld { position: absolute; left: 0; top: 0; width: 1px; height: 2px; margin-top: -1px; background: var(--mk-lead); transform-origin: 0 50%; will-change: transform; }
.mk-dt { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--k-card); box-shadow: 0 0 0 2px var(--mk-lead); will-change: transform; }
.mk-ld.mk-pri { height: 3.5px; margin-top: -1.75px; background: var(--k-cor); }
.mk-dt.mk-pri { box-shadow: 0 0 0 3.5px var(--k-cor); }
.mk-ld.mk-tag { height: 1.5px; margin-top: -0.75px; opacity: 0.7; }
.mk-dt.mk-tag { display: none; }
.mk-lb { position: absolute; left: 0; top: 0; min-width: 44px; height: 44px; display: grid; place-items: center; pointer-events: auto; will-change: transform; cursor: pointer; }
.mk-p { display: flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 11px; border-radius: 19px; background: var(--k-card); box-shadow: var(--k-shd); white-space: nowrap;
  font-size: 12px; font-weight: 800; letter-spacing: 0.05em; color: var(--k-ink); transition: transform 0.08s; }
.mk-lb:active .mk-p { transform: scale(0.95); }
.mk-tx { display: flex; flex-direction: column; line-height: 1.18; text-align: left; }
.mk-l1 { display: flex; align-items: baseline; gap: 5px; }
.mk-l1 small, .mk-l2 { font-size: 11px; font-weight: 700; letter-spacing: 0; color: var(--k-ink2); }
.mk-l1 b { font-weight: 800; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.mk-l1.mk-nm { letter-spacing: 0; font-size: 12.5px; }
.mk-red { color: var(--k-red); }
.mk-ok { color: var(--k-sageink); }
.mk-p em { flex: none; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0; padding: 2px 7px; border-radius: 999px; background: var(--k-peach); color: #8f3e29; }
.mk-p em.mk-dot { width: 9px; height: 9px; padding: 0; background: var(--k-red); }
.mk-p .mk-av { width: 28px; height: 28px; margin-left: -7px; border-radius: 50%; flex: none; display: block; }
.mk-lb.mk-pri .mk-p { min-height: 38px; padding: 0 14px 0 10px; font-size: 14.5px; background: linear-gradient(#f99b82, #f17a60); color: var(--k-corink); box-shadow: 0 3px 0 var(--k-cor2), 0 6px 10px rgba(214, 93, 69, 0.34); }
.mk-lb.mk-pri .mk-l1 small { color: #56261b; font-size: 11.5px; }
.mk-lb.mk-pri svg.kl-ic { font-size: 18px; }
.mk-lb.mk-knock .mk-p { animation: doorNudge 2.8s 1s ease-in-out infinite; }
.mk-lb.mk-tag .mk-p { min-height: 26px; padding: 2px 10px 2px 4px; gap: 5px; border-radius: 15px; background: rgba(255, 250, 244, 0.92); box-shadow: 0 1px 3px rgba(150, 96, 74, 0.18); }
.mk-lb.mk-tag .mk-l1.mk-nm { font-size: 10.5px; }
.mk-lb.mk-tag .mk-l2 { font-size: 10.5px; }
.mk-plus { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--k-sage); color: var(--k-sageink); font-style: normal; font-size: 14px; line-height: 1; font-weight: 800; }
.room.mk-small .mk-p { min-height: 26px; padding: 2px 9px; gap: 5px; font-size: 11px; }
.room.mk-small .mk-l1 small, .room.mk-small .mk-l2, .room.mk-small .mk-p em { font-size: 10.5px; }
.room.mk-small .mk-lb.mk-pri .mk-p { min-height: 32px; padding: 0 12px 0 8px; font-size: 13px; }
.room.mk-small .mk-lb.mk-tag .mk-p { min-height: 24px; padding: 1px 8px 1px 3px; }
.room.mk-small .mk-p em.mk-dot { width: 8px; height: 8px; padding: 0; }
.mk-hint { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: var(--k-card); font-size: 11.5px; font-weight: 700; color: var(--k-ink2); white-space: nowrap; pointer-events: none; animation: mkFade 0.6s 1s both; transition: opacity 0.4s; }
.mk-hint.mk-off { animation: none; opacity: 0; }

/* the bottom zone: your phone (the newest message, how many things wait) as a quiet line; under it the free table
   beside the one thing the hour is for */
.room-cta { position: relative; z-index: 6; flex: none; display: flex; flex-direction: column; gap: 10px; padding: 6px 12px calc(var(--safe-bottom) + 12px); }
.room-cta .phone-edge { display: flex; align-items: center; gap: 8px; width: 100%; height: 48px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--k-card); box-shadow: var(--k-shd); text-align: left; min-width: 0; cursor: pointer; transition: transform 0.08s; }
.room-cta .phone-edge:active { transform: scale(0.98); }
.room-cta .phone-edge .mk-ph { position: relative; width: 32px; height: 32px; font-size: 20px; background: var(--k-sage); color: var(--k-sageink); }
.room-cta .phone-edge .pe-crack { position: absolute; left: 2px; top: 2px; width: 28px; height: 28px; pointer-events: none; color: #fffaf4; }
.room-cta .phone-edge .mk-face { display: block; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; }
.room-cta .phone-edge .mk-face img, .room-cta .phone-edge .mk-face svg { display: block; width: 100%; height: 100%; }
.room-cta .phone-edge .mk-t { flex: 1; min-width: 0; font-size: clamp(12.5px, 3.5vw, 14px); font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--k-ink2); }
.room-cta .phone-edge .mk-t b { color: var(--k-ink); font-weight: 800; margin-right: 6px; }
.room-cta .phone-edge small { flex: none; font-size: 11.5px; font-weight: 700; color: var(--k-ink2); font-variant-numeric: tabular-nums; }
.room-cta .phone-edge em { flex: none; font-style: normal; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--k-peach); color: #8f3e29; }
.room-cta .phone-edge.mk-buzz { animation: mkBuzz 0.5s var(--pop); }
.room-cta .phone-edge.mk-buzz .mk-ph { animation: mkRattle 0.3s 3; }
@keyframes mkBuzz { from { transform: translateY(10px) scale(0.94); opacity: 0.4; } }
@keyframes mkRattle { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.mk-acts { display: flex; gap: 10px; }
.room-cta .cta { flex: 1 1 0; min-width: 0; height: 60px; padding: 0 12px; gap: 8px; text-align: left; }
.room-cta .cta svg.kl-ic { font-size: 24px; }
.room-cta .cta .lbl { min-width: 0; }
.room-cta .cta .lbl b { display: block; font-family: "Avenir Next", ui-rounded, system-ui, sans-serif; font-size: clamp(16px, 4.6vw, 19px); font-weight: 800; letter-spacing: 0.03em; line-height: 1.08; white-space: nowrap; }
.room-cta .cta .lbl small { color: #56261b; opacity: 1; font-size: clamp(10px, 2.75vw, 11.5px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* SLIME YAP: the door to the table with no stream on it, the quiet neighbour of the day's big button */
.room-cta .cta-sand { flex: none; height: 60px; padding: 0 13px 0 10px; gap: 7px; text-align: left; }
.room-cta .cta-sand svg.kl-ic { font-size: 22px; color: #a5523b; }
.room-cta .cta-sand b { display: block; font-size: 13px; letter-spacing: 0.04em; line-height: 1.12; white-space: nowrap; }
.room-cta .cta-sand small { white-space: nowrap; }
/* a narrow phone: the quiet button gives its glyph up so the big one keeps its words whole */
@media (max-width: 374px) {
  .room-cta .cta-sand { padding: 0 12px; }
  .room-cta .cta-sand svg.kl-ic { display: none; }
}
/* a short phone: the strip and the bottom zone give the model their spare height */
@media (max-height: 700px) {
  .life-top { gap: 5px; }
  .life-top .k-pill { height: 38px; }
  .life-top .mk-me svg.pt { width: 30px; height: 30px; }
  .life-top .k-bub { width: 24px; height: 24px; font-size: 15px; }
  .room-cta { gap: 7px; padding-top: 4px; padding-bottom: calc(var(--safe-bottom) + 9px); }
  .room-cta .phone-edge { height: 44px; }
  .room-cta .cta, .room-cta .cta-sand { height: 54px; min-height: 50px; }
}



/* the stream's end card on a career night: the career's line */
.desk .brand .back { margin-right: 10px; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,0.12); font-size: 12px; font-weight: 800; color: #fff; }

/* the story repaired the phone's glass (act1 ekran_tamir) */
.glass-fixed .pe-crack, .glass-fixed .ph-crack { display: none; }

/* a person you know, tagged by the name you know them by, wherever a night is remembered (ma_ilknur · Annen) */
.kn { display: inline-block; margin: 0 3px 0 4px; padding: 0 6px; border-radius: 7px; font: 900 10px/15px var(--display); letter-spacing: 0.01em; vertical-align: 1px;
  background: var(--pink); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .mk-pulse, .mk-ghost, .mk-spark, .mk-zz, .mk-lb.mk-knock .mk-p, .bust.talking { animation: none !important; }
}

