/* ============================================================
   POLLYGON.DEV — Pink × Blue Frutiger Aero Mac Desktop
   Pink:  logo letter fills  (#f0b8d8 / #e888b8)
   Blue:  logo cube faces    (#b8cef4 / #88b8ec)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


:root {
  /* Blue family (from the cube in the logo) */
  --db:  #1a3880;   /* deep navy – anchor/text */
  --mb:  #4878c8;   /* mid blue */
  --lb:  #88b8ec;   /* light periwinkle */
  --vlb: #c4dcf8;   /* very light blue */

  /* Pink family (from the letter fills in the logo) */
  --dp:  #b83068;   /* deep rose */
  --mp:  #e870a0;   /* mid pink */
  --lp:  #f4a8c8;   /* light pink */
  --vlp: #fcd8ec;   /* very light pink */

  /* Text – navy so it reads on both pink and blue */
  --txt:  #1a3070;
  --txt2: #3c68c0;
  --txt3: #80a8e0;

  /* Glass */
  --glass-bg:  rgba(255, 175, 210, 0.52);
  --glass-bdr: rgba(255, 255, 255, 0.85);
  --glass-sh:  0 8px 32px rgba(215, 70, 130, 0.25), 0 2px 10px rgba(215, 70, 130, 0.14);
  --shine: linear-gradient(180deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.08) 55%, transparent 100%);
}

html, body {
  width: 100%; height: 100vh;
  overflow: hidden;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  user-select: none;
  cursor: default;
}


/* ── MENU BAR ────────────────────────────────────────────── */
.menubar {
  position: fixed; top: 0; left: 0; right: 0; height: 26px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  background: linear-gradient(180deg,
    rgba(255, 230, 242, 0.82) 0%,
    rgba(255, 200, 228, 0.70) 49%,
    rgba(255, 175, 215, 0.78) 50%,
    rgba(255, 210, 232, 0.65) 100%);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.70);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.90),
    0 2px 12px rgba(215, 70, 130, 0.18);
  z-index: 2000;
  font-size: 13px; font-weight: 500; color: var(--txt);
}
.menubar-left  { display: flex; gap: 14px; align-items: center; }
.menubar-right { display: flex; gap: 12px; align-items: center; font-size: 12px; }
.mb-logo { height: 17px; width: auto; object-fit: contain; vertical-align: middle; }
.menu-item { cursor: pointer; padding: 0 3px; border-radius: 4px; transition: background 0.15s; }
.menu-item:hover, .menu-item.active { background: rgba(215, 70, 130, 0.18); }

/* ── DESKTOP ─────────────────────────────────────────────── */
.desktop {
  position: fixed;
  top: 26px; left: 0; right: 0; bottom: 0;
  overflow: hidden;

  /* Blue sky at top → clean white break → pink sunset at bottom */
  background:
    radial-gradient(ellipse 55% 45% at 18% 28%, rgba(130,190,248,0.52) 0%, transparent 65%),
    radial-gradient(ellipse 48% 40% at 82% 18%, rgba(150,198,252,0.44) 0%, transparent 60%),
    radial-gradient(ellipse 58% 42% at 50% 94%, rgba(248,168,210,0.50) 0%, transparent 65%),
    linear-gradient(175deg,
      #68a8dc 0%,
      #86bee8 10%,
      #a6d0f4 20%,
      #c2e0f8 30%,
      #d8eeff 40%,
      #eaf4ff 48%,
      #fef4fb 55%,
      #fce0f0 63%,
      #f9cce4 72%,
      #f7b8d8 82%,
      #f5a8ce 91%,
      #f39cc6 100%
    );
}

/* ── DESKTOP WATERMARK ───────────────────────────────────── */
.desktop-watermark {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 160px;
  height: auto;
  opacity: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ── BACKGROUND CLOUDS ───────────────────────────────────── */
.bg-clouds { position: absolute; inset: 0; pointer-events: none; }

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  animation: drift linear infinite;
}
.c1 { width:320px; height:120px; top: 7%; left:20%; filter:blur(22px); opacity:.60; animation-duration:90s; }
.c2 { width:220px; height: 90px; top:17%; right:20%; filter:blur(30px); opacity:.48; animation-duration:120s; animation-direction:reverse; }
.c3 { width:400px; height:140px; top:33%; left:35%; filter:blur(40px); opacity:.35; animation-duration:150s; }
.c4 { width:180px; height: 70px; top: 9%; left:55%; filter:blur(18px); opacity:.52; animation-duration:80s; animation-direction:reverse; }
.c5 { width:260px; height:100px; top:52%; left: 5%; filter:blur(45px); opacity:.28; animation-duration:200s; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(40px); }
}

/* streetlights removed */
.streetlights { display: none; }

/* ── GLASS WIDGET BASE ───────────────────────────────────── */
.widget {
  position: absolute;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bdr);
  border-radius: 16px;
  box-shadow: var(--glass-sh), inset 0 1px 0 rgba(255,255,255,0.82);
  padding: 12px 14px 14px;
  cursor: default;
  z-index: 10;
  transition: box-shadow 0.2s;
}

/* Drag handles — title bars only */
.wh, .ab-hdr, .mc-hdr, .finder-hdr, .pd-hdr, .w-clock {
  cursor: grab;
}
.wh:active, .ab-hdr:active, .mc-hdr:active,
.finder-hdr:active, .pd-hdr:active, .w-clock:active {
  cursor: grabbing;
}
.widget:hover  {
  box-shadow: 0 14px 44px rgba(215,70,130,0.24), 0 4px 12px rgba(215,70,130,0.13),
              inset 0 1px 0 rgba(255,255,255,0.88);
}
.widget::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 52%;
  background: var(--shine);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
}

