:root {
  color-scheme: dark;
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.68);
  --hairline: rgba(255, 255, 255, 0.2);
  --glass: rgba(12, 18, 32, 0.54);
  --glass-strong: rgba(12, 18, 32, 0.78);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  --lg-bg-color: rgba(255, 255, 255, 0.105);
  --lg-bg-clear: rgba(255, 255, 255, 0.075);
  --lg-highlight: rgba(255, 255, 255, 0.72);
  --lg-border: rgba(255, 255, 255, 0.28);
  --lg-dark-edge: rgba(0, 0, 0, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
}

html,
body {
  overflow: hidden;
  background: #070b15;
}

button,
input,
a {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.glass-filter-defs {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.app-shell,
.portfolio-os {
  position: fixed;
  inset: 0;
  overflow: hidden;
  color: var(--text);
}

.desktop-mode,
.mobile-mode {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.wallpaper,
.mobile-wallpaper {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.wallpaper__drift,
.mobile-wallpaper__drift {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150%;
  background-image:
    linear-gradient(rgba(7, 11, 21, 0.06), rgba(7, 11, 21, 0.2)),
    url("./assets/wallpaper.jpg");
  background-size: cover;
  background-position: center;
  animation: wallpaper-drift 58s linear infinite;
  animation-delay: var(--wdrift, 0s);
  will-change: transform;
  transition: opacity 1.4s ease;
}

.wallpaper__blur,
.mobile-wallpaper__blur {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120%;
  background-image: url("./assets/wallpaper.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  mix-blend-mode: screen;
  filter: blur(18px) saturate(1.25);
  animation: wallpaper-blur 86s linear infinite;
  animation-delay: var(--wparallax, 0s);
  will-change: transform;
  transition: opacity 1.4s ease;
}

.wallpaper::after,
.mobile-wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.1));
}

@keyframes wallpaper-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-33.33%); }
}

@keyframes wallpaper-blur {
  from { transform: translateY(0); }
  to { transform: translateY(-16.67%); }
}

.liquid-glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  border-color: var(--lg-border);
  box-shadow:
    0 6px 6px rgba(0, 0, 0, 0.16),
    0 0 22px rgba(0, 0, 0, 0.1),
    0 24px 80px rgba(0, 0, 0, 0.22);
  transition:
    border-radius 420ms cubic-bezier(0.175, 0.885, 0.32, 2.2),
    padding 420ms cubic-bezier(0.175, 0.885, 0.32, 2.2),
    box-shadow 420ms cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

.liquid-glass::before,
.liquid-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.liquid-glass::before {
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.22), transparent 24%),
    var(--lg-bg-color);
  backdrop-filter: blur(3px) saturate(1.45) brightness(1.12);
  filter: url("#glass-distortion");
}

.liquid-glass::after {
  z-index: 1;
  box-shadow:
    inset 2px 2px 1px 0 rgba(255, 255, 255, 0.48),
    inset -1px -1px 1px 1px rgba(255, 255, 255, 0.32),
    inset 0 -18px 42px rgba(255, 255, 255, 0.06);
}

.liquid-glass > * {
  position: relative;
  z-index: 3;
}

.liquid-glass--clear::before {
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.2), transparent 26%),
    var(--lg-bg-clear);
}

.liquid-glass--flat::before {
  backdrop-filter: blur(2px) saturate(1.3);
}

