@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Mono:wght@400;500;700;900&display=swap');

/* ── Design tokens ── */
:root {
  --background:          0 0% 0%;
  --foreground:          0 0% 100%;
  --card:                0 0% 0%;
  --card-foreground:     0 0% 100%;
  --popover:             0 0% 0%;
  --popover-foreground:  0 0% 100%;
  --primary:             0 0% 100%;
  --primary-foreground:  0 0% 0%;
  --secondary:           0 0% 15%;
  --secondary-foreground:0 0% 100%;
  --muted:               0 0% 15%;
  --muted-foreground:    0 0% 65%;
  --accent:              0 0% 15%;
  --accent-foreground:   0 0% 100%;
  --border:              0 0% 100%;
  --input:               0 0% 20%;
  --ring:                0 0% 100%;
  --radius:              0.5rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Roboto Mono', 'Courier New', Courier, monospace;
  font-feature-settings: "rlig" 1, "calt" 1;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  user-select: none;
}

/* ── Canvas / viewport ── */
#viewport {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  cursor: default;
  position: relative;
}

#canvas {
  position: absolute;
  top: 0; left: 0;
  width: 4000px;
  height: 3000px;
  transform-origin: 0 0;
  will-change: transform;
}

/* Hub anchored at the content center (2000, 1500 in canvas space).
   All stickers are positioned as offsets from this point so they
   move together if the content center ever shifts. */
#content-hub {
  position: absolute;
  left: 2000px;
  top: 1500px;
  width: 0;
  height: 0;
  overflow: visible;
}

.sticker {
  position: absolute;
  transform-origin: center center;
  pointer-events: none;
}
.sticker-btn {
  pointer-events: all;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: block;
  transform-origin: center center;
  transition: transform 0.15s cubic-bezier(0, 0, 0.2, 1);
}
.sticker-btn:hover { transform: scale(1.08); }
.sticker-btn:active { transform: scale(0.95); }

/* ── Polaroid ── */
.polaroid {
  background: #fff;
  padding: 7px 7px 26px 7px;
  display: inline-block;
  box-shadow: 2px 4px 20px rgba(0,0,0,0.7);
}
.polaroid img { display: block; }

/* ── Card stack ── */
.slide-card {
  position: absolute;
  left: 1690px;
  top: 1290px;
  width: 620px;
  height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: hsl(var(--card));
  border: 1px solid rgba(255,255,255,1);
  border-radius: calc(var(--radius) * 4);
  padding: 28px 32px;
  transition: transform 0.42s cubic-bezier(0.22,1,0.36,1), opacity 0.35s ease;
  will-change: transform, opacity;
  pointer-events: none;
}
.slide-card[data-pos="0"] {
  transform: translateY(0px);
  z-index: 12;
  opacity: 1;
  pointer-events: all;
}
.slide-card[data-pos="1"] {
  transform: translateY(18px);
  z-index: 11;
  opacity: 0.6;
}
.slide-card[data-pos="2"] {
  transform: translateY(36px);
  z-index: 10;
  opacity: 0.35;
}
.slide-card[data-pos="3"] {
  transform: translateY(54px);
  z-index: 9;
  opacity: 0.15;
}
.slide-card[data-pos="exit"] {
  transform: translateY(-90px);
  opacity: 0;
  z-index: 13;
}
.slide-card[data-pos="enter"] {
  transform: translateY(72px);
  opacity: 0;
  z-index: 8;
}

#card-nav {
  position: absolute;
  left: 1690px;
  top: 1290px;
  width: 620px;
  padding: 16px 20px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  font-family: 'Roboto Mono', monospace;
  z-index: 20;
  pointer-events: none;
  box-sizing: border-box;
}
#card-nav button {
  background: none;
  border: 1px solid rgba(255,255,255,0.22);
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  font-family: 'Roboto Mono', monospace;
  font-size: 18px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: border-color 0.15s, color 0.15s;
  pointer-events: all;
}
#card-nav button:hover {
  border-color: rgba(255,255,255,0.6);
  color: hsl(var(--foreground));
}