/* ── TRAFFIC LIGHTS ──────────────────────────────────────── */
.wh { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tl-group { display: flex; gap: 6px; }
.tl {
  width: 12px; height: 12px; border-radius: 50%;
  cursor: pointer; transition: filter 0.15s; position: relative; z-index: 1;
}
.tl:hover { filter: brightness(1.2); }
.tl.r { background: radial-gradient(circle at 38% 35%, #ff9090, #ff4444); box-shadow: 0 1px 3px rgba(180,0,0,0.35); }
.tl.y { background: radial-gradient(circle at 38% 35%, #ffe080, #ffcc00); box-shadow: 0 1px 3px rgba(160,120,0,0.35); }
.tl.g { background: radial-gradient(circle at 38% 35%, #88ee88, #44cc44); box-shadow: 0 1px 3px rgba(0,130,0,0.35); }
.wt { font-size: 12px; font-weight: 700; color: var(--txt2); letter-spacing: 0.4px; }

/* ── STATS WIDGET ────────────────────────────────────────── */
.w-stats { top: 44px; left: 18px; width: 188px; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.stat-pill {
  display: flex; flex-direction: column; align-items: center;
  padding: 9px 8px 8px;
  background: linear-gradient(145deg, rgba(255,255,255,0.65), rgba(248,185,218,0.42));
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(220,80,150,0.12), inset 0 1px 0 rgba(255,255,255,0.88);
  position: relative; overflow: hidden;
}
.stat-pill::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, transparent 100%);
  border-radius: 20px 20px 0 0;
}
.sp-val { font-size: 22px; font-weight: 700; color: var(--txt); line-height: 1; }
.sp-lbl { font-size: 9px; font-weight: 700; color: var(--lp); text-transform: uppercase; letter-spacing: 0.6px; margin-top: 2px; }

/* ── ABOUT WINDOW ────────────────────────────────────────── */
.w-about {
  top: 44px; left: calc(50% - 350px);
  width: 700px; height: 490px;
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
  background: #fff5fa;
  border-color: rgba(184, 48, 104, 0.28);
  box-shadow: 0 8px 36px rgba(184, 48, 104, 0.18), 0 2px 10px rgba(184, 48, 104, 0.10);
}
.w-about::after { display: none; }
.w-about::before {
  content: '';
  position: absolute; inset: 0;
  background-color: #fff0f7;
  background-image: radial-gradient(circle at center center, #fcd8ec, #fff0f7), repeating-radial-gradient(circle at center center, #fcd8ec, #fcd8ec, 10px, transparent 20px, transparent 10px);
  background-blend-mode: multiply;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.ab-hdr {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 243, 250, 0.92);
  border-bottom: 1px solid rgba(255, 210, 235, 0.60);
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.ab-hdr-title { font-size: 12px; font-weight: 700; color: var(--txt2); letter-spacing: 0.3px; }

.ab-body { display: flex; flex: 1; overflow: hidden; position: relative; z-index: 1; }

.ab-sidebar {
  width: 152px;
  background: rgba(255, 243, 250, 0.92);
  backdrop-filter: blur(0);
  border-right: 1px solid rgba(255, 210, 235, 0.60);
  padding: 18px 8px;
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 3px;
}

.ab-nav {
  display: block; text-align: left; width: 100%;
  background: none; border: none; font-family: inherit;
  padding: 7px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--txt2);
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.ab-nav:hover  { background: rgba(255, 255, 255, 0.58); }
.ab-nav.active { background: rgba(255, 255, 255, 0.72); color: var(--txt); font-weight: 700; }

.ab-content {
  flex: 1; overflow-y: auto;
  padding: 30px 36px 36px;
  scroll-behavior: smooth;
}
.ab-content::-webkit-scrollbar { width: 5px; }
.ab-content::-webkit-scrollbar-thumb { background: rgba(140, 190, 240, 0.45); border-radius: 3px; }

/* Profile header */
.ab-profile-hdr { margin-bottom: 24px; }

.ab-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.90);
  box-shadow: 0 4px 18px rgba(80, 140, 220, 0.22);
  object-fit: cover; display: block; margin-bottom: 14px;
}

.ab-name {
  font-size: 44px; font-weight: 700; color: var(--txt);
  letter-spacing: -1.5px; line-height: 1; margin-bottom: 5px;
}

.ab-role { font-size: 14px; color: var(--txt3); margin-bottom: 14px; }

.ab-links-row { display: flex; gap: 8px; margin-bottom: 10px; }

.ab-lnk {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 13px; border-radius: 20px; text-decoration: none;
  font-size: 12px; font-weight: 700; color: var(--txt);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(200, 225, 255, 0.80);
  box-shadow: 0 2px 8px rgba(100, 160, 220, 0.10);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.ab-lnk:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(100, 160, 220, 0.22); }
.ab-lnk-icon { font-size: 13px; }

.ab-badges-row { display: flex; gap: 8px; }

.ab-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 20px;
  font-size: 11px; font-weight: 600; color: var(--txt2);
  background: rgba(200, 228, 255, 0.60);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

/* Sections */
.ab-section { margin-bottom: 28px; }

.ab-bio { font-size: 13.5px; line-height: 1.72; color: var(--txt); margin-bottom: 13px; }

.ab-sec-h {
  font-size: 26px; font-weight: 700; color: var(--txt);
  letter-spacing: -0.5px; margin-bottom: 14px;
}

.ab-study-card { padding: 2px 0; }
.ab-study-name { font-size: 14px; font-weight: 700; color: var(--txt); }
.ab-study-sub  { font-size: 12px; color: var(--txt3); margin-top: 2px; }

.ab-toolkit-h { font-size: 14px; font-weight: 700; color: var(--txt); margin-bottom: 9px; }

.ab-toolkit { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.ab-toolkit li {
  font-size: 13px; color: var(--txt2);
  padding-left: 16px; position: relative;
}
.ab-toolkit li::before {
  content: '•'; position: absolute; left: 3px;
  color: var(--lb); font-size: 15px; line-height: 1.1;
}

/* ── MOOD / STATUS WIDGET ────────────────────────────────── */
.w-mood { top: 44px; left: calc(50% + 60px); width: 210px; }

.refresh { font-size: 14px; color: var(--txt3); cursor: pointer; margin-left: auto; transition: transform 0.3s; }
.refresh:hover { transform: rotate(180deg); }

.mood-faces { display: flex; gap: 10px; margin: 6px 0 8px; }
.mf { opacity: 0.38; cursor: pointer; transition: opacity 0.2s, transform 0.2s; color: var(--dp); display: flex; align-items: center; }
.mf:hover { opacity: 0.75; transform: scale(1.15); }
.mf.active { opacity: 1; transform: scale(1.2); }

.mood-status { font-size: 12px; font-weight: 700; color: var(--dp); margin-bottom: 8px; }

.mood-days { display: flex; gap: 3px; }
.md {
  flex: 1; text-align: center; font-size: 9px; font-weight: 700; color: var(--txt3);
  padding: 3px 1px; border-radius: 6px;
  background: rgba(255,255,255,0.38);
}
.md.today {
  background: linear-gradient(135deg, #e06098, #f498c0);
  color: #fff;
  box-shadow: 0 2px 6px rgba(220,80,150,0.38);
}

/* ── WORK STATUS WIDGET ──────────────────────────────────── */
.w-status { top: 12%; left: 1.5%; width: 215px; }

.ws-body { padding: 2px 0 4px; }

.ws-top { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }

.ws-dot {
  width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0;
  background: #48c86a;
  box-shadow: 0 0 0 3px rgba(72,200,106,0.22);
  animation: ws-pulse 2.2s ease-in-out infinite;
}
.ws-dot.ws-busy { background: #f0b840; box-shadow: 0 0 0 3px rgba(240,184,64,0.22); animation: none; }
.ws-dot.ws-away { background: #e05858; box-shadow: 0 0 0 3px rgba(224,88,88,0.22); animation: none; }

@keyframes ws-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(72,200,106,0.22); }
  50%       { box-shadow: 0 0 0 7px rgba(72,200,106,0); }
}

.ws-status-text { font-size: 12px; font-weight: 800; color: var(--txt); }

.ws-note { font-size: 11px; color: var(--txt3); margin-bottom: 10px; line-height: 1.4; }

.ws-divider { height: 1px; background: rgba(180,180,220,0.28); margin-bottom: 10px; }

.ws-meta { display: flex; flex-direction: column; gap: 6px; }
.ws-meta-item { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--txt2); }
.ws-meta-item span:first-child { font-size: 13px; }

/* ── CLOCK WIDGET ────────────────────────────────────────── */
.w-clock {
  top: 44px; right: 160px; width: 196px;
  text-align: center; padding: 16px 14px 18px;
  background: linear-gradient(145deg, rgba(255,195,225,0.55), rgba(255,170,210,0.46));
  border-color: rgba(255,190,220,0.80);
}
.ck-date { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--txt3); margin-bottom: 4px; }
.ck-time { font-size: 54px; font-weight: 200; color: var(--txt); line-height: 1; letter-spacing: -3px; }

/* ── MASCOT ASSISTANT WINDOW ─────────────────────────────── */
.w-char {
  top: calc(50% - 210px); left: calc(50% - 340px);
  width: 680px; height: 420px;
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
  background: rgba(255, 225, 238, 0.58);
  border: 1px solid var(--glass-bdr);
  border-radius: 16px;
  box-shadow: var(--glass-sh), inset 0 1px 0 rgba(255,255,255,0.82);
}
.w-char::after { display: none; }

.mc-hdr {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; flex-shrink: 0;
  background: rgba(255, 220, 235, 0.50);
  border-bottom: 1px solid rgba(255,255,255,0.52);
  border-radius: 14px 14px 0 0;
}
.mc-hdr-title { font-size: 12px; font-weight: 800; color: var(--dp); letter-spacing: 0.5px; }

/* Stream layout */
.stream-layout {
  flex: 1; display: flex; overflow: hidden;
}

.stream-video-col {
  width: 390px; flex-shrink: 0;
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.40);
}

.stream-chat-col {
  flex: 1; display: flex; flex-direction: column;
  background: rgba(255, 185, 218, 0.12);
  min-width: 0;
}

/* SKIP button — sits in the header bar */
.stream-skip-btn {
  margin-left: auto;
  background: rgba(20, 10, 30, 0.22);
  border: 1px solid rgba(255,255,255,0.50);
  border-radius: 4px;
  color: var(--txt); font-size: 9px; font-weight: 800;
  padding: 3px 9px; cursor: pointer;
  font-family: inherit; letter-spacing: 0.5px;
  transition: background 0.15s;
}
.stream-skip-btn:hover { background: rgba(20, 10, 30, 0.38); }

/* Scene area */
.mc-scene {
  flex: 1; position: relative; overflow: hidden;
  background: url('assets/streambackground.jpg') center / cover no-repeat;
}

/* LIVE badge — pinned to top-right of the scene */
.stream-live-pill {
  position: absolute; top: 7px; right: 7px; z-index: 10;
  background: linear-gradient(135deg, #d02858, #e84878);
  color: #fff; font-size: 9px; font-weight: 800;
  padding: 2px 9px; border-radius: 20px;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(200,30,70,0.35);
  animation: live-pulse 2.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* Stream info bar below the scene */
.stream-info-bar {
  flex-shrink: 0;
  padding: 10px 12px 11px;
  background: rgba(255, 220, 235, 0.28);
  border-top: 1px solid rgba(255,255,255,0.42);
}
.stream-title-text {
  font-size: 13px; font-weight: 800; color: var(--txt);
  margin-bottom: 5px; letter-spacing: 0.2px;
}
.stream-meta-row {
  display: flex; align-items: center; justify-content: space-between;
}
.stream-viewer-count { font-size: 11px; font-weight: 800; color: var(--dp); }
.stream-day-label { font-size: 11px; font-weight: 700; color: var(--txt3); }

.mc-sky { display: none; }
/* sparkle stars */
.mc-scene::before {
  content: '✦  ✧  ✦  ✧  ✦';
  position: absolute; top: 7px; left: 0; right: 0;
  text-align: center; font-size: 9px; letter-spacing: 7px;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 0 8px rgba(215,70,130,0.55);
  z-index: 3; pointer-events: none;
  animation: mc-sparkle 3s ease-in-out infinite;
}
@keyframes mc-sparkle {
  0%,100% { opacity: 0.55; }
  50%      { opacity: 1;    }
}

.mc-ground { display: none; }

.mc-sprite {
  position: absolute; top: -1%; left: 50%;
  transform: translateX(-50%);
  height: 185%;
  aspect-ratio: 2140 / 3700;
  animation: mc-idle 3s ease-in-out infinite;
  z-index: 2;
}
.mc-layer {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  image-rendering: auto;
}
@keyframes mc-idle {
  0%,100% { transform: translateX(-50%) translateY(0)    rotate(-1deg); }
  50%      { transform: translateX(-50%) translateY(-6px) rotate(1deg);  }
}
.mc-sprite.mc-talking { animation: mc-talk 0.3s ease-in-out infinite; }
@keyframes mc-talk {
  0%,100% { transform: translateX(-50%) translateY(0)    rotate(-1deg); }
  50%      { transform: translateX(-50%) translateY(-4px) rotate(1deg) scaleY(1.03); }
}

.mc-flower {
  position: absolute; font-size: 16px; z-index: 3;
  animation: flower-sway 3s ease-in-out infinite;
}
.mf1 { bottom: 12%; left: 6%;   animation-delay: -1s;  }
.mf2 { bottom: 11%; left: 25%;  animation-delay: -2s;  }
.mf3 { bottom: 12%; right: 12%; animation-delay: -0.5s;}
@keyframes flower-sway {
  0%,100% { transform: rotate(-6deg); }
  50%      { transform: rotate(6deg);  }
}

/* Dialogue box — overlaid on the scene as stream subtitles */
.mc-dialogue {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 6;
  background: linear-gradient(transparent, rgba(12, 4, 28, 0.72));
  padding: 28px 12px 8px;
}
.mc-namebox {
  display: inline-block;
  background: linear-gradient(135deg, var(--dp), var(--mp));
  color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.6px;
  padding: 2px 12px 3px; border-radius: 30px; margin-bottom: 5px;
  box-shadow: 0 2px 8px rgba(215,70,130,0.40);
  position: relative; overflow: hidden;
}
.mc-namebox::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 100%);
  pointer-events: none;
}
.mc-textbox { min-height: 36px; cursor: pointer; }
.mc-text { font-size: 12px; line-height: 1.55; color: #fff; font-family: inherit; text-shadow: 0 1px 4px rgba(0,0,0,0.55); }

/* Chat column header */
.stream-chat-hdr {
  padding: 5px 10px; flex-shrink: 0;
  font-size: 9px; font-weight: 800; color: var(--txt3);
  border-bottom: 1px solid rgba(255,255,255,0.38);
  background: rgba(255,220,235,0.18);
  letter-spacing: 0.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Scrolling chat messages */
.stream-chat-msgs {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 6px 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.stream-chat-msgs::-webkit-scrollbar { width: 3px; }
.stream-chat-msgs::-webkit-scrollbar-thumb { background: rgba(215,80,140,0.28); border-radius: 2px; }

.chat-msg {
  font-size: 10.5px; line-height: 1.45; color: var(--txt);
  word-break: break-word;
  animation: chat-msg-in 0.18s ease both;
}
@keyframes chat-msg-in {
  from { opacity: 0; transform: translateX(6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.chat-msg-user { font-weight: 800; margin-right: 3px; }
.chat-msg.chat-from-you {
  background: rgba(215,80,140,0.13);
  border: 1px solid rgba(215,80,140,0.24);
  border-radius: 7px;
  padding: 3px 8px;
  margin: 2px 0;
}
.chat-msg.chat-from-you .chat-msg-user { color: var(--dp); }

/* Question choices — sit at bottom of chat column */
.mc-choices {
  display: none;
  flex-direction: column; align-items: stretch;
  gap: 4px;
  padding: 6px 8px;
  background: rgba(255,185,215,0.18);
  border-top: 1px solid rgba(255,255,255,0.42);
  flex-shrink: 0;
  animation: mc-choices-in 0.20s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes mc-choices-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0);   }
}

.mc-choice {
  width: 100%;
  background: linear-gradient(145deg, rgba(255,255,255,0.60), rgba(255,185,218,0.28));
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.2px;
  color: var(--txt); text-shadow: none;
  cursor: pointer; font-family: inherit;
  text-align: left;
  box-shadow: 0 2px 6px rgba(215,70,130,0.10), inset 0 1px 0 rgba(255,255,255,0.55);
  transition: transform 0.14s cubic-bezier(0.34,1.56,0.64,1), background 0.15s, box-shadow 0.15s;
}
.mc-choice:hover {
  transform: translateX(3px);
  background: rgba(255,255,255,0.80);
  box-shadow: 0 4px 12px rgba(215,70,130,0.22), inset 0 1px 0 rgba(255,255,255,0.70);
}

/* ── PROJECTS / FINDER WINDOW ────────────────────────────── */
.w-finder {
  top: 12%; left: calc(1.5% + 227px);
  width: 540px; height: 356px;
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.finder-hdr {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255,195,225,0.44);
  border-bottom: 1px solid rgba(255,255,255,0.52);
  flex-shrink: 0;
}
.finder-nav { display: flex; gap: 4px; }
.fnav-btn {
  background: linear-gradient(145deg, rgba(255,255,255,0.68), rgba(255,185,218,0.42));
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 6px; width: 24px; height: 22px;
  font-size: 15px; cursor: pointer; color: var(--txt2);
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; transition: background 0.15s, transform 0.1s;
}
.fnav-btn:hover { background: rgba(255,255,255,0.85); transform: scale(1.05); }
.finder-title { flex: 1; text-align: center; font-size: 13px; font-weight: 700; color: var(--txt); }
.finder-search input {
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 20px; padding: 3px 12px;
  font-size: 11px; color: var(--txt); outline: none;
  width: 110px; font-family: inherit; transition: background 0.15s;
}
.finder-search input:focus { background: rgba(255,255,255,0.85); }

.finder-body { display: flex; flex: 1; overflow: hidden; }

.finder-sidebar {
  width: 145px;
  background: rgba(255,198,228,0.44);
  border-right: 1px solid rgba(255,255,255,0.48);
  padding: 10px 8px; flex-shrink: 0; overflow-y: auto;
}
.sb-label { display: block; font-size: 9px; font-weight: 800; color: var(--txt3); text-transform: uppercase; letter-spacing: 1px; padding: 0 6px; margin-bottom: 3px; }
.sb-item { padding: 5px 8px; border-radius: 7px; font-size: 12px; color: var(--txt2); cursor: pointer; transition: background 0.15s; display: flex; align-items: center; gap: 7px; }
.sb-icon { width: 14px; height: 14px; flex-shrink: 0; }
.sb-item:hover  { background: rgba(255,255,255,0.48); }
.sb-item.active { background: linear-gradient(135deg, rgba(215,80,140,0.26), rgba(245,150,195,0.20)); color: var(--txt); font-weight: 700; }

.finder-content { flex: 1; padding: 12px; overflow-y: auto; }
.finder-content::-webkit-scrollbar { width: 5px; }
.finder-content::-webkit-scrollbar-thumb { background: rgba(215,80,140,0.38); border-radius: 3px; }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }

.proj-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 6px 10px;
  background: linear-gradient(145deg, rgba(255,255,255,0.58), rgba(255,185,215,0.30));
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 12px; text-decoration: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 2px 8px rgba(215,70,130,0.10);
  position: relative; overflow: hidden;
}
.proj-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.54) 0%, transparent 100%);
  border-radius: 12px 12px 0 0;
}
.proj-card:hover {
  background: linear-gradient(145deg, rgba(255,255,255,0.75), rgba(255,185,215,0.48));
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(215,70,130,0.20);
}
.proj-icon  { font-size: 30px; margin-bottom: 5px; }
.proj-thumb {
  width: 100%; height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 5px;
  position: relative; z-index: 1;
}
.proj-name { font-size: 11px; font-weight: 700; color: var(--txt); text-align: center; }
.proj-sub  { font-size: 9px; font-weight: 600; color: var(--txt3); margin-top: 2px; text-align: center; }

/* ── SKILLS WIDGET ───────────────────────────────────────── */
.w-skills { top: calc(12% + 259px); left: 1.5%; width: 215px; }

.skill-list { display: flex; flex-direction: column; gap: 9px; }
.skill { display: flex; flex-direction: column; gap: 3px; }
.sk-name { font-size: 11px; font-weight: 700; color: var(--txt2); }
.sk-track {
  height: 8px;
  background: rgba(255,255,255,0.48);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 4px; overflow: hidden;
}
.sk-fill {
  height: 100%;
  background: linear-gradient(90deg, #3870c8 0%, #6898e0 40%, #a0c4f4 70%, #6898e0 100%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: sk-shimmer 2.8s linear infinite;
  box-shadow: 0 0 6px rgba(60,120,220,0.42);
}
@keyframes sk-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── CONTACT WIDGET ──────────────────────────────────────── */
.w-contact { bottom: 18px; right: 18px; width: 220px; }

.contact-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  justify-content: flex-start;
}

.c-icon {
  display: block;
  width: 52px; height: 52px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.72);
  box-shadow: 0 2px 8px rgba(215,70,130,0.14), inset 0 1px 0 rgba(255,255,255,0.82);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.c-icon::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.42) 0%, transparent 100%);
  pointer-events: none;
}
.c-icon img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.c-icon:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 24px rgba(215,70,130,0.28), inset 0 1px 0 rgba(255,255,255,0.88);
}