.liquid-glass--window::before {
  background: rgba(232, 237, 248, 0.96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.menu-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 18, 32, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 22px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(14px) saturate(1.12);
  font-size: 12px;
  letter-spacing: 0;
}

.menu-bar > * {
  position: relative;
  z-index: 1;
}

.menu-bar nav {
  display: flex;
  gap: 16px;
  margin-right: auto;
  margin-left: 22px;
}

.menu-bar button,
.brand-button {
  background: transparent;
  border-radius: 7px;
  padding: 4px 8px;
}

.menu-bar button:hover,
.brand-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.brand-button {
  font-weight: 750;
}

.lang-toggle {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

.menu-bar-trail {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-switcher {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  border: none;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  outline: 1px solid rgba(255, 255, 255, 0.18);
  padding: 2px;
  gap: 0;
}

.theme-switcher input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.theme-switcher label {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.56);
  transition: color 0.2s;
}

.theme-switcher__thumb {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 22px;
  height: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

body.theme-dark .theme-switcher__thumb {
  transform: translateX(22px);
}

/* Active icon in theme switcher (nth-of-type for both desktop & mobile) */
body:not(.theme-dark) .theme-switcher label:nth-of-type(1),
body.theme-dark .theme-switcher label:nth-of-type(2) {
  color: rgba(255, 255, 255, 0.92);
}

/* ─── Night wallpaper layers — same parallax as day, dark photo ── */

/* Drift: override image, start invisible. Inherits animation + size from base */
.wallpaper__drift--night,
.mobile-wallpaper__drift--night {
  background-image:
    linear-gradient(rgba(0, 0, 8, 0.06), rgba(0, 0, 8, 0.22)),
    url("./assets/wallpaper_dark.png");
  opacity: 0;
}

/* Blur: override image, start invisible. Inherits mix-blend + filter from base */
.wallpaper__blur--night,
.mobile-wallpaper__blur--night {
  background-image: url("./assets/wallpaper_dark.png");
  opacity: 0;
}

/* Day layers fade out */
body.theme-dark .wallpaper__drift:not(.wallpaper__drift--night),
body.theme-dark .mobile-wallpaper__drift:not(.mobile-wallpaper__drift--night) {
  opacity: 0;
}

body.theme-dark .wallpaper__blur:not(.wallpaper__blur--night),
body.theme-dark .mobile-wallpaper__blur:not(.mobile-wallpaper__blur--night) {
  opacity: 0;
}

/* Night layers fade in */
body.theme-dark .wallpaper__drift--night,
body.theme-dark .mobile-wallpaper__drift--night {
  opacity: 1;
}

body.theme-dark .wallpaper__blur--night,
body.theme-dark .mobile-wallpaper__blur--night {
  opacity: 0.18;
}

/* ─── Dark: menu-bar ──────────────────────────────────────────── */
body.theme-dark .menu-bar {
  background: rgba(4, 6, 16, 0.52);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* ─── Dark: windows ──────────────────────────────────────────── */
body.theme-dark .os-window {
  background: rgba(16, 20, 32, 0.97);
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
  transition: background 0.7s ease, color 0.5s ease;
}

body.theme-dark .liquid-glass--window::before {
  background: rgba(14, 18, 30, 0.96);
}

body.theme-dark .window-titlebar {
  background: rgba(10, 13, 22, 0.90);
  color: rgba(255, 255, 255, 0.68);
  border-bottom-color: rgba(255, 255, 255, 0.07);
  transition: background 0.7s ease;
}

/* ─── Dark: glass cards inside windows ───────────────────────── */
body.theme-dark .profile-card,
body.theme-dark .copy-stack,
body.theme-dark .skills-view article,
body.theme-dark .notes-view article,
body.theme-dark .timeline-item,
body.theme-dark .contact-view,
body.theme-dark .resume-view,
body.theme-dark .archive-view {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.14),
    0 16px 40px rgba(0, 0, 0, 0.22);
}

body.theme-dark .profile-card p,
body.theme-dark .copy-stack p,
body.theme-dark .project-card p,
body.theme-dark .timeline-item p,
body.theme-dark .skills-view p,
body.theme-dark .notes-view p,
body.theme-dark .section-head p,
body.theme-dark .contact-view p,
body.theme-dark .resume-view p,
body.theme-dark .archive-view p {
  color: rgba(255, 255, 255, 0.60);
}

/* ─── Dark: project cards ─────────────────────────────────────── */
body.theme-dark .project-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.10);
}

body.theme-dark .project-card small {
  color: rgba(255, 255, 255, 0.48);
}

/* ─── Dark: timeline ─────────────────────────────────────────── */
body.theme-dark .timeline-item time {
  color: #60a5fa;
}

/* ─── Dark: messages ─────────────────────────────────────────── */
body.theme-dark .messages-view {
  background: #111520;
  color: rgba(255, 255, 255, 0.88);
}

body.theme-dark .messages-list {
  background: rgba(7, 9, 18, 0.90);
  border-right-color: rgba(255, 255, 255, 0.07);
}

body.theme-dark .message-thread {
  color: rgba(255, 255, 255, 0.88);
}

body.theme-dark .message-thread span {
  color: rgba(255, 255, 255, 0.48);
}

body.theme-dark .message-thread time {
  color: rgba(255, 255, 255, 0.38);
}

body.theme-dark .message-thread:hover,
body.theme-dark .message-thread.is-active {
  background: rgba(10, 132, 255, 0.18);
}

body.theme-dark .messages-chat {
  background: linear-gradient(180deg, #161928, #111420);
}

body.theme-dark .messages-chat header {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

body.theme-dark .messages-chat header span {
  color: rgba(255, 255, 255, 0.48);
}

body.theme-dark .bubble--incoming {
  background: #252a3e;
  color: rgba(255, 255, 255, 0.88);
}

body.theme-dark .messages-chat footer {
  border-top-color: rgba(255, 255, 255, 0.07);
}

body.theme-dark .messages-chat input {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.82);
}

/* ─── Dark: mail ──────────────────────────────────────────────── */
body.theme-dark .mail-view {
  background: linear-gradient(180deg, #171b28, #121520);
}

body.theme-dark .mail-compose-head {
  background: rgba(255, 255, 255, 0.04);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

body.theme-dark .mail-compose-head h1 {
  color: rgba(255, 255, 255, 0.88);
}

body.theme-dark .mail-compose-head span,
body.theme-dark .mail-compose__actions span {
  color: rgba(255, 255, 255, 0.48);
}

body.theme-dark .mail-compose label {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

body.theme-dark .mail-compose label span {
  color: rgba(255, 255, 255, 0.46);
}

body.theme-dark .mail-compose input,
body.theme-dark .mail-compose textarea {
  color: rgba(255, 255, 255, 0.84);
}

/* ─── Dark: phone view ────────────────────────────────────────── */
body.theme-dark .phone-view__hero,
body.theme-dark .phone-view__list,
body.theme-dark .phone-view__actions {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
}

body.theme-dark .phone-view__hero p {
  color: rgba(255, 255, 255, 0.58);
}

body.theme-dark .phone-view__list h2 {
  color: rgba(255, 255, 255, 0.46);
}

body.theme-dark .phone-view__list strong {
  color: rgba(255, 255, 255, 0.88);
}

body.theme-dark .phone-view__list span,
body.theme-dark .phone-view__list small {
  color: rgba(255, 255, 255, 0.46);
}

body.theme-dark .phone-view__list article {
  border-top-color: rgba(255, 255, 255, 0.07);
}

body.theme-dark .phone-view__actions a {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.10);
}

/* ─── Dark: contact/resume buttons ───────────────────────────── */
body.theme-dark .contact-actions a,
body.theme-dark .primary-button {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

/* ─── Dark: desktop card bar ─────────────────────────────────── */
body.theme-dark .desktop-card__bar {
  background: rgba(8, 11, 22, 0.72);
  border-color: rgba(255, 255, 255, 0.11);
}

/* ─── Dark: mobile app screen ────────────────────────────────── */
body.theme-dark .mobile-app-screen {
  background: #0f1320;
  color: rgba(255, 255, 255, 0.88);
}

body.theme-dark .mobile-app-head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .mobile-app-head button {
  color: #60a5fa;
}

.desktop-canvas {
  position: absolute;
  inset: 30px 0 86px 0;
  z-index: 4;
}

.desktop-icon {
  --lift: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --parallax-x: 0px;
  --parallax-y: 0px;
  position: absolute;
  z-index: 10;
  display: grid;
  justify-items: center;
  gap: 7px;
  width: 90px;
  min-height: 98px;
  padding: 6px 4px;
  border-radius: 10px;
  background: transparent;
  user-select: none;
  touch-action: none;
  transform: perspective(700px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift));
  transform-style: preserve-3d;
  transition:
    transform 220ms cubic-bezier(0.175, 0.885, 0.32, 1.45),
    filter 220ms ease;
}

.desktop-icon.is-pushed,
.desktop-card.is-pushed {
  transition:
    left 360ms cubic-bezier(0.34, 1.45, 0.64, 1),
    top 360ms cubic-bezier(0.34, 1.45, 0.64, 1),
    transform 220ms cubic-bezier(0.175, 0.885, 0.32, 1.45),
    filter 220ms ease;
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
  outline: none;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.22));
  --lift: -2px;
}

.desktop-icon:hover .app-icon--desktop,
.desktop-icon:focus-visible .app-icon--desktop {
  border-radius: 22px;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 24px) scale(0.96);
  box-shadow:
    inset 2px 2px 1px rgba(255, 255, 255, 0.5),
    inset -1px -1px 1px rgba(255, 255, 255, 0.28),
    0 18px 34px rgba(0, 0, 0, 0.3);
}

.desktop-icon:hover .app-label,
.desktop-icon:focus-visible .app-label {
  transform: translateY(-2px);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.72),
    0 0 14px rgba(255, 255, 255, 0.3);
}

