body {
background: #000;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
overflow: hidden;
}
.installer {
width: 100%;
display: flex;
justify-content: center;
padding: 40px;
}
.window {
width: 680px;
height: 420px;
background: #111114;
border-radius: 18px;
box-shadow: 0 30px 80px rgba(0,0,0,0.9);
border: 1px solid #333;
overflow: hidden;
}
.titlebar {
height: 36px;
background: #1e1e1e;
display: flex;
align-items: center;
padding: 0 16px;
gap: 8px;
}
.dots { display: flex; gap: 8px; }
.dot {
width: 12px; height: 12px; border-radius: 50%;
}
.red { background: #ff5f57; }
.yellow { background: #febc2e; }
.green { background: #28c840; }
.title {
position: absolute;
left: 50%;
transform: translateX(-50%);
font-size: 13px;
color: #888;
font-weight: 500;
}
.content {
height: calc(100% - 76px);
padding: 10px 80px;
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
}
#app-icon {
text-align: center;
cursor: grab;
user-select: none;
}
#app-icon img {
width: 128px;
height: 128px;
border-radius: 26px;
box-shadow: 0 15px 40px rgba(0,0,0,0.7);
pointer-events: none;
}
#app-icon p {
margin-top: 16px;
color: #fff;
font-weight: 600;
font-size: 17px;
}
/* DRAG MOVEMENT FIX — Makes icon follow mouse like native macOS */
.draggable-logo {
pointer-events: auto !important; /* ← Ensures drag starts on img */
-webkit-user-drag: element; /* ← Safari-specific: allows full drag */
user-select: none;
}
.draggable-logo:active {
cursor: grabbing !important;
}
/* Ghost image follows mouse during drag */
#app-icon::after {
content: '';
position: absolute;
top: -10px; left: -10px;
width: 148px; height: 148px; /* Slightly larger than icon */
opacity: 0.9;
pointer-events: none;
z-index: 1000;
background: url('img/512.png') no-repeat center;
background-size: contain;
display: none;
border-radius: 26px;
box-shadow: 0 20px 50px rgba(0,175,255,0.8);
}
#app-icon.dragging::after {
display: block; /* ← Shows floating icon during drag */
}
.arrow {
font-size: 120px;
font-weight: bold;
color: #00ccff;
text-shadow: 0 0 40px #00ccff;
pointer-events: none;
}
#folder {
text-align: center;
padding: 30px;
border-radius: 28px;
transition: all 0.4s ease;
}
#folder img {
width: 128px;
height: 128px;
filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6));
}
#folder p {
margin-top: 16px;
color: #0af;
font-weight: 600;
font-size: 17px;
}
#folder.drag-over {
background: rgba(0,175,255,0.15);
border: 3px dashed #0af;
box-shadow: 0 0 50px rgba(0,175,255,0.5);
transform: scale(1.06);
}

.center-column {
  position: absolute;
  left: 50%;
  top: 50%;                          /* centre of the whole content area */
  transform: translate(-50%, -50%);  /* perfect centre */
  pointer-events: none;              /* doesn’t block dragging */
  width: 100%;
  height: 100%;                      /* important for the next part */
}

.arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);  /* locks the arrow dead-centre forever */
  font-size: 120px;
  font-weight: bold;
  color: #00ccff;
  text-shadow: 0 0 40px #00ccff;
  pointer-events: auto;
}

/* FORCE the beautiful button on mobile too */
#install-btn {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: 20px !important;
  padding: 16px 48px !important;
  font-size: 1.5rem !important;
  font-weight: bold !important;
  background: linear-gradient(135deg, #0af, #00ff88) !important;
  color: #000 !important;
  border: none !important;
  border-radius: 18px !important;
  cursor: pointer !important;
  box-shadow: 0 10px 30px rgba(0,175,255,.6) !important;
  transition: all .3s !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  -webkit-appearance: none !important;   /* this line kills iOS default styling */
  appearance: none !important;

}

#install-btn:hover,
#install-btn:active {
  transform: translateX(-50%) translateY(-6px) !important;
  box-shadow: 0 20px 50px rgba(0,175,255,.9) !important;
}

/* Authentic macOS Dock bounce – keep this */
@keyframes dockBounce {
   0%   { transform: translateY(0) scale(1); }
  30%  { transform: translateY(-50px) scale(1.1); }
  50%  { transform: translateY(0) scale(0.94); }
  65%  { transform: translateY(-20px) scale(1.05); }
  80%  { transform: translateY(0) scale(0.98); }
  100% { transform: translateY(0) scale(1); }
}

.bounce-once {
  animation: dockBounce 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* MOBILE: EXACT SAME LAYOUT AS DESKTOP — just smaller and perfectly centered */
@media (max-width: 860px) {
  .installer { padding: 20px 10px; }

  .window {
    width: 100%;
    max-width: 380px;
    height: 300px;               /* same proportions as desktop */
    border-radius: 24px;
  }

  .content {
    padding: 10px 30px;          /* reduced but still horizontal */
    justify-content: space-between;
    gap: 80px;
  }

  /* Keep everything in the original horizontal flex row */
  #app-icon, #folder {
    flex-shrink: 0;
  }

  #app-icon img, #folder img {
    width: 100px;
    height: 100px;
  }

  .arrow {
    font-size: 90px;
  }

  /* Button exactly under the arrow like on desktop */
  #install-btn {
    position: absolute !important;
    left: 50% !important;
    bottom: 1px !important;
    transform: translateX(-50%) !important;
    padding: 15px 44px !important;
    font-size: 1.4rem !important;
    background: linear-gradient(135deg, #0af, #00ff88) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 35px rgba(0,175,255,.7) !important;
    -webkit-appearance: none !important;
    pointer-events: auto !important;
    z-index: 50 !important;
  }
}