/* ── DOCK ────────────────────────────────────────────────── */
.dock-wrap {
  position: fixed; bottom: 8px; left: 50%; transform: translateX(-50%);
  z-index: 1999;
}
.dock {
  display: flex; align-items: flex-end; gap: 7px;
  padding: 8px 14px 10px;
  background: rgba(255, 182, 215, 0.58);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 22px;
  box-shadow: 0 8px 36px rgba(215,70,130,0.22), 0 2px 8px rgba(215,70,130,0.10),
              inset 0 1px 0 rgba(255,255,255,0.88);
}

.di {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; position: relative;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.di:hover { transform: translateY(-10px) scale(1.22); }
.di:hover + .di { transform: translateY(-5px) scale(1.10); }
.di:has(+ .di:hover) { transform: translateY(-5px) scale(1.10); }

.di-icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,0.85), rgba(255,185,218,0.62));
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow: 0 4px 14px rgba(215,70,130,0.18), inset 0 1px 0 rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transition: box-shadow 0.2s;
}
.di-icon::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.64) 0%, transparent 100%);
  border-radius: 15px 15px 0 0;
  z-index: 1; pointer-events: none;
}
.di-icon img {
  width: 70%; height: 70%;
  object-fit: contain;
  position: relative; z-index: 0;
}
.di:hover .di-icon { box-shadow: 0 14px 32px rgba(215,70,130,0.30), inset 0 1px 0 rgba(255,255,255,0.92); }