.desktop-icon.is-dragging {
  z-index: 220;
  transform: scale(1.04);
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.34));
}

.app-label {
  max-width: 96px;
  color: white;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  transition:
    transform 220ms cubic-bezier(0.175, 0.885, 0.32, 1.45),
    text-shadow 220ms ease;
}

.app-icon-holder {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: max-content;
  height: max-content;
}

.app-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  z-index: 8;
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: #ff453a;
  color: white;
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.app-icon {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 15px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.86), transparent 18%),
    linear-gradient(140deg, color-mix(in srgb, var(--accent), white 28%), var(--accent) 48%, rgba(6, 10, 20, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 14px 30px rgba(0, 0, 0, 0.25);
  transition:
    border-radius 260ms cubic-bezier(0.175, 0.885, 0.32, 1.45),
    box-shadow 260ms ease,
    transform 260ms cubic-bezier(0.175, 0.885, 0.32, 1.45);
}

.app-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.42), transparent 42%);
}

.app-icon__glyph {
  position: relative;
  color: rgba(255, 255, 255, 0.96);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.36);
}

.app-icon__image {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transform: translateZ(0);
}

.app-icon--image {
  padding: 3px;
  background: transparent;
  border-color: transparent;
}

.app-icon--image::before {
  display: none;
}

.app-icon--desktop {
  width: 72px;
  height: 72px;
  border-radius: 19px;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 18px);
}

.app-icon--desktop .app-icon__glyph {
  font-size: 30px;
}

.app-icon--large,
.app-icon--mobile {
  width: 60px;
  height: 60px;
  border-radius: 16px;
}

.desktop-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --parallax-x: 0px;
  --parallax-y: 0px;
  position: absolute;
  z-index: 10;
  width: 244px;
  height: 198px;
  border-radius: 18px;
  color: white;
  cursor: grab;
  perspective: 800px;
  touch-action: none;
  transform: perspective(800px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition:
    transform 620ms cubic-bezier(0.445, 0.05, 0.55, 0.95),
    filter 260ms ease;
}

.desktop-card:hover,
.desktop-card:focus-within {
  z-index: 14;
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.34));
  transition:
    transform 600ms cubic-bezier(0.23, 1, 0.32, 1),
    filter 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

.desktop-card.is-dragging {
  z-index: 210;
  cursor: grabbing;
  filter: drop-shadow(0 30px 44px rgba(0, 0, 0, 0.38));
  transform: scale(1.02);
}

.desktop-card__bar {
  position: absolute;
  top: 7px;
  left: 8px;
  right: 8px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 27px;
  padding: 0 9px;
  background: rgba(215, 222, 238, 0.46);
  backdrop-filter: blur(20px) saturate(1.4) brightness(1.06);
  -webkit-backdrop-filter: blur(20px) saturate(1.4) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: translateZ(40px);
}

.desktop-card__bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.36);
}

.traffic--compact {
  gap: 6px;
}

.traffic--compact .traffic-dot {
  width: 10px;
  height: 10px;
  font-size: 8px;
}

.desktop-card__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: inherit;
  background:
    radial-gradient(circle at 30% 18%, color-mix(in srgb, var(--card-accent), white 44%), transparent 24%),
    #1f2937;
  box-shadow:
    rgba(0, 0, 0, 0.48) 0 24px 54px 0,
    rgba(255, 255, 255, 0.18) 0 0 36px 4px,
    inset rgba(20, 24, 34, 0.72) 0 0 0 4px,
    inset rgba(255, 255, 255, 0.48) 0 0 0 5px;
  transform-style: preserve-3d;
  transition:
    box-shadow 800ms cubic-bezier(0.445, 0.05, 0.55, 0.95),
    border-color 260ms ease;
}

