/* ============================================
   bana — shared styles (Snow Leopard / Lion 2010 era)
   ============================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background:
    /* very light dark tint just so white logo+windows have enough contrast */
    linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.18) 100%),
    url("bg-photo.jpg") center center / cover no-repeat fixed;
  background-color: #d8d4d0;
  font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #1a2530;
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
  position: relative;
}

/* ===== NIGHT SKY ===== */
@keyframes twinkle { 0%, 100% { opacity: var(--star-max, 1); } 50% { opacity: var(--star-min, 0.3); } }
@keyframes drift-cloud-l { from { transform: translateX(0); } to { transform: translateX(-130vw); } }
@keyframes shooting-star {
  0%   { transform: translate(0, 0) rotate(-25deg); opacity: 0; }
  5%   { opacity: 1; }
  100% { transform: translate(-700px, 350px) rotate(-25deg); opacity: 0; }
}

/* night sky markup — hidden now that we use a photo background */
#sky-clouds { display: none; }

/* the moon */
.moon {
  position: absolute;
  top: 8%;
  right: 10%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fafaf2 0%, #e8e4d6 30%, #c8c2ae 70%, #9a9482 100%);
  box-shadow:
    0 0 60px 12px rgba(255, 248, 220, 0.25),
    0 0 120px 30px rgba(200, 220, 255, 0.15),
    inset -10px -8px 18px rgba(60, 50, 30, 0.35);
}
/* subtle craters */
.moon::before, .moon::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(60, 50, 30, 0.18);
}
.moon::before { width: 14px; height: 14px; top: 28%; left: 30%; }
.moon::after  { width: 8px; height: 8px;  top: 55%; left: 55%; box-shadow: -16px -8px 0 -1px rgba(60,50,30,0.14), 8px 14px 0 -2px rgba(60,50,30,0.12); }

/* nebula haze */
.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.nebula-1 { top: 20%; left: 15%; width: 320px; height: 200px; background: radial-gradient(ellipse, rgba(80, 60, 140, 0.35), transparent 70%); }
.nebula-2 { top: 45%; right: 25%; width: 380px; height: 240px; background: radial-gradient(ellipse, rgba(40, 80, 160, 0.3), transparent 70%); }
.nebula-3 { bottom: 10%; left: 30%; width: 420px; height: 220px; background: radial-gradient(ellipse, rgba(100, 50, 120, 0.22), transparent 70%); }