.di-label {
  font-size: 10px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 4px rgba(120,20,60,0.55);
  background: rgba(160,20,70,0.44);
  backdrop-filter: blur(8px);
  padding: 2px 7px; border-radius: 6px;
  position: absolute; bottom: -20px;
  white-space: nowrap; opacity: 0;
  transition: opacity 0.15s; pointer-events: none;
}
.di:hover .di-label { opacity: 1; }

.dock-sep {
  width: 1px; height: 50px;
  background: linear-gradient(180deg, transparent, rgba(215,120,170,0.55), transparent);
  margin: 0 3px; align-self: center;
}

/* ── FULLSCREEN WIDGET ───────────────────────────────────── */
.w-fullscreen {
  left:   4px !important;
  top:    4px !important;
  width:  calc(100% - 8px) !important;
  height: calc(100% - 86px) !important;
  border-radius: 10px !important;
  z-index: 990 !important;
}

/* Project detail fullscreen: window fills screen, body content stays centred */
.w-project-detail.w-fullscreen .pd-body {
  max-width: 860px;
  margin: 0 auto;
  max-height: none;
}
.w-project-detail.w-fullscreen .pd-hero { height: 320px; }
.w-project-detail.w-fullscreen .pd-hero-emoji { height: 320px; font-size: 96px; }

/* Dock minimized dot */
.di.di-minimized::after {
  content: '';
  position: absolute; bottom: -7px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 3px rgba(0,0,0,0.22);
}

/* ── WIDGET SHAKE ────────────────────────────────────────── */
@keyframes w-shake {
  0%,100% { transform: translateX(0); }
  15%      { transform: translateX(-6px) rotate(-1deg); }
  30%      { transform: translateX(5px)  rotate(1deg); }
  45%      { transform: translateX(-4px) rotate(-0.8deg); }
  60%      { transform: translateX(3px)  rotate(0.6deg); }
  75%      { transform: translateX(-2px); }
}
.w-shake { animation: w-shake 0.42s cubic-bezier(0.36,0.07,0.19,0.97) both; }

/* ── WIDGET ANIMATIONS ───────────────────────────────────── */
@keyframes w-entrance {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.w-entrance {
  animation: w-entrance 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes w-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.025); }
  70%  { transform: scale(0.985); }
  100% { transform: scale(1); }
}
.w-pop { animation: w-pop 0.55s cubic-bezier(0.34,1.56,0.64,1); }

/* ── NOTES GRID (inside Finder) ─────────────────────────── */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px; padding: 12px; overflow-y: auto; flex: 1; align-content: start;
}
.note-card {
  background: rgba(255,252,255,0.84);
  border: 1px solid rgba(255,200,230,0.55);
  border-radius: 12px;
  padding: 10px 12px 13px;
  box-shadow: 0 2px 8px rgba(180,80,140,0.08);
  display: flex; flex-direction: column; gap: 6px;
  position: relative; overflow: hidden;
}
.note-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--lp), var(--vlb));
  border-radius: 12px 12px 0 0;
}
.note-title { font-size: 12px; font-weight: 800; color: var(--txt); padding-top: 3px; }
.note-content { font-size: 11px; color: var(--txt2); line-height: 1.6; white-space: pre-wrap; }
.notes-empty { font-size: 12px; color: var(--txt3); padding: 12px; }