.desktop-card:hover .desktop-card__stage {
  border-color: rgba(255, 255, 255, 0.68);
  box-shadow:
    rgba(255, 255, 255, 0.2) 0 0 40px 5px,
    rgba(255, 255, 255, 0.82) 0 0 0 1px,
    rgba(0, 0, 0, 0.58) 0 30px 60px 0,
    inset rgba(20, 24, 34, 0.74) 0 0 0 4px,
    inset rgba(255, 255, 255, 0.78) 0 0 0 5px;
  transition:
    box-shadow 2s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

.desktop-card__bg {
  position: absolute;
  inset: -24px;
  background:
    linear-gradient(145deg, rgba(6, 10, 20, 0.08), rgba(6, 10, 20, 0.64)),
    var(--card-image);
  background-position: center;
  background-size: cover;
  opacity: 0.54;
  pointer-events: none;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0);
  transition:
    transform 620ms cubic-bezier(0.445, 0.05, 0.55, 0.95),
    opacity 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.desktop-card:hover .desktop-card__bg {
  opacity: 0.86;
  transition:
    transform 600ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 5s cubic-bezier(0.23, 1, 0.32, 1);
}

.desktop-card__info {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 20px;
  transform: translateY(34%) translateZ(42px);
  transition: transform 600ms 900ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.desktop-card:hover .desktop-card__info {
  transform: translateY(0) translateZ(42px);
  transition: transform 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

.desktop-card__info::after {
  content: "";
  position: absolute;
  inset: -34px 0 0;
  z-index: -1;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0;
  transform: translateY(100%);
  transition: 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.desktop-card:hover .desktop-card__info::after {
  opacity: 1;
  transform: translateY(0);
  transition: 5s cubic-bezier(0.23, 1, 0.32, 1);
}

.desktop-card__info h2 {
  margin: 0;
  font-size: 34px;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: rgba(0, 0, 0, 0.52) 0 10px 10px;
}

.desktop-card__info p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.42;
  opacity: 0;
  text-shadow: rgba(0, 0, 0, 0.82) 0 2px 3px;
  transition: opacity 600ms 900ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.desktop-card:hover .desktop-card__info p {
  opacity: 1;
  transition: opacity 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

.app-icon--dock {
  width: 75px;
  height: 75px;
  border-radius: 21px;
  transition: all 400ms cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

.dock {
  position: absolute;
  right: 50%;
  bottom: 14px;
  z-index: 170;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 32px);
  min-height: auto;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-top-color: rgba(255, 255, 255, 0.42);
  border-radius: 2rem;
  background: transparent;
  box-shadow:
    0 6px 6px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(0, 0, 0, 0.1);
  transform: translateX(50%);
  overflow: visible;
  transition: all 400ms cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

.dock.liquid-glass::before {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px) saturate(1.55) brightness(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(1.55) brightness(1.06);
  filter: none;
}

.dock.liquid-glass::after {
  box-shadow:
    inset 2px 2px 1px 0 rgba(255, 255, 255, 0.5),
    inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5);
}

.dock:hover {
  padding: 0.8rem;
  border-radius: 2.5rem;
}

.dock-list {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dock-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 75px;
  height: 75px;
}

.dock-item.hover {
  z-index: 12;
  width: 75px;
}

.dock-item.sibling-close {
  width: 75px;
}

.dock-item.sibling-far {
  width: 75px;
}

.dock-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 21px;
  background: transparent;
  outline: none;
}

.dock-button:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.52);
}

.dock-button::before {
  display: none;
}

.dock-item.hover .dock-button::before {
  display: none;
}

.dock-item.hover .app-icon--dock,
.dock-item:hover .app-icon--dock,
.dock-item:focus-within .app-icon--dock {
  width: 75px;
  height: 75px;
  border-radius: 21px;
  transform: scale(0.95);
  transform-origin: center center;
}

.dock-item.sibling-close .app-icon--dock {
  width: 75px;
  height: 75px;
  border-radius: 21px;
  transform: none;
}

.dock-item.sibling-far .app-icon--dock {
  width: 75px;
  height: 75px;
  border-radius: 21px;
  transform: none;
}

.dock-dot {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 99px;
  background: white;
  transform: translateX(-50%);
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-item.hover .dock-dot {
  transform: translate(-50%, 2px);
}

.dock-item--minimized {
  opacity: 0.72;
}

.dock-separator {
  width: 1px;
  height: 40px;
  margin: 0 8px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.38);
}

.dock-tooltip {
  display: none;
}

.dock-item.hover .dock-tooltip,
.dock-item:hover .dock-tooltip,
.dock-item:focus-within .dock-tooltip {
  display: none;
}

.music-widget {
  position: absolute;
  z-index: 40;
  display: flex;
  gap: 13px;
  align-items: center;
  width: 356px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.92);
  touch-action: none;
}

.music-widget > * {
  position: relative;
  z-index: 1;
}

.music-widget.is-dragging {
  z-index: 230;
  transform: scale(1.015);
}

.music-widget__drag {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: grab;
}

.music-widget.is-dragging .music-widget__drag {
  cursor: grabbing;
}

.music-art {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  pointer-events: none;
  user-select: none;
}

.music-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-cover-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.52), transparent 18%),
    linear-gradient(135deg, #fc3c44 0%, #7c3aed 54%, #15151c 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 24px;
  font-weight: 900;
}

.music-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.music-meta {
  min-width: 0;
}

.music-meta strong,
.music-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-meta strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.music-meta span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
}

.music-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.music-mini-step {
  flex-shrink: 0;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.music-mini-step:hover {
  background: rgba(255, 255, 255, 0.16);
}

.music-play {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  transition: background 140ms ease, transform 140ms ease;
}

.music-play:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.24);
}

.music-play__icon {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid rgba(255, 255, 255, 0.94);
}

.music-play__icon.is-playing {
  width: 10px;
  height: 12px;
  margin-left: 0;
  border: 0;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.94) 0 3px, transparent 3px 7px, rgba(255, 255, 255, 0.94) 7px 10px);
}

.music-volume {
  flex: 1;
  display: flex;
  align-items: center;
}

.music-volume input {
  flex: 1;
  accent-color: rgba(255, 255, 255, 0.85);
  height: 3px;
  border-radius: 99px;
}

.window-layer {
  position: absolute;
  inset: 30px 0 0 0;
  z-index: 80;
  pointer-events: none;
}

.os-window {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  background: rgba(232, 237, 248, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  color: #121826;
  pointer-events: auto;
}

.os-window.is-dragging {
  will-change: left, top;
  contain: layout style;
}

.os-window:hover {
  box-shadow:
    0 8px 8px rgba(0, 0, 0, 0.14),
    0 36px 110px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(255, 255, 255, 0.06);
}

.os-window.is-focused {
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.28);
}

.os-window > * {
  position: relative;
  z-index: 1;
}

.window-titlebar {
  display: grid;
  grid-template-columns: 82px 1fr 82px;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(215, 222, 238, 0.82);
  backdrop-filter: blur(20px) saturate(1.4) brightness(1.06);
  -webkit-backdrop-filter: blur(20px) saturate(1.4) brightness(1.06);
  color: rgba(15, 23, 42, 0.74);
  font-size: 12px;
  font-weight: 720;
  text-align: center;
  user-select: none;
  touch-action: none;
}