/* stars — layered fields of dots created via radial-gradients on a single element */
.starfield {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 27% 8%, #fff, transparent),
    radial-gradient(1px 1px at 38% 28%, #fff, transparent),
    radial-gradient(1px 1px at 52% 14%, #f8f4d8, transparent),
    radial-gradient(1.5px 1.5px at 64% 22%, #fff, transparent),
    radial-gradient(1px 1px at 78% 6%, #fff, transparent),
    radial-gradient(1px 1px at 88% 18%, #d8e0ff, transparent),
    radial-gradient(1px 1px at 4% 38%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 18% 48%, #fff, transparent),
    radial-gradient(1px 1px at 32% 42%, #f4ecc8, transparent),
    radial-gradient(1px 1px at 46% 52%, #fff, transparent),
    radial-gradient(1px 1px at 58% 38%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 72% 48%, #fff, transparent),
    radial-gradient(1px 1px at 82% 38%, #d8e0ff, transparent),
    radial-gradient(1px 1px at 95% 52%, #fff, transparent),
    radial-gradient(1px 1px at 8% 68%, #fff, transparent),
    radial-gradient(1px 1px at 22% 78%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 36% 72%, #fff, transparent),
    radial-gradient(1px 1px at 48% 88%, #f4ecc8, transparent),
    radial-gradient(1px 1px at 62% 78%, #fff, transparent),
    radial-gradient(1px 1px at 76% 88%, #fff, transparent),
    radial-gradient(1px 1px at 90% 72%, #d8e0ff, transparent),
    radial-gradient(0.8px 0.8px at 6% 28%, #fff, transparent),
    radial-gradient(0.8px 0.8px at 16% 32%, #fff, transparent),
    radial-gradient(0.8px 0.8px at 26% 16%, #fff, transparent),
    radial-gradient(0.8px 0.8px at 42% 18%, #fff, transparent),
    radial-gradient(0.8px 0.8px at 56% 26%, #fff, transparent),
    radial-gradient(0.8px 0.8px at 70% 34%, #fff, transparent),
    radial-gradient(0.8px 0.8px at 84% 28%, #fff, transparent),
    radial-gradient(0.8px 0.8px at 14% 58%, #fff, transparent),
    radial-gradient(0.8px 0.8px at 28% 64%, #fff, transparent),
    radial-gradient(0.8px 0.8px at 42% 68%, #fff, transparent),
    radial-gradient(0.8px 0.8px at 56% 62%, #fff, transparent),
    radial-gradient(0.8px 0.8px at 70% 68%, #fff, transparent),
    radial-gradient(0.8px 0.8px at 86% 64%, #fff, transparent),
    radial-gradient(0.8px 0.8px at 12% 88%, #fff, transparent),
    radial-gradient(0.8px 0.8px at 28% 92%, #fff, transparent),
    radial-gradient(0.8px 0.8px at 44% 94%, #fff, transparent),
    radial-gradient(0.8px 0.8px at 60% 92%, #fff, transparent),
    radial-gradient(0.8px 0.8px at 78% 96%, #fff, transparent);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.starfield-2 {
  background-position: 30% 20%;
  opacity: 0.6;
  animation: twinkle 4s ease-in-out infinite;
  --star-max: 0.6;
  --star-min: 0.1;
}
.starfield-3 {
  background-position: 60% 50%;
  opacity: 0.7;
  animation: twinkle 6s ease-in-out infinite;
  --star-max: 0.7;
  --star-min: 0.2;
}

/* a few prominent twinkly stars w/ gentle glow */
.bright-star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px 1px rgba(255,255,255,0.9), 0 0 12px 3px rgba(180,200,255,0.3);
  animation: twinkle 3s ease-in-out infinite;
  --star-max: 1;
  --star-min: 0.4;
}

/* shooting star */
.shooting-star {
  position: absolute;
  top: 18%;
  left: 80%;
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  box-shadow: 0 0 6px 1px rgba(255,255,255,0.8);
  opacity: 0;
  animation: shooting-star 8s ease-in infinite;
  animation-delay: 4s;
}
.shooting-star-2 {
  top: 35%;
  left: 90%;
  animation-delay: 18s;
  animation-duration: 6s;
}

/* a few drifting wispy night clouds — barely visible */
.night-cloud {
  position: absolute;
  background: rgba(20, 30, 60, 0.55);
  border-radius: 100px;
  filter: blur(8px);
  pointer-events: none;
}
.night-cloud-1 {
  top: 60%; left: 100vw; width: 400px; height: 50px; opacity: 0.6;
  animation: drift-cloud-l 180s linear infinite;
  animation-delay: 0s;
}
.night-cloud-2 {
  top: 75%; left: 100vw; width: 320px; height: 40px; opacity: 0.5;
  animation: drift-cloud-l 240s linear infinite;
  animation-delay: -90s;
}

@keyframes pulse-aqua { 0%,100%{filter:brightness(1)} 50%{filter:brightness(1.15)} }
@keyframes poof {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.6; }
  100% { transform: scale(0.4); opacity: 0; }
}
@keyframes trash-shake {
  0%, 100% { transform: scale(1.4) translateY(-8px) rotate(0deg); }
  25% { transform: scale(1.4) translateY(-8px) rotate(-8deg); }
  75% { transform: scale(1.4) translateY(-8px) rotate(8deg); }
}

/* MENU BAR (light, on linen) */
.menubar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(232,228,216,0.92) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(120,100,70,0.4);
  padding: 0 12px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 1px 2px rgba(0,0,0,0.05);
  font-size: 13px;
  color: #1a2530;
}
.menubar-l { display: flex; align-items: center; gap: 16px; }
.apple-logo { font-size: 14px; line-height: 1; color: #2a3540; margin-top: -1px; }
.mb-item { color: #1a1a1a; font-size: 13px; cursor: default; }
.mb-item.bold { font-weight: 700; }
.menubar-r { display: flex; align-items: center; gap: 14px; font-size: 12px; color: #1a1a1a; }

/* DESKTOP */
#desktop {
  position: relative;
  min-height: calc(100vh - 22px);
  margin-top: 22px;
  padding-bottom: 110px;
}

/* RETRO bana LOGO (sub-pages) — matches homepage */
.bana-logo {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 64px;
  color: #ffffff;
  letter-spacing: -0.04em;
  margin: 0;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.bana-logo-sub {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  letter-spacing: 0.5em;
  margin-top: 14px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* WALKER */
#walker {
  position: absolute;
  font-size: 30px;
  z-index: 50;
  cursor: grab;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
  transition: filter 0.2s;
  line-height: 1;
  padding: 4px;
}
#walker.dragging {
  cursor: grabbing;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.7));
}
#walker.poofing { animation: poof 0.5s ease-out forwards; pointer-events: none; }
#walker.in-trash { display: none; }

/* AQUA WINDOW (slightly tighter chrome, real shadows) */
.aqua-window {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.4);
  border-radius: 6px 6px 5px 5px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 8px 24px rgba(0,0,0,0.4),
    0 18px 50px rgba(0,0,0,0.3);
  overflow: hidden;
  position: absolute;
}
.aqua-window.dragging {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 18px 40px rgba(0,0,0,0.55),
    0 28px 70px rgba(0,0,0,0.45);
}
.aqua-window.closed { display: none; }
.aqua-window.minimized { display: none; }

.aqua-titlebar {
  background:
    repeating-linear-gradient(180deg,
      rgba(255,255,255,0.45) 0px,
      rgba(255,255,255,0.45) 1px,
      rgba(160,170,185,0.18) 1px,
      rgba(160,170,185,0.18) 2px),
    linear-gradient(180deg, #ebeef3 0%, #b9c2cf 100%);
  padding: 4px 8px;
  border-bottom: 1px solid #6f7e8f;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 22px;
  cursor: grab;
}
.aqua-titlebar:active { cursor: grabbing; }
.aqua-window.inactive .aqua-titlebar {
  background: linear-gradient(180deg, #f0f0f0 0%, #d4d4d4 100%);
}
.traffic { display: flex; gap: 8px; flex-shrink: 0; }
.light {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.5);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 -1px 0 rgba(0,0,0,0.2) inset;
  cursor: pointer;
}
.light.red    { background: radial-gradient(circle at 30% 30%, #ffaaa0 0%, #ff5e4d 50%, #c4302a 100%); }
.light.yellow { background: radial-gradient(circle at 30% 30%, #ffe69e 0%, #f7bb3c 50%, #b88811 100%); }
.light.green  { background: radial-gradient(circle at 30% 30%, #c2f0a8 0%, #54c736 50%, #2e8612 100%); }
.aqua-window.inactive .light {
  background: radial-gradient(circle at 30% 30%, #d8d8d8 0%, #a8a8a8 100%);
}
.aqua-tb-title {
  font-size: 13px;
  font-weight: 700;
  color: #2a3540;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
  flex: 1;
  text-align: center;
  margin-right: 56px;
}

/* BRUSHED METAL */
.brushed {
  background:
    repeating-linear-gradient(180deg,
      rgba(255,255,255,0.5) 0px,
      rgba(255,255,255,0.5) 1px,
      rgba(160,160,160,0.18) 1px,
      rgba(160,160,160,0.18) 2px),
    linear-gradient(180deg, #e6e9ee 0%, #c4c8ce 50%, #b4b8be 100%);
}
.brushed-tb {
  background:
    repeating-linear-gradient(180deg,
      rgba(255,255,255,0.5) 0px,
      rgba(255,255,255,0.5) 1px,
      rgba(160,160,160,0.18) 1px,
      rgba(160,160,160,0.18) 2px),
    linear-gradient(180deg, #dce0e6 0%, #a8acb2 100%);
  padding: 4px 8px;
  border-bottom: 1px solid #5a5e64;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 22px;
  cursor: grab;
}
.brushed-tb:active { cursor: grabbing; }

/* BUTTONS */
.aqua-btn {
  display: inline-block;
  padding: 4px 14px;
  background: linear-gradient(180deg, #fbfcfe 0%, #e3eaf3 49%, #c8d4e2 50%, #dde6f0 100%);
  border: 1px solid #7a8a9e;
  border-radius: 999px;
  color: #1a2530;
  font-size: 11px;
  font-weight: 500;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 -1px 0 rgba(0,0,0,0.06) inset,
    0 1px 2px rgba(0,0,0,0.08);
  cursor: pointer;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
  margin: 1px;
}
.aqua-btn:hover { filter: brightness(1.06); }
.aqua-btn-blue {
  background: linear-gradient(180deg, #cbe0fb 0%, #6fa6ee 49%, #2c7cd9 50%, #6ba2e6 100%);
  border: 1px solid #1c5ca8;
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
  animation: pulse-aqua 2.6s ease-in-out infinite;
}
.aqua-link { color: #1a4ee8; text-decoration: underline; cursor: pointer; }
.aqua-link:hover { color: #d62828; }
.aqua-link:visited { color: #6a3aa8; }

/* SIDEBAR */
.finder-sidebar {
  background: repeating-linear-gradient(180deg, #d4dde8 0px, #d4dde8 1px, #c8d3e0 1px, #c8d3e0 2px);
  border-right: 1px solid #6f7e8f;
  padding: 8px 0;
  font-size: 11px;
  min-height: 280px;
}
.sb-section {
  padding: 4px 12px;
  color: #5a6776;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}
.sb-item {
  padding: 4px 12px 4px 24px;
  cursor: pointer;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.sb-item:hover { background: rgba(60,140,210,0.18); }
.sb-item.active {
  background: linear-gradient(180deg, #6fa6ee 0%, #2c7cd9 100%);
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
}

/* iTUNES */
.itunes-row {
  display: grid;
  grid-template-columns: 24px 1fr 60px 44px;
  align-items: center;
  padding: 4px 8px;
  font-size: 11px;
  border-bottom: 1px solid #e4e7ea;
  cursor: pointer;
}
.itunes-row:nth-child(odd) { background: #eaf1f9; }
.itunes-row:nth-child(even) { background: #ffffff; }
.itunes-row.now-playing {
  background: linear-gradient(180deg, #6fa6ee 0%, #2c7cd9 100%) !important;
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
}
.itunes-header {
  background: linear-gradient(180deg, #ebeef3 0%, #b9c2cf 100%);
  border-bottom: 1px solid #6f7e8f;
  font-size: 10px;
  font-weight: 700;
  color: #2a3540;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
  padding: 3px 8px;
  display: grid;
  grid-template-columns: 24px 1fr 60px 44px;
  gap: 6px;
}

/* iCal */
.ical-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7ea;
  font-size: 11px;
  background: #fff;
  align-items: center;
}
.ical-row:nth-child(even) { background: #f4f7fb; }
.ical-date {
  background: #ffffff;
  border: 1px solid #c0c4ca;
  border-radius: 4px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.ical-mo {
  background: linear-gradient(180deg, #ff8a82 0%, #d62828 100%);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 0;
  letter-spacing: 0.05em;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
  border-bottom: 1px solid #8a1818;
}
.ical-day {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 0 6px;
  color: #1a2530;
}

/* DOCK */
.dock-wrap {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}
.dock {
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(200,215,235,0.45) 50%, rgba(170,195,225,0.55) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 14px;
  padding: 6px 10px 4px;
  display: flex;
  gap: 6px;
  align-items: flex-end;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 -1px 0 rgba(0,0,0,0.1) inset,
    0 8px 22px rgba(0,0,0,0.5);
}
.dock-icon {
  width: 52px; height: 52px;
  border-radius: 11px;
  border: 1px solid rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 -2px 0 rgba(0,0,0,0.15) inset,
    0 3px 6px rgba(0,0,0,0.3);
  transform-origin: bottom center;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.dock-icon:hover { transform: scale(1.4) translateY(-8px); }
.dock-icon.has-window::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
}
.dock-label {
  position: absolute;
  bottom: -22px;
  font-size: 10px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.dock-icon:hover .dock-label { opacity: 1; }

#dock-trash.full { background: linear-gradient(180deg, #b8c2d0, #707880) !important; }
#dock-trash.shake { animation: trash-shake 0.4s ease-in-out; }
#dock-trash.drop-target { transform: scale(1.4) translateY(-8px); box-shadow: 0 0 0 3px rgba(255,80,80,0.7), 0 1px 0 rgba(255,255,255,0.8) inset, 0 -2px 0 rgba(0,0,0,0.15) inset, 0 3px 6px rgba(0,0,0,0.3); }

.progress-aqua {
  height: 6px;
  background: linear-gradient(180deg, #c0cdda 0%, #e0e7ee 100%);
  border-radius: 999px;
  border: 1px solid #6f7e8f;
  overflow: hidden;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1) inset;
}
.progress-fill {
  width: 34%;
  height: 100%;
  background: linear-gradient(180deg, #c4dcfa 0%, #6fa6ee 49%, #2c7cd9 50%, #6ba2e6 100%);
}
.lcd {
  background:
    repeating-linear-gradient(180deg, rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 1px, transparent 1px, transparent 3px),
    linear-gradient(180deg, #c8e1f6 0%, #f0f7fc 100%);
  border: 1px solid #6f7e8f;
  border-radius: 6px;
  padding: 6px 10px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.08) inset, 0 1px 0 rgba(255,255,255,0.6);
  color: #2a3540;
  font-size: 11px;
}

/* Form fields */
.aqua-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #7a8a9e;
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08) inset;
  margin-bottom: 8px;
}
.aqua-input:focus {
  outline: none;
  border-color: #2c7cd9;
  box-shadow: 0 0 0 3px rgba(108,166,238,0.3), 0 1px 2px rgba(0,0,0,0.08) inset;
}

/* Spotify embed row */
.spotify-row {
  border-bottom: 1px solid #e4e7ea;
  padding: 6px 8px;
  background: #fff;
}
.spotify-row:nth-child(even) { background: #f7faff; }
.spotify-row iframe {
  display: block;
  width: 100%;
  height: 80px;
  border: 0;
  border-radius: 8px;
}

/* Inner page layouts */
.page-window {
  max-width: 760px;
  margin: 32px auto;
  position: relative;
}
.page-window .aqua-titlebar,
.page-window .brushed-tb {
  cursor: default;
}

/* sub-page top header */
.subpage-header {
  padding: 28px 16px 12px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.subpage-header .bana-logo {
  font-size: 56px;
}
.subpage-header .back-link {
  display: inline-block;
  margin-top: 10px;
  color: #8ab4ff;
  font-size: 12px;
  text-decoration: underline;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}
.subpage-header .back-link:hover { color: #fff; }

a { text-decoration: none; }

/* social icon links */
.social-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1a4ee8;
  text-decoration: underline;
  font-size: 12px;
}
.social-icon-link:hover { color: #d62828; }
.social-icon-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* social pill row (for subscribe page) */
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: linear-gradient(180deg, #fbfcfe 0%, #e3eaf3 49%, #c8d4e2 50%, #dde6f0 100%);
  border: 1px solid #7a8a9e;
  border-radius: 999px;
  color: #1a2530;
  font-size: 12px;
  font-weight: 500;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 -1px 0 rgba(0,0,0,0.06) inset,
    0 1px 2px rgba(0,0,0,0.08);
  cursor: pointer;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
  margin: 2px;
}
.social-pill:hover { filter: brightness(1.06); }
.social-pill svg { width: 16px; height: 16px; flex-shrink: 0; }

/* expandable player slot under an iTunes row */
.player-slot {
  display: none;
  padding: 0;
  background: #f4f8fc;
  border-bottom: 1px solid #c0d0e0;
}
.player-slot.open {
  display: block;
  padding: 6px 8px;
}
.player-slot iframe {
  display: block;
  width: 100%;
  height: 80px;
  border: 0;
  border-radius: 8px;
}
.itunes-row.playable { cursor: pointer; }

/* ============================================
   HERO LOGO — clean white wordmark
   ============================================ */
.hero-logo-wrap {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  cursor: grab;
  text-align: center;
  padding: 8px 16px;
}
.hero-logo-wrap:active { cursor: grabbing; }
.hero-logo-wrap.dragging { cursor: grabbing; }

.hero-logo {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 84px;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  user-select: none;
}

@media (max-width: 720px) {
  .hero-logo { font-size: 64px; }
}
@media (max-width: 480px) {
  .hero-logo { font-size: 48px; }
}

@media (max-width: 720px) {
  .hero-name { font-size: 72px; }
}
@media (max-width: 480px) {
  .hero-name { font-size: 56px; }
}

/* sticky editable area — looks the same but you can type in it */
.sticky-editable {
  outline: none;
  cursor: text;
  min-height: 40px;
}
.sticky-editable:empty::before {
  content: attr(data-placeholder);
  opacity: 0.4;
}

/* desktop file icons (scattered around) */
.desk-file {
  position: absolute;
  width: 64px;
  text-align: center;
  cursor: grab;
  z-index: 4;
  padding: 4px;
  border-radius: 4px;
}
.desk-file:hover { background: rgba(108,166,238,0.18); }
.desk-file.dragging { cursor: grabbing; opacity: 0.85; }
.desk-file-icon {
  font-size: 36px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  line-height: 1;
  margin-bottom: 4px;
}
.desk-file-label {
  font-size: 10px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85);
  font-family: 'Lucida Grande', sans-serif;
}

/* calculator buttons */
.calc-btn {
  background: linear-gradient(180deg, #fbfcfe 0%, #d8dde4 100%);
  border: 1px solid #6f7e8f;
  border-radius: 4px;
  padding: 5px 0;
  text-align: center;
  cursor: pointer;
  color: #1a2530;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 1px 1px rgba(0,0,0,0.1);
  font-family: 'Lucida Grande', sans-serif;
}
.calc-btn:hover { filter: brightness(1.05); }
.calc-btn:active { box-shadow: 0 1px 2px rgba(0,0,0,0.15) inset; }
.calc-btn.calc-op {
  background: linear-gradient(180deg, #cbe0fb 0%, #6fa6ee 49%, #2c7cd9 50%, #6ba2e6 100%);
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
  border: 1px solid #1c5ca8;
}

/* playing audio file — show a subtle pulse */
@keyframes audio-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.desk-file.playing .desk-file-icon {
  animation: audio-pulse 1s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(108, 200, 255, 0.7));
}
.desk-file.playing .desk-file-label::after {
  content: ' ▶';
  color: #6fa6ee;
}

/* ============================================
   MOBILE / PHONE OPTIMIZATIONS
   Triggered for screens < 760px wide
   ============================================ */
@media (max-width: 760px) {

  /* turn off body fixed-everything that breaks on mobile */
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* hide menubar — it's a desktop visual gag, takes up vertical space on phone */
  .menubar { display: none; }

  /* desktop becomes a normal scrolling column instead of an absolute-positioned canvas */
  #desktop {
    margin-top: 0;
    padding: 24px 16px 120px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  /* hide things that don't make sense on phone */
  #walker { display: none; }
  .desk-file { display: none; }

  /* logo: smaller, normal flow position */
  .hero-logo-wrap {
    position: static;
    transform: none;
    margin: 16px auto 8px;
    padding: 0;
  }
  .hero-logo {
    font-size: 56px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  }

  /* every aqua-window: full-width, normal flow (not absolutely positioned), stack vertically */
  .aqua-window,
  #win-listen, #win-shows, #win-readme, #win-sticky, #win-quicktime, #win-calc, #win-ichat, #win-lyrics {
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 420px;
    margin: 0 auto;
    transform: none !important;
    /* keep the box shadow lighter to save GPU */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }

  /* mobile order: logo → sticky → iCal → iTunes → contact → QuickTime → calculator → iChat */
  .hero-logo-wrap { order: 1; }
  #win-sticky     { order: 2; }
  #win-shows      { order: 3; }   /* iCal first */
  #win-listen     { order: 4; }   /* iTunes second */
  #win-readme     { order: 5; }
  #win-quicktime  { order: 6; }
  #win-calc       { order: 7; }
  #win-ichat      { order: 8; }
  #win-lyrics     { order: 9; }

  /* sticky: keep its rotation but don't break the flow */
  #win-sticky {
    transform: rotate(-2deg) !important;
    max-width: 280px !important;
  }

  /* lyrics popup window: only show when it's been opened (not closed) */
  #win-lyrics.closed { display: none !important; }

  /* iTunes inner row touch targets — make rows tappable */
  .itunes-row {
    padding: 10px 12px;
    font-size: 13px;
  }
  .itunes-header {
    padding: 6px 12px;
    font-size: 11px;
  }

  /* iCal rows: more breathing room */
  .ical-row {
    padding: 12px;
    font-size: 13px;
  }

  /* dock: smaller, lower bar with smaller icons */
  .dock-wrap { bottom: 8px; }
  .dock {
    padding: 4px 6px 3px;
    gap: 4px;
    border-radius: 11px;
  }
  .dock-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 9px;
  }
  .dock-icon:hover {
    /* turn off the hover scale because it's weird on touch */
    transform: none;
  }
  .dock-label {
    /* labels don't really work on touch since there's no hover */
    display: none;
  }

  /* make sure iframes (spotify, etc.) fit nicely */
  .player-slot iframe,
  .spotify-row iframe { height: 80px; }

  /* sub-page content fills the screen better */
  .page-window {
    margin: 16px auto;
    max-width: 100%;
  }
  .subpage-header {
    padding: 16px 12px 8px;
  }
  .subpage-header .bana-logo {
    font-size: 44px;
  }

  /* QuickTime video sized nicely */
  #win-quicktime video {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
  }

  /* calculator: keep proportions sane */
  #win-calc {
    max-width: 240px !important;
  }
}

/* very small phones (iPhone SE, etc.) */
@media (max-width: 380px) {
  .hero-logo { font-size: 44px; }
  .dock-icon { width: 40px; height: 40px; font-size: 18px; }
}