.card-text {
  font-size: calc(16px / var(--canvas-scale, 0.682));
  line-height: 1.68;
  color: hsl(var(--card-foreground));
  margin-bottom: 16px;
  margin-top: 28px;
  letter-spacing: -0.01em;
  flex: 1;
  overflow: hidden;
}

.card-text a {
  color: #ffffff;
  text-decoration: underline;
}
.card-text a:hover {
  color: #c4a8f0;
}
.card-text a:active {
  color: #6b21a8;
}
.card-text a:visited {
  color: #ffffff;
  text-decoration: underline;
}

.card-cta {
  display: inline-block;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  padding: 7px 0;
  width: 27%;
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
  pointer-events: all;
}
.card-cta:hover { opacity: 0.82; }

/* ── Badge sticker (MILO!) ── */
.badge-sticker {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.07em;
  border: 2.5px solid hsl(var(--border));
  padding: 5px 12px;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  border-radius: var(--radius);
  display: inline-block;
}

/* ── LinkedIn ── */
.linkedin-badge {
  background: #0A66C2;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) * 1.5);
  letter-spacing: -0.02em;
  font-family: 'Roboto Mono', monospace;
}

/* ── Pill sticker ── */
.pill-sticker {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-block;
  letter-spacing: 0.04em;
}

/* ── LEGO ── */
.lego-badge {
  background: #E3000B;
  color: #fff;
  font-family: 'Roboto Mono', monospace;
  font-weight: 900;
  font-size: 18px;
  padding: 5px 13px;
  border-radius: calc(var(--radius) * 0.5);
  letter-spacing: 0.06em;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(227,0,11,0.4);
}

/* ── Generic colored label ── */
.label-sticker {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: calc(var(--radius) * 0.5);
  display: inline-block;
  letter-spacing: 0.04em;
}

/* ── Star ── */
.star-sticker {
  font-size: 72px;
  line-height: 1;
  display: block;
  color: #e879a0;
  filter: drop-shadow(0 2px 6px rgba(232,121,160,0.4));
}

/* ── Emoji stickers ── */
.emoji-lg { font-size: 62px; display: block; line-height: 1; filter: drop-shadow(1px 2px 6px rgba(0,0,0,0.5)); }
.emoji-md { font-size: 50px; display: block; line-height: 1; filter: drop-shadow(1px 2px 5px rgba(0,0,0,0.45)); }
.emoji-sm { font-size: 40px; display: block; line-height: 1; filter: drop-shadow(1px 2px 4px rgba(0,0,0,0.4)); }

/* ── Sticker bubble (tooltip popup) ── */
.bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: hsl(var(--secondary));
  border: 2px solid white;
  border-radius: calc(var(--radius) * 2);
  padding: 20px 28px;
  font-family: 'Roboto Mono', monospace;
  font-size: 25px;
  line-height: 1.55;
  color: hsl(var(--foreground));
  white-space: normal;
  width: max-content;
  max-width: 3000px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0,0,0.2,1);
  z-index: 50;
}
.bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(255,255,255,0.15);
}
.bubble-wrap {
  position: relative;
  display: inline-block;
}
.bubble-wrap.active {
  z-index: 200;
}
.sticker:has(.bubble-wrap.active) {
  z-index: 300;
}
.bubble-wrap.active .bubble {
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.2s ease;
}
.bubble-wrap:not(.active) .bubble {
  transition: opacity 0.2s ease;
}
/* Counter-rotate each bubble to keep it straight regardless of sticker tilt */
#bw-photo1  .bubble { transform: translateX(-50%) rotate(8deg); }
#bw-phone   .bubble { transform: translateX(-50%) rotate(-6deg); }
#bw-linkedin .bubble { transform: translateX(-50%) rotate(4deg); }
#bw-llama   .bubble { transform: translateX(-50%) rotate(-10deg); }
#bw-camera  .bubble { transform: translateX(-50%) rotate(-7deg); }
#bw-book    .bubble { transform: translateX(-50%) rotate(-7deg); }
#bw-house   .bubble { transform: translateX(-50%) rotate(12deg); }
#bw-luggage .bubble { transform: translateX(-50%) rotate(-6deg); }
#bw-photo10 .bubble { transform: translateX(-50%) rotate(6deg); }
#bw-exp     .bubble { transform: translateX(-50%) rotate(5deg); }
.bubble a,
.bubble a:visited {
  color: white;
  text-decoration: underline;
}
.bubble a:hover {
  color: #c4b5fd;
}
.bubble a:active {
  color: #6b21a8;
}

