/* INTRO + GLOBAL */
body, html {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

#is {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 120px;
  z-index: 10000;
  flex-wrap: wrap;
  transition: opacity 0.6s ease;
}

.fo { opacity: 0 !important; pointer-events: none !important; }

/* Desktop icon pair on intro */
.dc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.8s ease;
}

.il {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin: 0;
  text-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* DESIGN ICON ONLY */
#d1 { width: 120px; }
#d1 .iw {
  width: 72px; height: 72px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  transform: scale(1.1); border-radius: 3px; transition: background 0.2s ease, box-shadow 0.2s ease;
}
#d1 img { width: 160%; height: auto; padding: 6px; box-sizing: border-box; transition: background 0.2s ease; }
#d1:hover .iw {
  background: rgba(0, 119, 255, 0.12); border-radius: 3px; transform: scale(1.1);
  box-shadow: 0 0 2px rgba(0, 119, 255, 0.2);
}
#d1 .il { font-size: 15px; font-weight: 550; color: #222; }

/* PRINTS ICON ONLY */
#p1 { width: 120px; opacity: 1; transition: opacity 0.4s ease; }
#p1 .iw {
  width: 72px; height: 72px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  transform: scale(1.2); border-radius: 3px; transition: background 0.2s ease, box-shadow 0.2s ease;
}
#p1 img { width: 100%; height: auto; padding: 6px; box-sizing: border-box; transition: background 0.2s ease, transform 0.2s ease; }
#p1:hover .iw {
  background: rgba(211, 0, 0, 0.25); border-radius: 3px; transform: scale(1.1);
  box-shadow: 0 0 2px rgba(255, 0, 0, 0.2);
}
#p1 .il { font-size: 15px; font-weight: 550; color: #222; }

@media (max-width: 700px) {
  #is { flex-direction: column; gap: 36px; padding-bottom: 12vh; }
  #d1, #p1 { width: 128px; }
  #d1 .iw, #p1 .iw { width: 72px; height: 72px; }
  #d1 .il, #p1 .il { font-size: 15px; }
}

/* MAIN DESKTOP */
#ms {
  position: absolute;
  top: 0; left: 0;
  width: 100vw; height: 100dvh;
  background-image: url('background2.jpg');
  background-size: cover; background-position: center;
  z-index: 2; opacity: 0; pointer-events: none; transition: opacity 0.8s ease;
}
.fm { opacity: 1 !important; pointer-events: auto !important; }

/* Dock */
#dk {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  width: 90vw; max-width: 550px; height: auto;
  display: flex; align-items: flex-end; justify-content: center; z-index: 10; pointer-events: none;
}
#db { position: absolute; bottom: 0; width: 100%; height: auto; z-index: 0; pointer-events: none; }
#di {
  position: relative; display: flex; gap: 4vw; padding: 1.5vw 2vw; z-index: 1; pointer-events: auto;
  width: 100%; justify-content: center;
}
.dj { position: relative; display: flex; flex-direction: column; align-items: center; }
.do { height: 10vw; max-height: 64px; width: auto; transition: transform 0.2s ease; cursor: pointer; z-index: 2; }
.do:hover { transform: scale(1.5); }
.dr {
  position: absolute; bottom: -6px; width: 6px; height: 6px; border-radius: 50%;
  background: white; opacity: 0; transition: opacity 0.3s ease;
}
.dr.ac { opacity: 1; }

/* App Windows */
#fw, #mw, #nw, #bw {
  position: absolute; width: 90vw; max-width: 500px; max-height: 80vh; overflow-y: auto;
  top: 45%; left: 50%; transform: translate(-50%, -50%); display: none; z-index: 200;
}
#mw { top: 42%; left: 54%; }
#nw { top: 35%; left: 48%; max-height: none; overflow-y: hidden; }
#bw { top: 50%; left: 55%; }
#fb, #mb, #nb, #bb { width: 100%; display: block; position: relative; }

.fh { position: absolute; cursor: pointer; z-index: 1; }
#ih { top: 30%; left: 35%; width: 18%; height: 40%; }
#th { top: 45%; left: 68%; width: 18%; height: 40%; }
#bh { top: 45%; left: 68%; width: 18%; height: 40%; }

/* Close Buttons */
#xf, #xm, #xn, #xb {
  position: absolute; top: 10px; left: 14px; width: 14px; height: 14px; border-radius: 50%;
  background: transparent; border: 1px solid #ff5e5600; cursor: pointer; z-index: 5; transition: background 0.2s ease;
}
#xf:hover, #xm:hover, #xn:hover, #xb:hover { background: #ff5f56; }

