:root {
  color-scheme: dark;
  --bg: #0f1117;
  --bg2: #191c24;
  --text: #f7f0e8;
  --muted: #c2b5a8;
  --line: rgba(255,255,255,0.08);
  --shadow: 0 20px 50px rgba(0,0,0,0.34);
  --cream: #f2dcc1;
  --yellow: #f2ca53;
  --blue: #95d8ff;
  --orange: #ef8d49;
  --green: #96d58f;
  --pink: #ef6485;
  --dark: #23222b;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button { font: inherit; }

.os-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px 14px;
  position: relative;
}

.ambient {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.3;
  pointer-events: none;
}
.ambient-a { top: 6%; left: -40px; background: rgba(239, 100, 133, 0.32); }
.ambient-b { right: -30px; bottom: 10%; background: rgba(149, 216, 255, 0.2); }

.device {
  width: min(100%, 430px);
  min-height: 820px;
  border-radius: 34px;
  background: #0e1117;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.device::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.statusbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 22px 8px 8px;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.desktop {
  position: relative;
  min-height: 700px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(239,100,133,0.08), transparent 24%),
    radial-gradient(circle at 80% 30%, rgba(149,216,255,0.08), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
}

.score-rail {
  position: absolute;
  left: 10px;
  top: 110px;
  bottom: 88px;
  width: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: inset 0 0 12px rgba(0,0,0,0.2);
  z-index: 1;
  pointer-events: none;
}

.score-rail-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(126,255,125,0.85), rgba(94,255,247,0.95));
  box-shadow: 0 0 18px rgba(126,255,125,0.34);
  transition: height 180ms ease;
}

.current-strip,
.icon,
.app-window,
.dock {
  box-shadow: var(--shadow);
}

.current-strip {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  min-height: 126px;
  padding: 12px 14px;
  border-radius: 18px 18px 26px 18px;
  background: linear-gradient(135deg, rgba(239, 100, 133, 0.2), rgba(239, 100, 133, 0.08));
  border: 1px solid rgba(239, 100, 133, 0.28);
  backdrop-filter: blur(10px);
  color: #f8d9e2;
  z-index: 2;
  overflow: visible;
  isolation: isolate;
}

.current-strip::after {
  content: "";
  position: absolute;
  right: 86px;
  top: -8px;
  width: 96px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 124, 175, 0.16);
  filter: blur(16px);
  pointer-events: none;
}

.current-strip-copy {
  position: relative;
  z-index: 2;
  max-width: calc(100% - 132px);
}

.current-strip-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.current-strip-title {
  display: block;
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.current-strip-text {
  margin: 8px 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(248, 217, 226, 0.8);
}

.current-strip-character {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 150px;
  max-width: none;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.24));
}

.goal {
  position: absolute;
  border-radius: 999px;
  border: 1px dashed rgba(126, 255, 125, 0.92);
  background: radial-gradient(circle, rgba(126,255,125,0.34), rgba(126,255,125,0.12) 52%, rgba(94,255,247,0.08) 70%, transparent 82%);
  box-shadow:
    inset 0 0 26px rgba(126,255,125,0.22),
    0 0 24px rgba(126,255,125,0.44),
    0 0 52px rgba(126,255,125,0.24),
    0 0 82px rgba(94,255,247,0.16);
  pointer-events: none;
  overflow: hidden;
}

.goal::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  border: 1px solid rgba(126,255,125,0.82);
  box-shadow: 0 0 18px rgba(126,255,125,0.54), inset 0 0 10px rgba(255,255,255,0.14);
}

.goal::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(126,255,125,0.2), transparent 68%);
  filter: blur(12px);
  opacity: 0.9;
}

.goal-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: rgba(210, 255, 210, 0.88);
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(126,255,125,0.45);
  pointer-events: none;
  z-index: 2;
}

.goal-top {
  left: 46%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 172px;
  height: 34px;
  z-index: 5;
}

.goal-bottom-desktop {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 172px;
  height: 34px;
  z-index: 1;
}


.widget-kicker,
.window-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

.window-body h2 {
  margin: 0 0 10px;
  line-height: 0.92;
  letter-spacing: -0.06em;
}
.window-body p,
.icon-label,
.widget-button { line-height: 1.55; }

.widget-button {
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  color: #260f16;
  padding: 10px 14px;
  cursor: pointer;
}