/* ── Camera bubble ── */
#bw-camera .bubble {
  bottom: auto;
  top: calc(100% + 10px);
}
#bw-camera .bubble::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: rgba(255,255,255,0.15);
}
#bw-camera .bubble {
  white-space: normal;
  width: max-content;
  padding: 30px 36px;
}
.camera-bubble-heading {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 24px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cam-viewer {
  display: flex;
  align-items: center;
  gap: 15px;
}
.cam-slides {
  position: relative;
  width: 450px;
  height: 500px;
}
.cam-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.cam-slides img.cam-active {
  opacity: 1;
}
.cam-slides img:first-child {
  transform: rotate(-90deg) scale(1.111);
  transform-origin: center center;
}
.cam-prev, .cam-next {
  background: none;
  border: none;
  color: white;
  font-size: 72px;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  opacity: 0.8;
  user-select: none;
}
.cam-prev:hover, .cam-next:hover {
  opacity: 1;
}

/* ── Experience bubble ── */
#bw-exp .bubble {
  white-space: normal;
  width: max-content;
  max-width: 900px;
  padding: 20px 24px;
  bottom: auto;
  top: calc(100% + 10px);
}
#bw-exp .bubble::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: rgba(255,255,255,0.15);
}
.exp-bubble-heading {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.exp-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.exp-date {
  font-size: 18px;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
  flex-shrink: 0;
  width: 160px;
  font-family: 'Roboto Mono', monospace;
}
.exp-role {
  font-size: 22px;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 2px;
}
.exp-company {
  font-size: 18px;
  color: hsl(var(--muted-foreground));
}
.exp-company a,
.exp-company a:visited {
  color: inherit;
  text-decoration: none;
}
.exp-company a:hover {
  color: inherit;
  text-decoration: underline;
}
.exp-company a:active {
  color: #6b21a8;
}

/* ── Book bubble ── */
#bw-book .bubble {
  white-space: normal;
  width: max-content;
  max-width: 900px;
  padding: 20px 24px;
}

.book-bubble-heading {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.book-bubble-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.now-reading-card {
  flex-shrink: 0;
  width: 220px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.04);
}

.now-reading-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4a882;
  margin-bottom: 10px;
}

.now-reading-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: hsl(var(--foreground));
  margin-bottom: 8px;
}

.now-reading-author {
  font-size: 16px;
  color: hsl(var(--muted-foreground));
}

.past-books-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 320px;
}

details.past-books {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

details.past-books:last-child {
  border-bottom: none;
}

summary.past-books-label {
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

summary.past-books-label::after {
  content: '▸';
  font-size: 13px;
  transition: transform 0.2s ease;
}

details.past-books[open] summary.past-books-label::after {
  transform: rotate(90deg);
}

summary.past-books-label::-webkit-details-marker { display: none; }

.past-books-list {
  list-style: none;
  padding: 0 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.past-books-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
  border-left: 2px solid rgba(255,255,255,0.15);
}

.past-title {
  font-size: 18px;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.past-author {
  font-size: 15px;
  color: hsl(var(--muted-foreground));
}


/* ── Callout popup ── */
#callout-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
#callout-backdrop.open { display: flex; }

#callout-box {
  background: hsl(var(--card));
  border: 2px solid white;
  border-radius: calc(var(--radius) * 1.25);
  width: 360px;
  padding: 18px;
  position: relative;
  font-family: 'Roboto Mono', monospace;
}
#callout-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  color: hsl(var(--muted-foreground));
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}
#callout-close:hover { color: hsl(var(--foreground)); }
#callout-title {
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  margin-bottom: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#callout-text {
  width: 100%;
  min-height: 120px;
  background: hsl(var(--input) / 1);
  background-color: hsl(var(--input));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  line-height: 1.65;
  padding: 10px 12px;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}