/* ── GALLERY GRID (inside Finder) ───────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.gallery-item {
  border-radius: 11px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  position: relative;
  background: rgba(255,255,255,0.38);
  box-shadow: 0 2px 8px rgba(215,70,130,0.10);
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 22px rgba(215,70,130,0.22);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.gallery-item-title {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(26,48,112,0.60));
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 18px 8px 6px; letter-spacing: 0.2px;
}

/* ── GALLERY LIGHTBOX ────────────────────────────────────── */
.gallery-lightbox {
  position: fixed; inset: 0; z-index: 8000;
  display: flex; align-items: center; justify-content: center;
}
.gallery-lb-bg {
  position: absolute; inset: 0;
  background: rgba(10, 20, 60, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.gallery-lb-img {
  position: relative; z-index: 1;
  max-width: 88%; max-height: 84vh;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.48);
  object-fit: contain;
  animation: lb-pop 0.28s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes lb-pop {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
.gallery-lb-close {
  position: absolute; top: 20px; right: 24px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.15);
  color: #fff; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.15s;
  font-family: inherit;
}
.gallery-lb-close:hover { background: rgba(255,255,255,0.28); transform: scale(1.1); }

/* ── PROJECT DETAIL WINDOW ───────────────────────────────── */
.w-project-detail {
  top: 14%; left: calc(50% - 270px);
  width: 540px;
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
  background: rgba(255, 195, 225, 0.42);
  backdrop-filter: blur(32px) saturate(1.4);
  -webkit-backdrop-filter: blur(32px) saturate(1.4);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 16px 56px rgba(215, 70, 130, 0.30),
    0 4px 16px rgba(215, 70, 130, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 200, 225, 0.30);
}

.pd-hdr {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.50);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.pd-win-title {
  flex: 1; text-align: center;
  font-size: 12px; font-weight: 700; color: var(--txt2);
  letter-spacing: 0.3px;
  padding-right: 48px; /* balance tl-group */
}

.pd-body {
  padding: 18px 20px 22px;
  display: flex; flex-direction: column;
  gap: 12px;
  max-height: 500px;
  overflow-y: auto;
}
.pd-body::-webkit-scrollbar { width: 5px; }
.pd-body::-webkit-scrollbar-thumb { background: rgba(140,190,240,0.45); border-radius: 3px; }

.pd-hero {
  width: 100%; height: 240px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.pd-hero-emoji {
  width: 100%; height: 240px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--vlp), var(--vlb));
  display: flex; align-items: center; justify-content: center;
  font-size: 88px;
}

.pd-meta-row {
  display: flex; align-items: center; gap: 8px;
}
.pd-category {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--dp);
  background: rgba(184, 48, 104, 0.10);
  border: 1px solid rgba(184, 48, 104, 0.20);
  padding: 3px 11px; border-radius: 20px;
}

.pd-name {
  font-size: 22px; font-weight: 800;
  color: var(--txt); letter-spacing: -0.5px;
  line-height: 1.15;
}

.pd-desc {
  font-size: 13px; line-height: 1.85;
  color: var(--txt2);
  padding: 10px 14px;
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
  margin: 2px 0 4px;
  white-space: pre-wrap;
}
.pd-desc:empty { display: none; }

.pd-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.pd-tags:empty { display: none; }
.pd-tag {
  font-size: 11px; font-weight: 700;
  color: var(--db);
  background: rgba(136,184,236,0.22);
  border: 1px solid rgba(136,184,236,0.45);
  padding: 3px 11px; border-radius: 20px;
}

.pd-actions {
  display: flex; gap: 10px; padding-top: 4px;
}
.pd-actions:empty { display: none; }

.pd-btn {
  flex: 1; padding: 10px 14px;
  border-radius: 11px; border: none;
  font-family: inherit; font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative; overflow: hidden;
}
.pd-btn::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.38) 0%, transparent 100%);
  border-radius: 11px 11px 0 0; pointer-events: none;
}
.pd-btn:hover { transform: translateY(-2px); }
.pd-btn-demo {
  background: linear-gradient(135deg, var(--dp), #d45090);
  color: #fff;
  box-shadow: 0 4px 14px rgba(184,48,104,0.30);
}
.pd-btn-demo:hover { box-shadow: 0 7px 20px rgba(184,48,104,0.40); }
.pd-btn-github {
  background: linear-gradient(145deg, rgba(26,56,128,0.14), rgba(26,56,128,0.08));
  color: var(--db);
  border: 1px solid rgba(26,56,128,0.20);
}
.pd-btn-github:hover { background: rgba(26,56,128,0.18); }

/* ── BLOG / DEVLOG WIDGET ───────────────────────────────── */
.w-blog {
  top: 14%; left: calc(1.5% + 227px);
  width: 580px; height: 400px;
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.blog-hdr {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.52);
  cursor: grab;
}
.blog-hdr:active { cursor: grabbing; }
.blog-hdr-title { font-size: 12px; font-weight: 800; color: var(--dp); letter-spacing: 0.5px; }

.blog-body { flex: 1; display: flex; overflow: hidden; }

.blog-sidebar {
  width: 175px; flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.45);
  overflow-y: auto; padding: 10px 0;
  display: flex; flex-direction: column;
}
.blog-sidebar-label {
  font-size: 9px; font-weight: 800; color: var(--txt3);
  letter-spacing: 1px; padding: 0 12px 8px;
}
.blog-post-list { display: flex; flex-direction: column; gap: 2px; padding: 0 6px; }

.blog-post-item {
  padding: 8px 10px; border-radius: 8px;
  cursor: pointer; transition: background 0.15s;
}
.blog-post-item:hover { background: rgba(255,255,255,0.35); }
.blog-post-item.active { background: rgba(255,175,210,0.45); }
.blog-post-item-title {
  font-size: 11px; font-weight: 800; color: var(--txt);
  margin-bottom: 2px; line-height: 1.3;
}
.blog-post-item-date { font-size: 10px; color: var(--txt3); font-weight: 600; }

.blog-content { flex: 1; overflow-y: auto; padding: 18px 20px; }
.blog-content::-webkit-scrollbar { width: 5px; }
.blog-content::-webkit-scrollbar-thumb { background: rgba(140,190,240,0.45); border-radius: 3px; }

.blog-placeholder {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--txt3);
}

.blog-post-title {
  font-size: 20px; font-weight: 900; color: var(--txt);
  margin-bottom: 6px; letter-spacing: -0.3px; line-height: 1.2;
}
.blog-post-meta {
  display: flex; gap: 10px; align-items: center;
  font-size: 11px; font-weight: 700; color: var(--txt3);
  margin-bottom: 14px;
}
.blog-post-meta-sep { opacity: 0.4; }
.blog-post-body {
  font-size: 13px; line-height: 1.82; color: var(--txt2);
  white-space: pre-wrap;
}
.blog-post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.blog-post-tag {
  font-size: 10px; font-weight: 700; color: var(--db);
  background: rgba(26,56,128,0.10); border: 1px solid rgba(26,56,128,0.18);
  border-radius: 20px; padding: 2px 9px;
}
.blog-empty { font-size: 12px; color: var(--txt3); padding: 10px 12px; }

/* ── MUSIC PLAYER WIDGET ─────────────────────────────────── */
.w-music {
  width: 280px;
  top: 175px; right: 160px;
  padding: 0; overflow: hidden;
}
.w-music .wh {
  padding: 10px 14px 0;
  margin-bottom: 0;
}

.mp-body {
  padding: 12px 14px 16px;
  display: flex; flex-direction: column; gap: 12px;
}