.mini-button {
  margin-top: 0;
  padding: 7px 12px;
  background: rgba(255,255,255,0.14);
  color: #f8d9e2;
  flex: 0 0 auto;
}

.media-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px dashed rgba(0,0,0,0.22);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)),
    repeating-linear-gradient(135deg, rgba(0,0,0,0.06) 0 10px, rgba(255,255,255,0.02) 10px 20px);
  overflow: hidden;
}
.media-placeholder span {
  padding: 12px;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}
.hero-preview {
  min-height: 120px;
  margin-top: 16px;
}
.media-large {
  min-height: 150px;
  margin: 10px 0 14px;
}
.media-small {
  min-height: 74px;
}
.media-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.text-mode {
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
}

.icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 82px;
  height: 82px;
  border: 0;
  background: transparent;
  color: var(--text);
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
  align-content: center;
  gap: 2px;
  padding: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  will-change: transform;
}
.icon:active { cursor: grabbing; }
.icon::before,
.icon::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.icon::before {
  inset: 14px;
  border-radius: 999px;
  opacity: 0.9;
  filter: blur(10px);
}
.icon::after {
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  background: transparent;
  border: 0;
  box-shadow: none;
}
.icon-glyph {
  position: relative;
  z-index: 2;
  font-size: 2.15rem;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.22));
  transform: translateY(2px);
}
.icon-image {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 68px;
  max-height: 24px;
  width: auto;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.22));
}
.icon-image-festivalpro {
  max-width: 90px;
  max-height: 44px;
}
.icon-image-about {
  max-width: 50px;
  max-height: 56px;
  transform: translateY(2px);
}
.icon-label {
  position: relative;
  z-index: 3;
  margin-top: 2px;
  padding: 4px 8px;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.05;
  text-wrap: balance;
  pointer-events: none;
  border-radius: 999px;
  background: rgba(14, 17, 23, 0.82);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 8px 18px rgba(0,0,0,0.24);
}
.icon-pub { color: #ffe19b; }
.icon-pub::before { background: radial-gradient(circle, rgba(242,202,83,0.45), rgba(242,202,83,0) 68%); }
.icon-pub::after { background: rgba(72,44,4,0.9); }
.icon-festivalpro {
  width: 98px;
  height: 74px;
  color: #d3f0ff;
}
.icon-festivalpro::before { background: radial-gradient(circle, rgba(149,216,255,0.42), rgba(149,216,255,0) 68%); }
.icon-festivalpro::after { background: rgba(14,43,58,0.88); }
.icon-archive { color: #efe6dc; }
.icon-archive::before { background: radial-gradient(circle, rgba(255,255,255,0.22), rgba(255,255,255,0) 68%); }
.icon-archive::after { background: rgba(48,48,56,0.9); }
.icon-vrlan { color: #ffd9b6; }
.icon-vrlan::before { background: radial-gradient(circle, rgba(239,141,73,0.4), rgba(239,141,73,0) 68%); }
.icon-vrlan::after { background: rgba(67,31,12,0.88); }
.icon-bnr { color: #dffff0; }
.icon-bnr::before { background: radial-gradient(circle, rgba(150,213,143,0.42), rgba(150,213,143,0) 68%); }
.icon-bnr::after { background: rgba(22,55,30,0.9); }
.icon-about { color: #ffe3eb; }
.icon-about::before { background: radial-gradient(circle, rgba(239,100,133,0.4), rgba(239,100,133,0) 68%); }
.icon-about::after { background: rgba(72,23,39,0.9); }
.icon-linkedin {
  color: #d8ebff;
  text-decoration: none;
  z-index: 6;
}
.icon-linkedin::before { background: radial-gradient(circle, rgba(149,216,255,0.42), rgba(149,216,255,0) 68%); }
.icon-linkedin::after { background: rgba(15,54,86,0.92); }
.icon-glyph-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #0a66c2;
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.06em;
  transform: none;
}
.physics-icon.dragging {
  filter: drop-shadow(0 28px 34px rgba(0,0,0,0.28));
}

.spark-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 8px;
  height: 14px;
  border-radius: 3px;
  opacity: 0.92;
  animation: confetti-fall 2200ms linear forwards;
}

.spark {
  position: absolute;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 247, 131, 0.98) 0 18%, rgba(94, 255, 247, 0.9) 28%, rgba(255, 0, 200, 0.65) 52%, rgba(255, 0, 200, 0) 72%);
  filter: blur(0.4px);
  mix-blend-mode: screen;
  animation: spark-pop 420ms ease-out forwards;
}

@keyframes spark-pop {
  0% { transform: scale(0.4); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

@keyframes confetti-fall {
  0% { transform: translate3d(0, -12px, 0) rotate(0deg) scale(0.9); opacity: 0; }
  8% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate3d(var(--dx, 0px), 920px, 0) rotate(var(--rot, 360deg)) scale(1.05); opacity: 0; }
}

.window-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.app-window {
  position: absolute;
  width: min(78vw, 270px);
  max-width: 270px;
  max-height: min(70vh, 560px);
  border-radius: 24px;
  overflow: hidden;
  pointer-events: auto;
  display: none;
  touch-action: none;
}
.app-window.open { display: flex; flex-direction: column; }

.window-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: grab;
}
.window-head:active { cursor: grabbing; }
.lights { display: inline-flex; gap: 5px; }
.lights i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.68;
}
.close-button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.window-body {
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.window-body h2 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
.window-nav {
  display: flex;
  gap: 6px;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}
.window-tab {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.12);
  color: inherit;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.window-tab.active {
  background: rgba(255,255,255,0.85);
  color: rgba(0,0,0,0.78);
}
.dark .window-tab.active {
  background: rgba(255,255,255,0.16);
  color: var(--text);
}
.window-panel { display: none; }
.window-panel.active { display: block; }
.window-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}
.window-list li {
  line-height: 1.45;
}
.panel-note {
  margin-top: 10px;
  font-size: 0.78rem;
  opacity: 0.8;
}
.video-embed {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px dashed rgba(0,0,0,0.18);
  background: rgba(0,0,0,0.08);
}
.video-embed::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.media-strip-embed {
  align-items: stretch;
}
.media-link-card {
  min-height: 74px;
  border-radius: 18px;
  border: 1px dashed rgba(0,0,0,0.22);
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
  padding: 10px;
  color: inherit;
  text-decoration: none;
  display: grid;
  align-content: center;
  gap: 6px;
}
.media-link-card strong {
  font-size: 0.78rem;
  line-height: 1.15;
}
.media-link-card span {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}
.media-link-card-wide {
  grid-column: span 2;
}
.media-image-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px dashed rgba(0,0,0,0.22);
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
}
.media-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.peach { background: var(--cream); color: #291811; }
.yellow { background: var(--yellow); color: #2b1c06; }
.blue { background: var(--blue); color: #0f2433; }
.orange { background: var(--orange); color: #2b1505; }
.green { background: var(--green); color: #112312; }
.dark { background: var(--dark); color: var(--text); }
.dark .window-body p { color: rgba(255,255,255,0.76); }
.yellow .window-body p,
.blue .window-body p,
.orange .window-body p,
.green .window-body p,
.peach .window-body p { color: rgba(0,0,0,0.74); }
.peach .window-head { background: rgba(255,255,255,0.25); }
.yellow .window-head { background: rgba(255,255,255,0.2); }
.blue .window-head { background: rgba(255,255,255,0.2); }
.orange .window-head { background: rgba(255,255,255,0.18); }
.green .window-head { background: rgba(255,255,255,0.18); }
.dark .window-head { background: #2d303a; color: #eee1d7; }

.dock {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 10px 10px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 34px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.05);
}
.dock-item {
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  color: #f1e6d9;
  border-radius: 18px;
  padding: 8px 6px 10px;
  display: grid;
  gap: 6px;
  place-items: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.dock-item:hover,
.dock-item:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border-color: rgba(255,255,255,0.16);
  outline: none;
}
.dock-glyph {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 8px 16px rgba(0,0,0,0.14);
}
.dock-item small {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}
.dock-item-about .dock-glyph {
  background: linear-gradient(135deg, rgba(239,100,133,0.95), rgba(255,183,202,0.88));
}
.dock-item-work .dock-glyph {
  background: linear-gradient(135deg, rgba(149,216,255,0.95), rgba(72,145,209,0.9));
}
.dock-item-track .dock-glyph {
  background: linear-gradient(135deg, rgba(242,202,83,0.96), rgba(198,143,29,0.9));
}
.dock-item-bnr .dock-glyph {
  background: linear-gradient(135deg, rgba(150,213,143,0.96), rgba(63,143,92,0.9));
}

.pulse { animation: pulse 3.2s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}