/* Notes */
#bn {
  position: absolute; top: 25%; left: 6%;
  display: flex; flex-direction: column; gap: 2px; z-index: 5;
}
@media (max-width: 600px) {
  #bn { top: 22.5%; left: 2.5%; transform: scale(0.78); }
  .nt { width: 90px; height: 32px; padding: 3px 5px; font-size: 10px; border-radius: 2px; box-sizing: border-box; }
  .tt { font-size: 11px; margin-bottom: 1px; }
  .nd { font-size: 9.5px; }
  #nc { font-size: 13px; top: 24%; left: 32%; width: 60%; }
}
.nt {
  width: 115px; height: 40px; background: rgba(255,255,255,0.2);
  border: 1px solid #aaa; text-align: left; padding: 4px 6px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; cursor: pointer;
}
.nt:hover { background: rgba(222,222,222,0.3); }
.nt.at { background: rgba(222,222,222,0.5); border-color: #666; }
.tt { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 2px; }
.nd { font-size: 11px; color: #666; }

#nc {
  position: absolute; top: 22%; left: 35%; width: 55%;
  font-family: "Noteworthy", sans-serif; font-size: 16px; line-height: 1.6; color: #4c3a1a; z-index: 5;
}
@media (max-width: 600px) {
  #nc { font-size: 13px; left: 35%; top: 24%; width: 60%; }
}
.nx { display: none; }
.nx.ac { display: block; }

/* Top Bar */
#tb {
  position: fixed; top: 0; left: 0; width: 100%; height: 24px;
  background: #e9e9e9; color: #000; font-size: 12px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 10px; z-index: 999; border-bottom: 1px solid #d0d0d0;
}
#tl img#lg { height: 16px; width: auto; max-height: 100%; object-fit: contain; cursor: pointer; }
#ld {
  display: none; position: absolute; top: 100%; left: 0;
  background: #f2f2f2; border: 1px solid #ccc; padding: 6px 12px; font-size: 12px; color: #000;
  z-index: 1000; white-space: nowrap;
}
#ld:hover { background: #e0e0e0; }
#tr { display: flex; align-items: center; gap: 8px; }
#tr .ic { height: 12px; width: auto; filter: brightness(0); }
#dt { margin-left: 4px; margin-right: 20px; }

/* Mail content */
#mc {
  position: absolute; top: 60%; left: 50%; transform: translate(-50%, -50%);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: clamp(14px, 2.8vw, 18px);
  color: #333; text-align: center; z-index: 10;
}
#mc a { color: #1a73e8; text-decoration: underline; }

/* Desktop icons (on desktop background) */
.si {
  position: absolute; top: 22%; left: 35%; width: 64px; text-align: center; cursor: pointer; z-index: 100; display: none;
}
.si img { width: 100%; transition: background 0.2s ease; padding: 4px; box-sizing: border-box; text-align: center; }
.si:hover img { background: rgba(0, 119, 255, 0.2); border-radius: 6px; }
.sl {
  margin-top: 4px; font-size: 12px; color: white; text-align: center;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.648);
}

/* Gallery overlay */
#ga {
  position: absolute; top: 0; left: 0; width: 100vw; height: 100dvh;
  background: #f5f5f5; z-index: 200; display: none; overflow-y: auto;
}
#xg {
  position: fixed; top: 30px; left: 12px; width: 14px; height: 14px;
  border-radius: 50%; background: transparent; border: 1px solid #ff5e5600; cursor: pointer; z-index: 1000;
}
#xg:hover { background: #ff5f56; }
#gg { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 70px; }
#gg img { width: 160px; height: auto; border-radius: 6px; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.15); transition: transform 0.2s ease; }
#gg img:hover { transform: scale(1.05); }

.glightbox-clean .gslide-media img { max-width: 90vw; max-height: 90vh; object-fit: contain; }

#gb {
  width: 100%; height: 28px;
  background: linear-gradient(to bottom, #d8d8d8, #b6b6b6);
  border-bottom: 2px solid #a5a5a5; position: fixed; top: 25px; left: 0;
  z-index: 1; display: flex; align-items: center; justify-content: center;
}
#c2 { position: fixed; top: 32px; left: 14px; height: 14px; width: auto; z-index: 10; }
#gc { padding: 48px 20px 20px 20px; box-sizing: border-box; }
#gy {
  font-size: 13px; font-weight: 500; color: #575757; user-select: none; pointer-events: none;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.648);
}

/* GIF window */
#gi {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: auto; max-width: 90vw; height: auto; background: transparent; border-radius: 14px; display: none; z-index: 1200; overflow: hidden;
}
#gt {
  height: 28px; background: linear-gradient(to bottom, #f0f0f0, #dcdcdc); border-bottom: 1px solid #b0b0b0;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: #333;
  user-select: none; pointer-events: none; border-top-left-radius: 14px; border-top-right-radius: 14px;
}
#gv { z-index: 2; }
#cf {
  position: absolute; top: 8px; left: 14px; width: 16px; height: 16px; border-radius: 50%;
  background: transparent; border: 1px solid transparent; cursor: pointer; z-index: 1210;
}
#cf:hover { background: #ff5f56; }
#dg { display: block; width: 100%; height: auto; border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; }

#g1 { top: 60%; left: 45%; }
#g1 img { border-radius: 0; }
#c1 { position: absolute; top: 8px; left: 14px; height: 14px; width: auto; z-index: 10; }

/* Generic */
img { user-select: none; -webkit-user-drag: none; pointer-events: auto; }