/* Album art */
.mp-art-wrap {
  position: relative; width: 100%; aspect-ratio: 1;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, var(--vlp), var(--vlb));
  box-shadow: 0 6px 24px rgba(184,48,104,0.22), 0 2px 8px rgba(0,0,0,0.10);
  flex-shrink: 0;
}
.mp-art {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.mp-art-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}
.mp-art-gloss {
  position: absolute; top: 0; left: 0; right: 0; height: 52%;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.42) 0%,
    rgba(255,255,255,0.10) 60%,
    transparent 100%);
  border-radius: 14px 14px 0 0;
  pointer-events: none; z-index: 1;
}

/* Track info */
.mp-info { display: flex; flex-direction: column; gap: 2px; }
.mp-now-label {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--txt3);
}
.mp-title-outer { overflow: hidden; white-space: nowrap; }
.mp-title {
  font-size: 15px; font-weight: 800; color: var(--txt);
  white-space: nowrap; display: inline-block;
}
.mp-title.mp-scrolling { animation: mp-marquee 10s linear infinite; }
@keyframes mp-marquee {
  0%, 10% { transform: translateX(0); }
  90%, 100% { transform: translateX(var(--mp-scroll, -60px)); }
}
.mp-artist { font-size: 12px; font-weight: 500; color: var(--txt3); }

/* Progress */
.mp-progress-wrap { display: flex; flex-direction: column; gap: 5px; }
.mp-progress-bar {
  width: 100%; height: 6px;
  background: rgba(184,48,104,0.14);
  border-radius: 10px; cursor: pointer; position: relative;
}
.mp-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--dp), var(--mp));
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(184,48,104,0.40);
  pointer-events: none;
}
.mp-time-row {
  display: flex; justify-content: space-between;
  font-size: 10px; font-weight: 600; color: var(--txt3);
}

/* Controls */
.mp-controls {
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.mp-btn {
  border: none; border-radius: 50px; font-family: inherit;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.12s, box-shadow 0.12s;
}
.mp-btn:active { transform: scale(0.92) !important; }
.mp-btn-side {
  width: 40px; height: 40px; font-size: 15px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(255,255,255,0.80);
  color: var(--dp);
  box-shadow: 0 2px 8px rgba(184,48,104,0.12),
              inset 0 1px 0 rgba(255,255,255,0.95);
}
.mp-btn-side:hover { transform: scale(1.08); box-shadow: 0 4px 14px rgba(184,48,104,0.22), inset 0 1px 0 rgba(255,255,255,0.95); }
.mp-btn-main {
  width: 56px; height: 56px; font-size: 20px;
  background: linear-gradient(145deg, var(--dp), #d45090);
  color: #fff;
  box-shadow: 0 4px 18px rgba(184,48,104,0.38),
              inset 0 1px 0 rgba(255,255,255,0.38);
  border: 1px solid rgba(255,255,255,0.28);
}
.mp-btn-main:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(184,48,104,0.48), inset 0 1px 0 rgba(255,255,255,0.38); }

/* Volume */
.mp-volume-row { display: flex; align-items: center; gap: 8px; }
.mp-vol-icon { display: flex; align-items: center; cursor: pointer; user-select: none; flex-shrink: 0; color: var(--dp); opacity: 0.75; transition: opacity 0.15s; }
.mp-vol-icon:hover { opacity: 1; }
.mp-volume-slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 10px;
  background: rgba(184,48,104,0.14);
  outline: none; cursor: pointer;
}
.mp-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(145deg, var(--dp), #d45090);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(184,48,104,0.35);
  transition: transform 0.12s;
}
.mp-volume-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.mp-volume-slider::-moz-range-thumb {
  width: 14px; height: 14px; border: none; border-radius: 50%;
  background: linear-gradient(145deg, var(--dp), #d45090);
  cursor: pointer; box-shadow: 0 2px 6px rgba(184,48,104,0.35);
}

/* Playlist input */
.mp-playlist-row { display: flex; gap: 6px; }
.mp-playlist-input {
  flex: 1; background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.72); border-radius: 10px;
  padding: 7px 10px; font-size: 11px; font-family: inherit;
  color: var(--txt); outline: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}
.mp-playlist-input::placeholder { color: var(--txt3); }
.mp-playlist-input:focus { border-color: rgba(184,48,104,0.40); box-shadow: 0 0 0 2px rgba(184,48,104,0.10); }
.mp-load-btn {
  background: linear-gradient(145deg, var(--dp), #d45090);
  color: #fff; border: none; border-radius: 10px;
  padding: 7px 12px; font-size: 11px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  box-shadow: 0 2px 8px rgba(184,48,104,0.25), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.12s, box-shadow 0.12s;
}
.mp-load-btn:hover { transform: scale(1.04); }
.mp-load-btn:active { transform: scale(0.96); }

/* ── DESKTOP ICONS ───────────────────────────────────────── */
.desktop-icons {
  position: absolute;
  top: 20px; right: 20px;
  display: flex; flex-direction: column;
  gap: 6px; z-index: 5;
}
.dsk-icon {
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
  width: 72px; padding: 6px 4px;
  border-radius: 10px;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s;
  border: 1px solid transparent;
}
.dsk-icon:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.45);
}
.dsk-icon.dsk-selected {
  background: rgba(100,160,255,0.28);
  border-color: rgba(255,255,255,0.60);
}
.dsk-icon img {
  width: 48px; height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.18));
  transition: transform 0.15s, filter 0.15s;
}
.dsk-icon:hover img  { transform: scale(1.08); filter: drop-shadow(0 4px 10px rgba(215,70,130,0.35)); }
.dsk-icon:active img { transform: scale(0.94); }
.dsk-icon span {
  font-size: 11px; font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55), 0 0 10px rgba(0,0,0,0.28);
  text-align: center; line-height: 1.25;
  max-width: 68px; word-break: break-word;
}

/* ── README WIDGET ───────────────────────────────────────── */
.w-readme {
  width: 280px;
  top: 44px; right: 460px;
}
.readme-body {
  display: flex; flex-direction: column; gap: 10px;
  padding: 4px 2px 2px;
  font-size: 13px; line-height: 1.65; color: var(--txt);
  font-family: 'Nunito', monospace;
  user-select: text;
}
.readme-body p { margin: 0; }

/* ── WELCOME SCREEN ──────────────────────────────────────── */
#welcome-screen {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(160deg, #fce4f3 0%, #e8d5f5 40%, #d0e8ff 100%);
  cursor: pointer;
  transition: opacity 0.7s ease;
}
#welcome-screen.wc-out { opacity: 0; pointer-events: none; }

.wc-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  text-align: center;
}