#callout-text:focus { border-color: rgba(255,255,255,0.4); }

/* ── Sticker positioning & sizing ──
   Image heights use calc(targetPx / var(--canvas-scale)) so the icon
   renders at the same physical screen size on every viewport.
   --canvas-scale is set by JS in applyTransform(). The fallback 0.682
   matches the typical desktop scale so the layout is unchanged there. */
.sticker img { display: block; }
.sticker-section-break { display: none; }

#sticker-headshot { left: -50px; top: -540px; transform: rotate(-2deg); }
#sticker-headshot img { height: calc(273px / var(--canvas-scale, 0.682)); max-height: 480px; width: auto; }

#sticker-photo-1 { left: -600px; top: -320px; transform: rotate(-8deg); }
#sticker-photo-1 .sticker-btn img { height: calc(191px / var(--canvas-scale, 0.682)); }

#sticker-phone { left: 390px; top: -100px; transform: rotate(6deg); }
#sticker-phone .sticker-btn img { height: calc(136px / var(--canvas-scale, 0.682)); }

#sticker-linkedin { left: 330px; top: -210px; transform: rotate(-4deg); }

#sticker-exp { left: 395px; top: -435px; transform: rotate(-5deg); }
#sticker-exp .sticker-btn img { height: calc(115px / var(--canvas-scale, 0.682)); }

#sticker-llama { left: -520px; top: -100px; transform: rotate(10deg); }
#sticker-llama .sticker-btn img { height: calc(153px / var(--canvas-scale, 0.682)); }

#sticker-headphones { left: 0px; top: 320px; transform: rotate(-6deg); }
#sticker-headphones .sticker-btn img { height: calc(136px / var(--canvas-scale, 0.682)); }
#bw-photo10 .bubble { width: 320px; padding: 8px; }
#bw-photo10 .bubble iframe { border-radius: 12px; }

#sticker-camera { left: -300px; top: -450px; transform: rotate(7deg); }
#sticker-camera .sticker-btn img { height: calc(136px / var(--canvas-scale, 0.682)); }

#sticker-book { left: -320px; top: 300px; transform: rotate(7deg); }
#sticker-book .sticker-btn img { height: calc(170px / var(--canvas-scale, 0.682)); }

#sticker-house { left: -580px; top: 60px; transform: rotate(-12deg); }
#sticker-house .sticker-btn img { height: calc(153px / var(--canvas-scale, 0.682)); }

#sticker-luggage { left: 300px; top: 210px; transform: rotate(6deg); }
#sticker-luggage .sticker-btn img { height: calc(191px / var(--canvas-scale, 0.682)); }