.traffic {
  display: flex;
  gap: 8px;
}

.traffic-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  color: rgba(29, 37, 55, 0.78);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  padding: 0;
  text-align: center;
}

.traffic-dot::before {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  transform: translateY(-0.25px);
}

.traffic-dot--red {
  background: #ff5f57;
}

.traffic-dot--red::before {
  content: "×";
}

.traffic-dot--yellow {
  background: #ffbd2e;
}

.traffic-dot--yellow::before {
  content: "−";
}

.traffic-dot--green {
  background: #28c840;
}

.traffic-dot--green::before {
  content: "↗";
  font-size: 8px;
  transform: translateY(-0.1px);
}

.window-content {
  flex: 1;
  overflow: auto;
  padding: 22px;
  background: transparent;
}

.launcher {
  position: absolute;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 38px;
  background: rgba(5, 8, 16, 0.44);
  backdrop-filter: blur(18px);
}

.launcher-panel {
  width: min(880px, calc(100vw - 48px));
  max-height: min(720px, calc(100vh - 80px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  background: rgba(12, 18, 32, 0.78);
  box-shadow: var(--shadow);
}

.launcher-head,
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.launcher h2,
.section-head h1,
.contact-view h1,
.resume-view h1,
.archive-view h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0;
}

.ghost-button {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.launcher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.launcher-app {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  text-align: left;
}

.launcher-app:hover {
  background: rgba(255, 255, 255, 0.14);
}

.launcher-app small {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.25;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 20px;
}

.profile-card,
.copy-stack,
.skills-view article,
.notes-view article,
.timeline-item,
.contact-view,
.resume-view,
.archive-view {
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.45),
    0 16px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px) saturate(1.35);
}

.profile-card {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 360px;
  padding: 24px;
  text-align: center;
}

.avatar-orbit {
  display: grid;
  width: 140px;
  height: 140px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 38px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.85), transparent 22%),
    linear-gradient(140deg, #60a5fa, #a78bfa 52%, #0f172a);
  color: white;
  font-size: 58px;
  font-weight: 850;
}

.profile-card h1,
.copy-stack h2,
.project-card h2,
.timeline-item h2,
.skills-view h2,
.notes-view h2 {
  margin: 0 0 8px;
  letter-spacing: 0;
}

.profile-card p,
.copy-stack p,
.project-card p,
.timeline-item p,
.skills-view p,
.notes-view p,
.section-head p,
.contact-view p,
.resume-view p,
.archive-view p {
  margin: 0;
  color: rgba(15, 23, 42, 0.66);
  line-height: 1.55;
}

.messages-view,
.mail-view {
  height: 100%;
  min-height: 420px;
  margin: -22px;
  overflow: hidden;
  color: #111827;
}

.messages-view {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  background: #f4f5f8;
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  overflow: auto;
  border-right: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(246, 247, 251, 0.76);
  backdrop-filter: blur(22px);
}

.message-thread {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 68px;
  padding: 11px 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #111827;
  text-align: left;
}

.message-thread:hover,
.message-thread.is-active {
  background: rgba(10, 132, 255, 0.14);
}

.message-thread strong {
  padding-right: 52px;
  font-size: 14px;
}

.message-thread span {
  overflow: hidden;
  color: rgba(17, 24, 39, 0.62);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-thread time {
  position: absolute;
  top: 12px;
  right: 12px;
  color: rgba(17, 24, 39, 0.44);
  font-size: 11px;
}

.messages-chat {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  background: linear-gradient(180deg, #ffffff, #f7f8fb);
}

.messages-chat header {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: center;
}

.messages-chat header strong {
  font-size: 15px;
}

.messages-chat header span {
  color: rgba(17, 24, 39, 0.5);
  font-size: 12px;
}

.message-bubbles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  overflow: auto;
}

.bubble {
  max-width: min(76%, 420px);
  margin: 0;
  padding: 10px 13px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.42;
}

.bubble--incoming {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: #e9ebf0;
  color: #111827;
}

.bubble--outgoing {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: #0a84ff;
  color: white;
}

.messages-chat footer {
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.messages-chat input {
  width: 100%;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  background: white;
  color: rgba(17, 24, 39, 0.48);
  font: inherit;
}

.mail-view {
  display: grid;
  grid-template-rows: auto 1fr;
  background: linear-gradient(180deg, #f7f8fc, #eceff6);
}

.mail-compose-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(20px);
}

.mail-compose-head h1 {
  margin: 0;
  font-size: 22px;
}

.mail-compose-head span {
  color: rgba(17, 24, 39, 0.5);
  font-size: 12px;
  font-weight: 720;
}

.mail-compose {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 0;
  padding: 0 22px 22px;
}

.mail-compose label {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
}

.mail-compose label span {
  color: rgba(17, 24, 39, 0.48);
  font-size: 13px;
  font-weight: 700;
}

.mail-compose input,
.mail-compose textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font: inherit;
}

.mail-compose__body {
  grid-template-columns: 1fr;
  align-items: start;
  padding-top: 15px;
}

.mail-compose__body span {
  margin-bottom: 8px;
}

.mail-compose textarea {
  min-height: 220px;
  resize: none;
  line-height: 1.55;
}

.mail-compose__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
}

.mail-compose__actions span {
  color: rgba(17, 24, 39, 0.5);
  font-size: 12px;
}

.phone-view {
  display: grid;
  gap: 16px;
  min-height: 100%;
}

.phone-view__hero,
.phone-view__list,
.phone-view__actions {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.phone-view__hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.phone-view__hero h1 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1;
}

.phone-view__hero p {
  margin: 0;
  color: rgba(17, 24, 39, 0.58);
  line-height: 1.42;
}

.phone-view__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.phone-view__actions a {
  display: grid;
  min-height: 46px;
  place-items: center;
  background: rgba(52, 199, 89, 0.12);
  color: #15803d;
  font-weight: 760;
}

.phone-view__list {
  overflow: hidden;
}