.wc-pre {
  font-size: 15px; font-weight: 600;
  letter-spacing: 3px; text-transform: lowercase;
  color: var(--dp);
  opacity: 0;
  animation: wc-rise 0.4s 0.1s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

.wc-title {
  width: clamp(180px, 30vw, 320px);
  height: auto;
  opacity: 0;
  animation: wc-pop 0.5s 0.25s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

.wc-sub {
  font-size: 13px; font-weight: 600;
  color: var(--txt2); letter-spacing: 1.5px;
  opacity: 0;
  animation: wc-rise 0.6s 0.9s ease forwards;
}

.wc-skip {
  position: absolute; bottom: 28px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.5px;
  color: rgba(0,0,0,0.20);
  font-family: 'Nunito', sans-serif;
  animation: wc-rise 0.4s 0.6s ease forwards;
  opacity: 0;
}

@keyframes wc-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wc-pop {
  from { opacity: 0; transform: scale(0.85) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── BOOT SCREEN ─────────────────────────────────────────── */
#boot-screen {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #fff;
  cursor: pointer;
  transition: opacity 0.6s ease;
}
#boot-screen.boot-out { opacity: 0; pointer-events: none; }

.boot-logo {
  width: 120px; height: auto;
  animation: boot-logo-in 0.7s cubic-bezier(0.34,1.56,0.64,1) both,
             boot-bounce 0.7s 0.7s ease-in-out infinite alternate;
  margin-bottom: 48px;
}
@keyframes boot-logo-in {
  from { opacity: 0; transform: scale(0.82) translateY(0); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes boot-bounce {
  from { transform: translateY(0px); }
  to   { transform: translateY(-12px); }
}

.boot-bar-wrap {
  width: 196px; height: 4px;
  background: rgba(0,0,0,0.10);
  border-radius: 2px; overflow: hidden;
  animation: boot-logo-in 0.7s 0.2s ease both;
}
.boot-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #ffb3d1, #8899dd);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

.boot-skip {
  position: absolute; bottom: 24px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.5px;
  color: rgba(0,0,0,0.20);
  font-family: 'Nunito', sans-serif;
  animation: boot-logo-in 1s 0.5s ease both;
}

/* ── MOBILE SITE ─────────────────────────────────────────── */
#mobile-site { display: none; }

/* ── RESPONSIVE DESKTOP: 769px – 1100px (Small laptop) ──── */
@media (min-width: 769px) and (max-width: 1100px) {
  /* Mascot — keep centered, tighten height */
  .w-char {
    width: min(680px, calc(100vw - 40px));
    left: max(20px, calc(50% - 340px));
    height: 390px;
  }
  /* About — keep centered, clamp width */
  .w-about {
    width: min(700px, calc(100vw - 40px));
    left: max(18px, calc(50% - 350px));
    height: auto; max-height: 80vh;
  }
  /* Finder — prevent right overflow */
  .w-finder {
    width: min(540px, calc(100vw - 240px));
    left: calc(1.5% + 227px);
  }
  /* Project detail — clamp width and center */
  .w-project-detail {
    width: min(520px, calc(100vw - 40px));
    left: max(20px, calc(50% - 260px));
  }
  /* Clock — pull in slightly */
  .w-clock { right: 120px; }
  /* Readme — pull in */
  .w-readme { right: 90px; }
}

/* ── RESPONSIVE DESKTOP: 1600px+ (Large / ultrawide) ────── */
@media (min-width: 1600px) {
  /* Finder — keep anchored right of skills */
  .w-finder {
    left: calc(1.5% + 227px);
    width: min(580px, 38vw);
    height: 380px;
  }
  /* Stats — keep near finder */
  .w-stats { left: clamp(18px, calc(50% - 620px), 220px); }
  /* Skills and Contact stay anchored to their corners */
  /* Mood — slight pull */
  .w-mood { left: calc(50% + 80px); }
  /* Larger about */
  .w-about { width: min(760px, 48vw); left: calc(50% - min(380px, 24vw)); }
}

/* ── RESPONSIVE DESKTOP: 1920px+ (Ultrawide) ────────────── */
@media (min-width: 1920px) {
  .w-finder { left: calc(1.5% + 227px); width: 600px; }
  .w-stats   { left: calc(50% - 680px); }
  .w-char    { width: 720px; left: calc(50% - 360px); height: 440px; }
  .w-about   { width: 800px; left: calc(50% - 400px); }
}

@media (max-width: 768px) {
  html, body { height: 100%; overflow: hidden; }
  .menubar, .desktop, .dock-wrap { display: none !important; }

  #mobile-site {
    display: block;
    position: fixed; inset: 0;
    overflow: hidden;
    background: linear-gradient(175deg,
      #68a8dc 0%, #86bee8 10%, #a6d0f4 20%, #c2e0f8 30%,
      #d8eeff 40%, #eaf4ff 48%, #fef4fb 55%, #fce0f0 63%,
      #f9cce4 72%, #f7b8d8 82%, #f5a8ce 91%, #f39cc6 100%);
  }

  /* ── PAGES ── */
  .mob-page {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 62px;
    overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    opacity: 0; pointer-events: none;
    transition: opacity 0.22s ease;
    display: flex; flex-direction: column;
  }
  .mob-page.active { opacity: 1; pointer-events: auto; }

  /* Home page layout */
  #mob-home {
    padding: 0 20px 24px;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
  }

  /* Inner content wrapper for non-home pages */
  .mob-page-content {
    padding: 28px 20px 28px;
    display: flex; flex-direction: column; gap: 14px;
    flex: 1;
  }

  /* Notice pill */
  .mob-notice {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px; margin: 16px 0;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 30px;
    backdrop-filter: blur(12px);
    font-size: 12px; font-weight: 700; color: var(--txt);
    align-self: center;
  }
  .mob-notice span { flex: 1; }
  .mob-notice-close {
    background: none; border: none; font-size: 14px; cursor: pointer;
    color: var(--txt3); padding: 0; font-family: inherit; line-height: 1;
  }

  /* Upper hero: logo + tagline */
  .mob-hero-upper {
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    padding: 16px 0 28px; width: 100%;
  }
  .mob-hero-logo { width: 175px; height: auto; object-fit: contain; margin-bottom: 14px; }
  .mob-hero-tagline {
    font-size: 15px; font-weight: 600; color: var(--txt2);
    margin-bottom: 20px; line-height: 1.4; text-align: center;
  }
  .mob-hero-about-link {
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--txt);
    font-size: 13px; font-weight: 700;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(255,255,255,0.84);
    border-radius: 24px; padding: 9px 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(120,160,220,0.14);
  }
  .mob-hero-about-icon { width: 20px; height: 20px; object-fit: contain; }

  /* CTA card */
  .mob-hero-card {
    background: rgba(255,255,255,0.58);
    border: 1px solid rgba(255,255,255,0.80);
    border-radius: 26px; padding: 22px 20px 20px;
    box-shadow: 0 8px 32px rgba(215,70,130,0.14), inset 0 1px 0 rgba(255,255,255,0.80);
    backdrop-filter: blur(20px);
    position: relative; overflow: hidden; width: 100%;
  }
  .mob-hero-flan {
    position: absolute; top: -8px; right: 12px;
    height: 100px; width: auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 4px 12px rgba(215,70,130,0.25));
    animation: mc-idle 3s ease-in-out infinite;
  }
  .mob-hero-ready {
    font-size: 20px; font-weight: 800; color: var(--txt);
    margin-bottom: 6px; line-height: 1.2; padding-right: 100px;
  }
  .mob-hero-sub {
    font-size: 13px; color: var(--txt3); margin-bottom: 18px; line-height: 1.5;
    padding-right: 100px;
  }
  .mob-hero-btns { display: flex; gap: 10px; }

  /* Buttons — Frutiger Aero */
  .mob-btn {
    /* color tokens */
    --hue: 0; --sat: 0.12; --glow-intensity: 0.7;
    --fg: oklch(15% calc(var(--sat) * 0.5) var(--hue));
    --bg: oklch(75% var(--sat) var(--hue) / 0.8);
    --bg-dark: oklch(45% var(--sat) var(--hue) / 0.75);
    --bottom-glow: radial-gradient(farthest-corner at bottom center, rgba(255,255,255,var(--glow-intensity)), transparent);
    /* layout */
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 0.75em 1em; border-radius: 9999px;
    font-size: 13px; font-weight: 700; text-align: center;
    text-decoration: none; font-family: 'Nunito', sans-serif;
    /* aero glass */
    background-color: var(--bg);
    background: var(--bottom-glow), linear-gradient(to bottom, var(--bg-dark), var(--bg));
    border: 1px solid var(--bg);
    box-shadow: 0 4px 4px rgba(0,0,0,0.35);
    color: var(--fg);
    text-shadow: 0 2px 0.5em rgba(0,0,0,0.18);
    cursor: pointer; position: relative;
    transition: all 300ms ease;
    user-select: none; -webkit-user-select: none;
  }
  .mob-btn::after {
    content: "";
    position: absolute; top: 4%; left: 0.75em;
    width: calc(100% - 1.5em); height: 40%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.82), rgba(255,255,255,0.08));
    border-radius: inherit; pointer-events: none;
    transition: background 400ms ease;
  }
  .mob-btn:hover, .mob-btn:focus { box-shadow: 0 6px 8px rgba(0,0,0,0.35); transform: translateY(-1px); }
  .mob-btn:active  { box-shadow: 0 2px 4px rgba(0,0,0,0.35); transform: translateY(1px); }
  .mob-btn-primary   {
    --hue: 352; --sat: 0.10; --glow-intensity: 0.82;
    --bg: oklch(86% 0.10 352 / 0.9);
    --bg-dark: oklch(68% 0.12 352 / 0.85);
    --fg: oklch(28% 0.06 352);
  }
  .mob-btn-secondary { --hue: 220; --sat: 0.06; --glow-intensity: 0.92; --fg: oklch(22% 0.04 220); }

  /* ── SECTION HEADINGS ── */
  .mob-section-h {
    font-size: 26px; font-weight: 700; color: var(--txt);
    letter-spacing: -0.5px; margin-bottom: 14px;
  }

  /* Glass card */
  .mob-card {
    background: rgba(255,255,255,0.52);
    border: 1px solid rgba(255,255,255,0.78);
    border-radius: 20px; padding: 18px;
    box-shadow: 0 4px 18px rgba(215,70,130,0.10), inset 0 1px 0 rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
  }
  .mob-bio { font-size: 14px; line-height: 1.72; color: var(--txt); }

  /* Stats */
  .mob-stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 8px; margin-top: 12px;
  }
  .mob-stat {
    display: flex; flex-direction: column; align-items: center;
    padding: 10px 4px;
    background: rgba(255,255,255,0.52);
    border: 1px solid rgba(255,255,255,0.78);
    border-radius: 16px;
  }
  .mob-stat-val { font-size: 20px; font-weight: 700; color: var(--txt); line-height: 1; }
  .mob-stat-lbl { font-size: 8px; font-weight: 700; color: var(--lp); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; }

  /* Projects */
  .mob-proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mob-proj-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 18px 10px 14px;
    background: rgba(255,255,255,0.52);
    border: 1px solid rgba(255,255,255,0.78);
    border-radius: 18px; text-decoration: none;
    box-shadow: 0 2px 8px rgba(215,70,130,0.08);
    transition: transform 0.15s;
  }
  .mob-proj-card:active { transform: scale(0.96); }
  .mob-proj-icon { font-size: 34px; margin-bottom: 8px; }
  .mob-proj-thumb { width: 100%; height: 80px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
  .mob-proj-name { font-size: 12px; font-weight: 700; color: var(--txt); text-align: center; }
  .mob-proj-sub  { font-size: 10px; font-weight: 600; color: var(--txt3); margin-top: 2px; }

  /* About profile card */
  .mob-profile-card { text-align: center; padding: 22px 16px 16px; }
  .mob-about-avatar { width: 82px; height: 82px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; border: 3px solid rgba(255,255,255,0.85); box-shadow: 0 4px 14px rgba(120,160,220,0.2); }
  .mob-about-name { font-size: 26px; font-weight: 700; color: var(--txt); margin-bottom: 4px; }
  .mob-about-role { font-size: 13px; color: var(--txt3); margin-bottom: 14px; }
  .mob-about-links { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
  .mob-about-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

  /* Skills */
  .mob-skill-list { display: flex; flex-direction: column; gap: 10px; }
  .mob-skill { display: flex; flex-direction: column; gap: 4px; }
  .mob-sk-name { font-size: 13px; font-weight: 700; color: var(--txt2); }
  .mob-sk-track { height: 9px; background: rgba(255,255,255,0.48); border: 1px solid rgba(255,255,255,0.72); border-radius: 5px; overflow: hidden; }
  .mob-sk-fill { height: 100%; background: linear-gradient(90deg, #3870c8, #6898e0, #a0c4f4, #6898e0); background-size: 200% 100%; border-radius: 5px; animation: sk-shimmer 2.8s linear infinite; }

  /* Contact */
  .mob-contact-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
  .mob-c-icon { width: 64px; height: 64px; border-radius: 18px; overflow: hidden; text-decoration: none; border: 1.5px solid rgba(255,255,255,0.75); box-shadow: 0 2px 10px rgba(215,70,130,0.14); }
  .mob-c-icon:active { transform: scale(0.94); }
  .mob-c-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

  /* ── PROJECT DETAIL PAGE ── */
  .mob-proj-detail-page {
    transform: translateX(100%);
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.4,0,0.2,1);
  }
  .mob-proj-detail-page.active { transform: translateX(0); }

  .mob-pd-hdr {
    padding: 16px 20px 0; flex-shrink: 0;
    background: transparent;
  }
  .mob-back-btn {
    background: none; border: none;
    font-size: 14px; font-weight: 800; color: var(--dp);
    cursor: pointer; font-family: inherit; padding: 0;
    letter-spacing: 0.2px;
  }
  .mob-pd-hero-img {
    width: 100%; height: 220px;
    object-fit: cover; display: block;
    margin-top: 14px;
  }
  .mob-pd-hero-emoji {
    width: 100%; height: 200px;
    display: flex; align-items: center; justify-content: center;
    font-size: 80px; margin-top: 14px;
    background: linear-gradient(135deg, var(--vlp), var(--vlb));
  }
  .mob-pd-body { padding: 18px 20px 32px; display: flex; flex-direction: column; gap: 12px; }
  .mob-pd-meta-row { display: flex; }
  .mob-pd-category {
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--dp);
    background: rgba(184,48,104,0.10);
    border: 1px solid rgba(184,48,104,0.20);
    padding: 3px 12px; border-radius: 20px;
  }
  .mob-pd-name {
    font-size: 26px; font-weight: 800; color: var(--txt);
    letter-spacing: -0.5px; line-height: 1.15;
  }
  .mob-pd-desc { font-size: 14px; line-height: 1.85; color: var(--txt2); padding: 10px 14px; background: rgba(255,255,255,0.18); border-radius: 10px; margin: 2px 0 4px; white-space: pre-wrap; }
  .mob-pd-desc:empty { display: none; }
  .mob-pd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .mob-pd-tags:empty { display: none; }
  .mob-pd-tag {
    font-size: 11px; font-weight: 700; color: var(--db);
    background: rgba(136,184,236,0.22);
    border: 1px solid rgba(136,184,236,0.45);
    padding: 3px 11px; border-radius: 20px;
  }
  .mob-pd-actions { display: flex; gap: 10px; }
  .mob-pd-actions:empty { display: none; }
  .mob-pd-btn {
    flex: 1; padding: 12px 14px;
    border-radius: 12px; border: none;
    font-family: inherit; font-size: 13px; font-weight: 800;
    cursor: pointer; text-decoration: none; text-align: center;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .mob-pd-btn:active { transform: scale(0.96); }
  .mob-pd-btn-demo {
    background: linear-gradient(135deg, var(--dp), #d45090);
    color: #fff;
    box-shadow: 0 4px 14px rgba(184,48,104,0.30);
  }
  .mob-pd-btn-github {
    background: linear-gradient(145deg, rgba(26,56,128,0.14), rgba(26,56,128,0.08));
    color: var(--db);
    border: 1px solid rgba(26,56,128,0.20);
  }

  /* Footer */
  .mob-footer { padding: 24px 0 0; text-align: center; }
  .mob-footer-logo { height: 26px; margin: 0 auto 8px; opacity: 0.6; display: block; }
  .mob-footer p { font-size: 12px; font-weight: 600; color: var(--txt3); }

  /* ── BOTTOM NAV ── */
  .mob-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    display: flex;
    background: rgba(255,255,255,0.80);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255,255,255,0.65);
    padding: 6px 0 max(10px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(215,70,130,0.08);
  }
  .mob-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    gap: 3px; padding: 4px 0; text-decoration: none;
    color: rgba(0,0,0,0.28); font-size: 10px; font-weight: 700;
    font-family: 'Nunito', sans-serif;
    transition: color 0.15s;
  }
  .mob-nav-item.active { color: var(--dp); }
  .mob-nav-img { width: 26px; height: 26px; object-fit: contain; opacity: 0.30; transition: opacity 0.15s; }
  .mob-nav-item.active .mob-nav-img { opacity: 1; }
}

::-webkit-scrollbar { width: 0; height: 0; }