/* ─────────────────────────────────────────────────────────────
   MOBILE LAYOUT  (≤ 767 px)
   JS skips the canvas transform so this becomes normal flow.
   Canvas → scrollable flex column; stickers → wrap grid.
───────────────────────────────────────────────────────────── */
@media (max-width: 767px) {

  body {
    overflow-y: auto;
    height: auto;
  }

  #viewport {
    height: auto;
    overflow: visible;
  }

  /* Canvas becomes a positioned flex column so cards can float inside it */
  #canvas {
    position: relative;
    width: 100%;
    height: auto;
    min-height: calc(var(--card-top) + 240px + 54px + 400px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    gap: 0;
  }

  /* --card-top drives both the headshot position and the card position so they
     always stay in sync. Headshot sits (headshot-height + gap) above the card. */
  #canvas { --card-top: 190px; --headshot-h: 192px; --headshot-gap: -28px; }

  /* ── Card stack ── */
  /* Headshot: bottom edge lands --headshot-gap above the card's top edge */
  #sticker-headshot {
    position: absolute;
    top: calc(var(--card-top) - var(--headshot-h) - var(--headshot-gap));
    left: 0;
    right: 0;
    margin: auto;
    width: calc(100% - 32px);
    max-width: 460px;
    display: flex;
    justify-content: center;
    transform: translateX(-20px);
    z-index: 14;
  }
  #sticker-headshot img { height: var(--headshot-h); }

  .slide-card {
    position: absolute;
    top: var(--card-top);
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 32px);
    max-width: 460px;
    height: 240px;
    overflow: hidden;
    padding: 20px;
  }

  .slide-card[data-pos="0"]     { transform: translateY(0px);   }
  .slide-card[data-pos="1"]     { transform: translateY(18px);  }
  .slide-card[data-pos="2"]     { transform: translateY(36px);  }
  .slide-card[data-pos="3"]     { transform: translateY(54px);  }
  .slide-card[data-pos="exit"]  { transform: translateY(-90px); }
  .slide-card[data-pos="enter"] { transform: translateY(72px);  }

  #card-nav {
    position: absolute;
    top: calc(var(--card-top) - 42px);
    left: 0;
    right: 0;
    margin: auto;
    width: calc(100% - 32px);
    max-width: 460px;
    padding: 0;
    flex-direction: row;
    justify-content: flex-end;
    gap: 6px;
    box-sizing: border-box;
  }

  .card-cta { padding: 10px 20px; width: auto; }

  /* Card text: fixed readable size (no canvas scale on mobile) */
  .card-text {
    font-size: 16px;
    margin-top: 4px;
    margin-bottom: 12px;
  }

  /* ── Sticker grid ── */
  #content-hub {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding-top: calc(var(--card-top) + 240px + 54px + 16px);
  }

  .sticker {
    position: static;
    transform: none;
  }

  /* ID-specific sticker rules carry higher specificity than .sticker,
     so their rotate() transforms must be explicitly cleared here.
     A transformed parent creates a containing block for position:fixed
     children — leaving rotations on would tilt the bubbles. */
  #sticker-photo-1,
  #sticker-phone,
  #sticker-linkedin,
  #sticker-exp,
  #sticker-llama,
  #sticker-headphones,
  #sticker-camera,
  #sticker-book,
  #sticker-house,
  #sticker-luggage { transform: none; }

  /* All sticker icons at a consistent mobile size (scoped to the button, not bubble images) */
  .sticker .sticker-btn img           { height: 100px; }
  #sticker-photo-1 .sticker-btn img   { height: 120px; }
  #sticker-book .sticker-btn img      { height: 120px; }
  #sticker-luggage .sticker-btn img   { height: 120px; }
  #sticker-headshot img               { height: 192px; }

  .sticker-section-break { display: none; }

  /* Scattered layout — relative offsets + per-image rotations break up the grid.
     Rotations are on img (not the container) so position:fixed bubbles are unaffected. */
  #sticker-photo-1    { position: relative; top: 14px; left: -20px; }
  #sticker-photo-1 .sticker-btn img    { transform: rotate(9deg); }

  #sticker-phone      { position: relative; top: -6px; left: 4px; }
  #sticker-phone .sticker-btn img      { transform: rotate(-7deg); }

  #sticker-linkedin   { position: relative; top: 20px; left: 10px; }

  #sticker-exp        { position: relative; top: -14px; left: 18px; }
  #sticker-exp .sticker-btn img        { transform: rotate(4deg); }

  #sticker-llama      { position: relative; top: 8px; left: 0px; }
  #sticker-llama .sticker-btn img      { transform: rotate(-11deg); }

  #sticker-headphones { position: relative; top: -4px; left: -14px; }
  #sticker-headphones .sticker-btn img { transform: rotate(7deg); }

  #sticker-camera     { position: relative; top: 8px; left: -14px; }
  #sticker-camera .sticker-btn img     { transform: rotate(-4deg); }

  #sticker-book       { position: relative; top: -8px; left: 6px; }
  #sticker-book .sticker-btn img       { transform: rotate(-8deg); }

  #sticker-house      { position: relative; top: 16px; left: 12px; }
  #sticker-house .sticker-btn img      { transform: rotate(6deg); }

  #sticker-luggage    { position: relative; top: -20px; left: 14px; }
  #sticker-luggage .sticker-btn img    { transform: rotate(12deg); }

  /* ── Bubbles ── */
  /* Fixed at viewport bottom so they're always fully visible */
  .bubble {
    position: fixed;
    bottom: 20px;
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
    width: calc(100vw - 40px);
    max-width: 400px;
    font-size: 15px;
    padding: 16px 20px;
    z-index: 1000;
  }

  /* Reset per-sticker bubble rotations */
  #bw-photo1 .bubble, #bw-phone .bubble, #bw-linkedin .bubble,
  #bw-llama .bubble, #bw-camera .bubble, #bw-book .bubble,
  #bw-house .bubble, #bw-luggage .bubble, #bw-photo10 .bubble,
  #bw-exp .bubble { transform: translateX(-50%); }

  /* Camera & exp bubbles normally open downward — keep fixed bottom */
  #bw-camera .bubble,
  #bw-exp .bubble { bottom: 20px; top: auto; }

  /* Suppress the tail arrow (bubble is detached from sticker on mobile) */
  .bubble::after { display: none; }

  /* Override desktop max-content/900px widths — ID specificity requires ID overrides */
  #bw-exp .bubble,
  #bw-book .bubble,
  #bw-camera .bubble {
    width: calc(100vw - 40px);
    max-width: 400px;
    overflow-y: auto;
    max-height: 60vh;
  }

  /* Experience bubble: stack date above role instead of side-by-side */
  #bw-exp .bubble .exp-row             { flex-direction: column; gap: 2px; }
  #bw-exp .bubble .exp-date            { width: auto; }
  /* Experience font sizes scaled to match desktop appearance */
  #bw-exp .bubble .exp-bubble-heading  { font-size: 12px; margin-bottom: 10px; }
  #bw-exp .bubble .exp-role            { font-size: 15px; }
  #bw-exp .bubble .exp-date            { font-size: 12px; }
  #bw-exp .bubble .exp-company         { font-size: 12px; }

  /* Book bubble: stack now-reading and book lists vertically */
  #bw-book .bubble .book-bubble-layout  { flex-direction: column; gap: 16px; }
  #bw-book .bubble .now-reading-card    { width: 100%; }
  #bw-book .bubble .past-books-stack    { min-width: 0; width: 100%; }
  /* Book font sizes scaled to match desktop appearance */
  #bw-book .bubble .book-bubble-heading { font-size: 12px; margin-bottom: 10px; }
  #bw-book .bubble .now-reading-label   { font-size: 11px; }
  #bw-book .bubble .now-reading-title   { font-size: 15px; }
  #bw-book .bubble .now-reading-author  { font-size: 12px; }
  #bw-book .bubble .past-books-label    { font-size: 13px; }
  #bw-book .bubble .past-title          { font-size: 13px; }
  #bw-book .bubble .past-author         { font-size: 11px; }

  /* Camera bubble: let the slides fill available width */
  #bw-camera .bubble { padding: 16px 20px; }
  #bw-camera .bubble .camera-bubble-heading { font-size: 12px; margin-bottom: 10px; }
  #bw-camera .bubble .cam-viewer { gap: 8px; }
  #bw-camera .bubble .cam-slides { width: 100%; min-width: 0; height: 260px; }

  /* Spotify embed bubble */
  #bw-photo10 .bubble { padding: 12px; }
  #bw-photo10 .bubble iframe { width: 100%; }
}