.phone-view__list h2 {
  margin: 0;
  padding: 14px 16px 8px;
  color: rgba(17, 24, 39, 0.48);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-view__list article {
  display: grid;
  gap: 3px;
  padding: 13px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.phone-view__list span,
.phone-view__list small {
  color: rgba(17, 24, 39, 0.48);
  font-size: 12px;
}

.phone-view__list strong {
  color: #111827;
}

.copy-stack {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 28px;
}

.projects-view,
.skills-view,
.notes-view,
.timeline-view {
  display: grid;
  gap: 14px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: white;
}

.project-card > div:last-child {
  padding: 16px;
}

.project-card small {
  color: rgba(15, 23, 42, 0.52);
  font-size: 12px;
  font-weight: 760;
}

.project-art {
  display: grid;
  height: 154px;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.78), transparent 22%),
    linear-gradient(135deg, var(--c1), var(--c2));
  color: white;
  font-size: 38px;
  font-weight: 900;
}

.timeline-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  padding: 18px;
}

.timeline-item time {
  color: #2563eb;
  font-weight: 850;
}

.skills-view {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skills-view article,
.notes-view article,
.contact-view,
.resume-view,
.archive-view {
  padding: 20px;
}

.terminal-view {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
  min-height: 320px;
  margin: -22px;
  padding: 18px;
  background: #05070d;
  color: #d1fae5;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.terminal-lines {
  overflow: auto;
}

.terminal-lines p {
  margin: 0 0 8px;
  white-space: pre-wrap;
}

.terminal-command {
  color: #93c5fd;
}

.terminal-system {
  color: #d1fae5;
}

.terminal-form {
  display: flex;
  gap: 8px;
  align-items: center;
  border-top: 1px solid rgba(209, 250, 229, 0.14);
  padding-top: 12px;
}

.terminal-form span {
  color: #86efac;
}

.terminal-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #ffffff;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contact-actions a,
.primary-button {
  padding: 10px 14px;
  border-radius: 11px;
  background: #111827;
  color: white;
}

.resume-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mobile-mode {
  display: none;
}

.mobile-home {
  position: relative;
  z-index: 2;
  display: grid;
  height: 100%;
  grid-template-rows: auto auto 1fr auto;
  padding: max(22px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
}

.mobile-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 4px 18px;
}

.mobile-intro__text {
  display: flex;
  flex-direction: column;
}

.mobile-intro__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.lang-toggle--mobile {
  flex-shrink: 0;
}

.mobile-intro p {
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
}

.mobile-intro h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.mobile-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-bottom: 16px;
}

.mobile-widget {
  --parallax-x: 0px;
  --parallax-y: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 22px;
  overflow: hidden;
  touch-action: none;
  transform: perspective(600px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 380ms cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  background:
    radial-gradient(circle at 30% 18%, color-mix(in srgb, var(--card-accent, #5eead4), white 44%), transparent 24%),
    #1a2030;
}

.mobile-widget__bg {
  position: absolute;
  inset: -22px;
  background: var(--card-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.52;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0);
  transition: transform 380ms cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.mobile-widget__info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.62) 100%);
  color: white;
  transform: translateZ(20px);
}

.mobile-widget__kicker {
  display: block;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 3px;
}

.mobile-widget__title {
  display: block;
  font-size: 17px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.mobile-widget__text {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 260ms ease,
    transform 260ms cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-widget:hover .mobile-widget__text,
.mobile-widget:active .mobile-widget__text {
  opacity: 1;
  transform: none;
}

.mobile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 24px 12px;
  padding-top: 4px;
}

.mobile-app-icon {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  background: transparent;
}

.mobile-app-icon .app-label {
  max-width: 78px;
  font-size: 12px;
  font-weight: 560;
}

.mobile-dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(26px);
}

.mobile-dock button {
  display: grid;
  place-items: center;
  background: transparent;
}

.mobile-dock .app-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

.mobile-app-screen {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #f6f8fc;
  color: #101827;
  animation: mobile-in 220ms ease both;
}

.mobile-app-head {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  padding: max(14px, env(safe-area-inset-top)) 14px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.mobile-app-head button {
  justify-self: start;
  padding: 8px 0;
  background: transparent;
  color: #2563eb;
  font-weight: 720;
}

.mobile-app-head h2 {
  margin: 0;
  font-size: 16px;
  text-align: center;
}

.mobile-app-content {
  overflow: auto;
  padding: 16px;
}

.mobile-app-content .about-layout,
.mobile-app-content .project-grid,
.mobile-app-content .skills-view {
  grid-template-columns: 1fr;
}

.mobile-app-content .section-head {
  display: block;
}

.mobile-app-content .section-head h1 {
  margin-bottom: 8px;
}

.mobile-app-content .profile-card {
  min-height: 260px;
}

.mobile-app-content .window-content,
.mobile-app-content .terminal-view {
  margin: 0;
}

.mobile-app-content .messages-view,
.mobile-app-content .mail-view {
  height: calc(100% + 32px);
  min-height: 0;
  margin: -16px;
}

.mobile-app-content .messages-view {
  grid-template-columns: 1fr;
}

.mobile-app-content .messages-list {
  display: none;
}

.mobile-app-content .messages-chat header {
  padding-top: 16px;
}

.mobile-app-content .bubble {
  max-width: 86%;
}

.mobile-app-content .mail-compose-head {
  padding: 16px;
}

.mobile-app-content .mail-compose {
  padding: 0 16px 16px;
}

.mobile-app-content .mail-compose label {
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 10px 0;
}

.mobile-app-content .mail-compose textarea {
  min-height: 260px;
}

@keyframes mobile-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 779px) {
  .desktop-mode {
    display: none;
  }

  .mobile-mode {
    display: block;
  }
}

@media (max-width: 1020px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .about-layout,
  .skills-view {
    grid-template-columns: 1fr;
  }

  .launcher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .mobile-grid {
    gap: 20px 8px;
  }

  .app-icon--mobile {
    width: 56px;
    height: 56px;
    border-radius: 15px;
  }

  .mobile-dock .app-icon {
    width: 56px;
    height: 56px;
  }
}

@keyframes window-open {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes window-close {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
}

@keyframes window-minimize {
  from {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(58px) scale(0.86);
    filter: blur(2px);
  }
}

.os-window.is-opening {
  animation: window-open 220ms cubic-bezier(0.34, 1.4, 0.64, 1) both;
  transform-origin: center top;
}

.os-window.is-closing {
  animation: window-close 160ms ease-in both;
  pointer-events: none;
}

.os-window.is-minimizing {
  animation: window-minimize 220ms cubic-bezier(0.5, 0, 0.75, 0) both;
  pointer-events: none;
}

.music-app {
  position: relative;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) minmax(210px, 27%);
  flex: 1;
  min-height: 0;
  height: auto;
  border-radius: 0 0 17px 17px;
  overflow: hidden;
  background:
    radial-gradient(circle at 42% 0%, rgba(252, 60, 68, 0.14), transparent 32%),
    linear-gradient(135deg, #111116 0%, #09090d 48%, #11131a 100%);
  color: white;
}

.os-window--music {
  background: #0e0e10;
}

.os-window--music .window-content {
  display: flex;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #0e0e10;
  container-type: inline-size;
}

.os-window--music .window-titlebar {
  background: rgba(18, 18, 24, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}

.music-app__sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 12px;
  background: rgba(0, 0, 0, 0.34);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  overflow: auto;
}

.music-app__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 7px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.music-app__brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #fc3c44, #7c3aed);
  font-weight: 900;
}

.music-app__brand strong,
.music-app__brand span {
  display: block;
}

.music-app__brand strong {
  font-size: 13px;
}

.music-app__brand span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

.music-app__sidebar h3 {
  margin: 0 0 8px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
}

.music-app__sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.music-app__sidebar li {
  padding: 0;
}

.music-app__sidebar li button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.music-app__sidebar li button small {
  color: rgba(255, 255, 255, 0.34);
  font-size: 11px;
}

.music-app__sidebar li button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.music-app__sidebar li button.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-weight: 600;
}

.music-app__main {
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
  min-width: 0;
}

.music-app__folder-note {
  margin-top: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.music-app__folder-note span,
.music-app__folder-note code {
  display: block;
}

.music-app__folder-note span {
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.music-app__folder-note code {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  white-space: normal;
}

.music-app__hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 22px 24px 18px;
  background:
    linear-gradient(180deg, rgba(252, 60, 68, 0.14) 0%, transparent 82%),
    rgba(255, 255, 255, 0.02);
}

.music-app__art {
  width: 112px;
  height: 112px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.54),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.music-app__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-app__art .music-cover-fallback {
  font-size: 48px;
}

.music-app__track-info {
  min-width: 0;
}

.music-app__track-info > span {
  display: block;
  margin-bottom: 8px;
  color: #fc3c44;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.music-app__track-info h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 820;
  color: white;
  letter-spacing: 0;
  line-height: 1;
}

.music-app__track-info p {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.46);
}

.music-app__controls {
  display: grid;
  gap: 10px;
  align-items: center;
  min-width: 0;
  width: min(280px, 100%);
  margin-top: 16px;
}

.music-app__transport {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.music-skip {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.78);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.music-skip:hover {
  background: rgba(255, 255, 255, 0.12);
}

.music-app__controls .music-play {
  width: 42px;
  height: 42px;
}

.music-app__controls .music-play__icon {
  border-top-width: 8px;
  border-bottom-width: 8px;
  border-left-width: 13px;
}

.music-app__controls .music-play__icon.is-playing {
  width: 13px;
  height: 16px;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.94) 0 4px, transparent 4px 9px, rgba(255, 255, 255, 0.94) 9px 13px);
}

.music-app__volume {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(280px, 100%);
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  text-transform: uppercase;
}

.music-app__volume input {
  flex: 1;
  accent-color: rgba(255, 255, 255, 0.72);
}

.music-app__tracks {
  overflow: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 18px 18px;
}

.music-app__library-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px 16px;
}

.music-app__library-head h3,
.music-app__library-head p {
  margin: 0;
}

.music-app__library-head h3 {
  font-size: 15px;
}

.music-app__library-head p {
  margin-top: 4px;
  max-width: 430px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  line-height: 1.35;
}

.music-app__library-head code {
  color: rgba(255, 255, 255, 0.58);
  font-size: inherit;
}

.music-app__library-head > span {
  align-self: start;
  padding: 5px 8px;
  border-radius: 99px;
  background: rgba(252, 60, 68, 0.12);
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.music-genre-block {
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.music-genre-block header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.035);
}

.music-genre-block h4,
.music-genre-block p {
  margin: 0;
}

.music-genre-block h4 {
  font-size: 14px;
}

.music-genre-block p,
.music-genre-block code {
  color: rgba(255, 255, 255, 0.36);
  font-size: 11px;
}

.music-genre-block code {
  align-self: center;
  white-space: nowrap;
}

.music-track-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1.3fr) minmax(0, 1fr) 72px 52px;
  align-items: center;
  width: 100%;
  padding: 7px 16px;
  border: 0;
  background: transparent;
  gap: 8px;
  font-size: 13px;
  text-align: left;
  color: rgba(255, 255, 255, 0.74);
  cursor: pointer;
}

.music-track-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.music-track-row.is-playing {
  color: #fc3c44;
}

.music-track-row.is-muted {
  cursor: default;
}

.music-track-num {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  text-align: center;
}

.music-track-row.is-playing .music-track-num {
  color: #fc3c44;
}

.music-track-artist {
  color: rgba(255, 255, 255, 0.4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-track-status {
  justify-self: start;
  padding: 3px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.music-track-time {
  text-align: right;
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

.music-app__story {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: auto;
  padding: 24px 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at 40% 8%, rgba(124, 58, 237, 0.28), transparent 32%),
    rgba(255, 255, 255, 0.035);
  transition:
    transform 780ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 520ms ease,
    max-height 780ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 780ms cubic-bezier(0.22, 1, 0.36, 1);
}

.music-story-close {
  align-self: flex-end;
  margin: -8px -4px 6px 0;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 760;
  cursor: pointer;
}

.music-story-tab {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 8;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(252, 60, 68, 0.18);
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 720ms ease 260ms,
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1) 260ms,
    background 160ms ease;
  cursor: pointer;
}

.music-story-tab:hover {
  background: rgba(252, 60, 68, 0.28);
}

.music-app.is-story-collapsed .music-story-tab {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.music-app__story > span {
  color: #fc3c44;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.music-app__story h3 {
  margin: 12px 0 14px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1;
  letter-spacing: 0;
}

.music-app__story p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.5;
}

.music-app__story ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.music-app__story li {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.music-app.is-story-collapsed {
  grid-template-columns: 176px minmax(0, 1fr);
}

.music-app.is-story-collapsed .music-app__story {
  position: absolute;
  left: 176px;
  right: 0;
  bottom: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

@container (max-width: 680px) {
  .music-app {
    grid-template-columns: 160px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .music-app__hero {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .music-app__art {
    width: 88px;
    height: 88px;
  }

  .music-app__track-info h2 {
    font-size: 26px;
  }

  .music-app__controls {
    grid-template-columns: 1fr;
  }

  .music-app__story {
    grid-column: 1 / -1;
    max-height: 126px;
    overflow: auto;
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 0;
  }

  .music-app.is-story-collapsed {
    grid-template-columns: 160px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .music-app.is-story-collapsed .music-app__story {
    left: 160px;
    max-height: 0;
  }

  .music-app__story h3 {
    margin-bottom: 8px;
  }

  .music-app__story p {
    margin-bottom: 8px;
  }

  .music-app__story ul {
    margin-top: 2px;
  }
}

.mobile-app-screen--music {
  background: #0e0e10;
  color: white;
}

.mobile-app-screen--music .mobile-app-head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(14, 14, 16, 0.92);
}

.mobile-app-screen--music .mobile-app-head button {
  color: #fc3c44;
}

.mobile-app-screen--music .mobile-app-content {
  padding: 0;
  background: #0e0e10;
}

.mobile-app-screen--music .music-app {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
  overflow: visible;
}

.mobile-app-screen--music .music-app__sidebar {
  display: block;
  flex: 0 0 auto;
  padding: 14px 14px 10px;
  border-right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow: visible;
}

.mobile-app-screen--music .music-app__brand {
  margin-bottom: 12px;
}

.mobile-app-screen--music .music-app__sidebar h3,
.mobile-app-screen--music .music-app__folder-note {
  display: none;
}

.mobile-app-screen--music .music-app__sidebar ul {
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.mobile-app-screen--music .music-app__sidebar li {
  flex: 0 0 auto;
}

.mobile-app-screen--music .music-app__sidebar li button {
  min-width: 86px;
  padding: 9px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-app-screen--music .music-app__sidebar li button.is-active {
  background: rgba(252, 60, 68, 0.22);
}

.mobile-app-screen--music .music-app__main {
  display: block;
  overflow: visible;
}

.mobile-app-screen--music .music-app__hero {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 16px 16px;
}

.mobile-app-screen--music .music-app__art {
  width: 82px;
  height: 82px;
  border-radius: 16px;
}

.mobile-app-screen--music .music-app__track-info h2 {
  font-size: 24px;
}

.mobile-app-screen--music .music-app__controls {
  grid-template-columns: 1fr;
  gap: 12px;
}

.mobile-app-screen--music .music-app__library-head {
  padding: 0 16px 14px;
}

.mobile-app-screen--music .music-app__library-head > span,
.mobile-app-screen--music .music-genre-block code,
.mobile-app-screen--music .music-track-artist,
.mobile-app-screen--music .music-track-status {
  display: none;
}

.mobile-app-screen--music .music-app__tracks {
  overflow: visible;
  padding: 0 14px 16px;
}

.mobile-app-screen--music .music-genre-block {
  border-radius: 18px;
}

.mobile-app-screen--music .music-track-row {
  grid-template-columns: 28px minmax(0, 1fr) 46px;
  padding: 12px 14px;
}

.mobile-app-screen--music .music-app__story {
  margin: 0 14px 18px;
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
}

.mobile-app-screen--music .music-app.is-story-collapsed .music-app__story {
  position: static;
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  opacity: 0;
  transform: translateY(22px);
}

.mobile-app-screen--music .music-story-tab {
  right: 14px;
  bottom: 14px;
  position: sticky;
  align-self: flex-end;
  margin: 0 14px 14px auto;
}

.mobile-app-screen--music .music-app__story ul {
  margin-top: 4px;
}

@media (max-width: 390px) {
  .mobile-app-screen--music .music-app__hero {
    grid-template-columns: 1fr;
  }

  .mobile-app-screen--music .music-app__controls {
    grid-template-columns: 1fr;
  }
}

/* ── Game window ─────────────────────────────────── */

.os-window--game .window-content,
.mobile-app-content .game-wrapper {
  padding: 0;
  overflow: hidden;
}

.game-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.game-iframe {
  flex: 1;
  width: 100%;
  border: none;
  display: block;
}

.game-loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(232, 237, 248, 0.97);
  transition: opacity 300ms ease, visibility 300ms ease;
}

.game-loader.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.game-loader__track {
  width: min(240px, 70%);
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.game-loader__fill {
  height: 100%;
  border-radius: 2px;
  background: #5eead4;
  animation: game-load-fill 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes game-load-fill {
  from { width: 0%; }
  to { width: 85%; }
}

.game-loader span {
  font-size: 13px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.5);
}

.game-pause-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(5, 8, 18, 0.54);
  backdrop-filter: blur(12px);
}

.game-pause-overlay[hidden] {
  display: none;
}

.game-btn {
  min-width: 200px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 780;
  cursor: pointer;
  border: none;
  transition: transform 140ms ease;
}

.game-btn:active {
  transform: scale(0.97);
}

.game-btn--resume {
  color: #fff;
  background: #22c55e;
}

.game-btn--exit {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-pause-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 15;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  display: none;
}

@media (max-width: 700px) {
  .game-pause-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.mobile-app-screen--game .mobile-app-content {
  padding: 0;
  overflow: hidden;
}

.mobile-app-screen--game .game-wrapper {
  height: 100%;
}
