/* ============================================================
   Greendragonfly · The Fairy Wall
   Indie 2000s personal web + tactile skeuomorphic scrapbook
   ============================================================ */

@font-face {
  font-family: "Discipline Notes";
  src: url("fairycore/Screen_2/Discipline Notes.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fairycore/fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fairycore/fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url("fairycore/fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url("fairycore/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fairycore/fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fairycore/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fairycore/fonts/ibm-plex-mono-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fairycore/fonts/ibm-plex-mono-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Patrick Hand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fairycore/fonts/patrick-hand-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Patrick Hand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fairycore/fonts/patrick-hand-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --forest: #556627;
  --forest-deep: #3d4b19;
  --moss: #4b5a22;
  --brown: #7c3b0e;
  --brown-deep: #522507;
  --cork: #b07a47;
  --peach: #dcae96;
  --cream: #fdf5e6;
  --washi: #f3e8d2;
  --ivory: #fffaf0;
  --ink: #322417;
  --ink-soft: #5c4835;
  --shadow: rgba(20, 16, 10, 0.34);

  --vvh: 100dvh;

  --serif: "Cormorant Garamond", Georgia, "Iowan Old Style", serif;
  --hand: "Discipline Notes", "Patrick Hand", "Caveat", cursive;
  --type: "IBM Plex Mono", "Courier New", monospace;
}

/* Switch handwritten voice to Patrick Hand in Turkish so every ç/ğ/ı/İ/ö/ş/ü glyph shares one uniform hand */
html[lang="tr"] {
  --hand: "Patrick Hand", "Caveat", cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

::selection {
  background: rgba(85, 102, 39, 0.28);
  color: var(--ink);
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #22261a;
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#app {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

/* ---------- shared tactile atmosphere ---------- */
.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.04;
  background-image: radial-gradient(rgba(50, 36, 23, 0.5) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  background: radial-gradient(
    118% 98% at 50% 44%,
    transparent 54%,
    rgba(28, 22, 12, 0.25) 86%,
    rgba(18, 14, 8, 0.5) 100%
  );
}

.dust {
  position: fixed;
  inset: 0;
  z-index: 58;
  pointer-events: none;
  overflow: hidden;
}
.mote {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 250, 230, 0.65);
  animation: drift linear infinite;
}
@keyframes drift {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  12% { opacity: 0.65; }
  88% { opacity: 0.4; }
  100% { transform: translateY(-115vh) translateX(30px); opacity: 0; }
}

/* ---------- old-web bracketed language switch ---------- */
.lang-switch {
  position: fixed;
  top: max(env(safe-area-inset-top), 10px);
  right: max(env(safe-area-inset-right), 12px);
  z-index: 75;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--cream);
  border: 1px solid var(--brown);
  padding: 2px 5px;
  box-shadow: 2px 2px 0 rgba(22, 16, 10, 0.38);
}
.lang-sep {
  font-family: var(--type);
  font-size: 11px;
  color: var(--ink-soft);
}
.lang-btn {
  border: none;
  background: transparent;
  font-family: var(--type);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 4px 6px;
  cursor: pointer;
}
.lang-btn.is-active {
  background: var(--forest);
  color: var(--ivory);
}
.lang-btn:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 2px;
}

/* ---------- screens ---------- */
.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.screen.is-active {
  opacity: 1;
}
.screen[hidden] {
  display: none;
}

/* ---------- tactile paper / vintage-web buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--type);
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  min-height: 44px;
  padding: 10px 18px;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.42),
    inset -1px -1px 0 rgba(0, 0, 0, 0.16),
    0 3px 6px rgba(22, 16, 10, 0.34);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow:
    inset 1px 1px 0 rgba(0, 0, 0, 0.15),
    0 1px 3px rgba(22, 16, 10, 0.34);
}
.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.btn:focus-visible {
  outline: 2px dashed var(--ivory);
  outline-offset: 3px;
}

.btn--pin {
  background: linear-gradient(180deg, #5d702a 0%, var(--forest) 60%, var(--forest-deep) 100%);
  border-color: #28320f;
  color: var(--ivory);
  text-shadow: 0 -1px 0 rgba(16, 22, 6, 0.6);
}
.btn--ghost {
  background: linear-gradient(180deg, #fffdf8 0%, var(--washi) 100%);
  color: var(--brown-deep);
  border-color: var(--brown);
}
.btn--again {
  background: linear-gradient(180deg, #e7c0ab 0%, var(--peach) 100%);
  border-color: var(--brown-deep);
  color: var(--ink);
}
.btn--full {
  width: 100%;
}

/* ===================== SCREEN 0 · INDIE SCRAPBOOK DESK ===================== */
.screen--code {
  background:
    linear-gradient(rgba(40, 46, 24, 0.28), rgba(28, 22, 12, 0.56)),
    url("fairycore/Screen_1/background.jpeg") center/cover no-repeat;
}

.code-scroll {
  height: 100%;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(env(safe-area-inset-top), 48px) 14px max(env(safe-area-inset-bottom), 20px);
}

.desk-topbar {
  width: min(100%, 980px);
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.indie-ribbon {
  display: inline-block;
  font-family: var(--type);
  font-size: clamp(11px, 2.9vw, 12px);
  white-space: nowrap;
  color: var(--cream);
  background: rgba(42, 32, 18, 0.84);
  border: 1px dashed rgba(253, 245, 230, 0.45);
  padding: 4px 10px;
  box-shadow: 2px 2px 0 rgba(16, 12, 6, 0.36);
  text-decoration: none;
}
.indie-ribbon--link:hover {
  border-color: var(--peach);
  color: var(--ivory);
}

/* Horizontal side-scroll strip (touch swipe + mouse wheel/drag + scrollbar) */
.mobile-flowing {
  margin-top: 12px;
  border-top: 1px dashed rgba(124, 59, 14, 0.25);
  padding-top: 10px;
}
.flowing-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  touch-action: pan-x;
  width: 100%;
  padding: 6px 2px 8px;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 59, 14, 0.48) rgba(124, 59, 14, 0.08);
}
.flowing-viewport::-webkit-scrollbar {
  height: 6px;
}
.flowing-viewport::-webkit-scrollbar-track {
  background: rgba(124, 59, 14, 0.08);
}
.flowing-viewport::-webkit-scrollbar-thumb {
  background: rgba(124, 59, 14, 0.45);
}
.flowing-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.flowing-track {
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 2px 4px;
}
.flowing-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 96px;
  background: var(--ivory);
  border: 1px solid rgba(124, 59, 14, 0.28);
  padding: 4px 4px 7px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(20, 14, 8, 0.18);
  text-align: center;
  transition: transform 0.16s ease;
}
.flowing-track--compact .flowing-card {
  width: 78px;
  padding: 3px 3px 5px;
}
.flowing-card:nth-child(odd) { transform: rotate(-1.5deg); }
.flowing-card:nth-child(even) { transform: rotate(1.3deg); }
.flowing-card:hover { transform: rotate(0deg) translateY(-2px); }
.flowing-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.flowing-card span {
  display: block;
  margin-top: 3px;
  font-family: var(--hand);
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flowing-track--compact .flowing-card span {
  font-size: 11px;
}

.desk-spread {
  width: min(100%, 980px);
  margin: auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

/* Left desk sheet: hidden extra collage parts on phone so mobile stays crisp & fast */
.desk-collage {
  display: none;
}

.tape-corner {
  position: absolute;
  width: 68px;
  height: 20px;
  background: rgba(228, 195, 166, 0.86);
  border-left: 1px dashed rgba(255, 250, 240, 0.65);
  border-right: 1px dashed rgba(255, 250, 240, 0.65);
  box-shadow: 0 2px 4px rgba(18, 14, 8, 0.25);
  z-index: 4;
  pointer-events: none;
}
.tape-corner--tl {
  top: -8px;
  left: -14px;
  transform: rotate(-28deg);
}
.tape-corner--br {
  bottom: -8px;
  right: -14px;
  transform: rotate(-28deg);
}

.parcel-card {
  position: relative;
  min-width: 0;
  width: min(100%, 420px);
  margin: 0 auto;
  background: linear-gradient(175deg, #fffbf2 0%, var(--cream) 72%, #f1e2c8 100%);
  border: 1.5px solid var(--brown);
  border-radius: 2px;
  padding: 14px 16px 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 34px rgba(16, 12, 6, 0.38);
}

.parcel-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(124, 59, 14, 0.28);
  pointer-events: none;
}

.washi-strip {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  width: 92px;
  height: 22px;
  background: rgba(220, 174, 150, 0.92);
  border-left: 1px dashed rgba(255, 250, 240, 0.7);
  border-right: 1px dashed rgba(255, 250, 240, 0.7);
  box-shadow: 0 2px 5px rgba(18, 14, 8, 0.28);
  z-index: 3;
}

/* ===================== STACKED PRINTED PHOTO DECK (360 FLING) ===================== */
.deck-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-deck {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 298px;
  margin: 6px auto 2px;
  touch-action: none;
  user-select: none;
}

.photo-deck--mobile {
  max-width: 280px;
  height: 244px;
  margin: 2px auto;
}

.parcel-mobile-deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.stack-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: 100%;
  background: linear-gradient(175deg, #fffdf9 0%, var(--ivory) 78%, #f1e5ce 100%);
  border: 1px solid rgba(110, 82, 52, 0.34);
  border-radius: 2px;
  padding: 8px 8px 34px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 20px rgba(20, 14, 6, 0.24);
  transform-origin: 50% 60%;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
  will-change: transform, opacity;
}

.stack-card[data-pos="0"] {
  z-index: 4;
  cursor: grab;
  transform: translate(-50%, -50%) rotate(-0.8deg) scale(1);
}
.stack-card[data-pos="0"].is-grabbing {
  cursor: grabbing;
  transition: none;
  box-shadow: 0 18px 34px rgba(18, 12, 4, 0.34);
}
.stack-card[data-pos="1"] {
  z-index: 3;
  pointer-events: none;
  transform: translate(calc(-50% + 8px), calc(-50% + 5px)) rotate(3.4deg) scale(0.97);
}
.stack-card[data-pos="2"] {
  z-index: 2;
  pointer-events: none;
  transform: translate(calc(-50% - 9px), calc(-50% + 7px)) rotate(-3.8deg) scale(0.94);
}
.stack-card[data-pos="3"] {
  z-index: 1;
  pointer-events: none;
  transform: translate(calc(-50% + 4px), calc(-50% + 10px)) rotate(1.8deg) scale(0.91);
  opacity: 0.9;
}

.stack-card__photo {
  position: relative;
  overflow: hidden;
  background: #ede3cf;
  border: 1px solid rgba(110, 82, 52, 0.2);
}
.stack-card__photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 292px;
  max-height: 236px;
  object-fit: contain;
  pointer-events: none;
}
.photo-deck--mobile .stack-card__photo img {
  max-width: 248px;
  max-height: 192px;
}

.stack-card__marker {
  position: absolute;
  left: 9px;
  right: 64px;
  bottom: 5px;
  font-family: var(--hand);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
  color: #1f170f;
  transform: rotate(-1.4deg);
  transform-origin: left center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  pointer-events: none;
}
.photo-deck--mobile .stack-card__marker {
  font-size: 13px;
  left: 8px;
  right: 58px;
  bottom: 4px;
}

.stack-card__price {
  position: absolute;
  right: 8px;
  bottom: 7px;
  font-family: var(--type);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--brown);
  white-space: nowrap;
  pointer-events: none;
}

.stack-card__tape {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 56px;
  height: 16px;
  background: rgba(224, 185, 158, 0.86);
  border-left: 1px dashed rgba(255, 250, 240, 0.65);
  border-right: 1px dashed rgba(255, 250, 240, 0.65);
  pointer-events: none;
}

.deck-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.deck-controls {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.deck-btn {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid var(--brown);
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--type);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.deck-btn:hover {
  background: var(--washi);
}
.deck-count {
  font-family: var(--type);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
  min-width: 56px;
  text-align: center;
}
.deck-info-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.deck-info-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--brown);
  background: var(--ivory);
  color: var(--brown);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.16s ease, color 0.16s ease;
}
.deck-info-btn:hover,
.deck-info-btn[aria-expanded="true"] {
  background: var(--forest);
  border-color: var(--forest-deep);
  color: var(--ivory);
}
.deck-info-popover {
  position: absolute;
  bottom: calc(100% + 9px);
  right: -8px;
  width: min(246px, calc(100vw - 48px));
  padding: 9px 11px;
  background: #fffcf4;
  border: 1px solid var(--brown);
  border-radius: 2px;
  box-shadow: 0 10px 24px rgba(18, 12, 4, 0.28);
  font-family: var(--type);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink);
  text-align: left;
  z-index: 25;
}
.deck-info-popover[hidden] {
  display: none;
}
.deck-info-popover::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 15px;
  border-width: 6px;
  border-style: solid;
  border-color: var(--brown) transparent transparent transparent;
}

.parcel-mobile-photo {
  position: relative;
  border: 1px solid rgba(124, 59, 14, 0.32);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d8cdb6;
}
.parcel-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.parcel-stamp {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(253, 245, 230, 0.94);
  border: 1.5px dashed var(--forest-deep);
  color: var(--forest-deep);
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
  box-shadow: 2px 2px 0 rgba(22, 16, 10, 0.25);
}

.parcel-body {
  position: relative;
  min-width: 0;
  padding: 12px 4px 2px;
  text-align: center;
}

.ticket-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--type);
  font-size: 11px;
  color: var(--ink-soft);
  border-bottom: 1px dashed rgba(124, 59, 14, 0.28);
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.pin-progress {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pin-progress .pip {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--brown);
  background: transparent;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.pin-progress .pip.is-on {
  background: var(--forest);
  border-color: var(--forest-deep);
  transform: scale(1.15);
}

.parcel-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(25px, 6vw, 31px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

.parcel-lead {
  margin: 8px auto 0;
  max-width: 34ch;
  font-family: var(--serif);
  font-size: clamp(16px, 4.1vw, 17.5px);
  line-height: 1.38;
  color: var(--ink-soft);
}

.code-form {
  margin-top: 14px;
}

.pin-slots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 13px;
}
.pin-slots.is-shake {
  animation: pinShake 0.34s ease;
}
@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  45% { transform: translateX(6px); }
  70% { transform: translateX(-4px); }
}

.pin-digit {
  width: 54px;
  height: 58px;
  border: 1.5px solid var(--brown);
  border-radius: 2px;
  background: #fffdf8;
  box-shadow:
    inset 0 2px 4px rgba(38, 28, 16, 0.18),
    2px 2px 0 rgba(124, 59, 14, 0.16);
  text-align: center;
  font-family: var(--type);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  caret-color: var(--forest);
}
.pin-digit:focus {
  outline: 2px solid var(--forest);
  outline-offset: 1px;
  background: #ffffff;
}
.pin-digit.is-filled {
  background: #f9f3e3;
  border-color: var(--forest-deep);
}

.code-feedback {
  margin: 0 0 11px;
  padding: 8px 10px;
  border: 1px dashed var(--brown);
  background: #fae8dc;
  color: var(--brown-deep);
  font-family: var(--type);
  font-size: 12.5px;
  line-height: 1.35;
}
.code-feedback__text {
  margin: 0;
}
.code-feedback__link {
  margin-top: 5px;
  border: none;
  background: transparent;
  padding: 2px 0;
  font-family: var(--type);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--forest-deep);
  text-decoration: underline;
  cursor: pointer;
}

.parcel-actions {
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px dashed rgba(124, 59, 14, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.text-link,
.dolap-link {
  border: none;
  background: transparent;
  padding: 4px 2px;
  font-family: var(--type);
  font-size: 12.5px;
  color: var(--brown);
  text-decoration: none;
  cursor: pointer;
}
.text-link:hover,
.dolap-link:hover {
  color: var(--forest-deep);
  text-decoration: underline;
}
.dolap-link {
  color: var(--ink-soft);
}

/* ===================== SCREEN 1 · LARGE MOBILE CAMERA & DESKTOP WORKBENCH ===================== */
.screen--camera {
  position: fixed;
  inset: 0;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  padding:
    max(env(safe-area-inset-top), 8px)
    8px
    max(env(safe-area-inset-bottom), 8px);
  background:
    linear-gradient(rgba(253, 245, 230, 0.08), rgba(68, 82, 30, 0.25)),
    url("fairycore/Screen_1/background.jpeg") center/cover no-repeat;
}

.camera-topbar {
  width: min(100%, 960px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-right: 78px; /* clear of top-right [EN/TR] box */
  z-index: 12;
}

.hud-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid var(--brown);
  border-radius: 2px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--type);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(22, 16, 10, 0.35);
}
.hud-tab:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(22, 16, 10, 0.35);
}

.parcel-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  background: #332719;
  border: 1px dashed rgba(253, 245, 230, 0.45);
  color: var(--cream);
  font-family: var(--type);
  font-size: 12px;
  white-space: nowrap;
  max-width: 50vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #96c95a;
  flex-shrink: 0;
}

.camera-stage {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-workbench {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  height: 100%;
}

/* Mobile-first HUGE camera sizing: fills ~94vw or full safe height without overflowing */
.camera-assembly {
  --cam-w: clamp(230px, min(94vw, calc((100dvh - 88px) * 0.54)), 420px);
  width: var(--cam-w);
  height: calc(var(--cam-w) * 1.82);
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.camera {
  position: relative;
  width: var(--cam-w);
  aspect-ratio: 966 / 1629;
  filter: drop-shadow(0 18px 26px rgba(20, 15, 8, 0.48));
  animation: floatCam 6s ease-in-out infinite;
}
@keyframes floatCam {
  0%, 100% { transform: translateY(0) rotate(-0.3deg); }
  50% { transform: translateY(-5px) rotate(0.3deg); }
}

.camera__body {
  position: absolute;
  left: 3.727%;
  top: 11.357%;
  width: 92.133%;
  height: auto;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

.camera__btn {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  user-select: none;
  transition: transform 0.1s ease, filter 0.1s ease;
  filter: drop-shadow(0 2px 3px rgba(20, 14, 6, 0.38));
}
.camera__btn--main {
  left: 32.816%;
  top: 71.639%;
  width: 16.356%;
  height: auto;
  transform-origin: 50% 50%;
}
.camera__btn--flip {
  left: 58.903%;
  top: 66.053%;
  width: 8.903%;
  height: auto;
  transform-origin: 50% 50%;
}

.viewfinder {
  position: absolute;
  left: 15.42%;
  top: 16.33%;
  width: 52.35%;
  height: 40.9%;
  z-index: 1;
  overflow: hidden;
  background: #13170e;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.65);
}
.viewfinder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.88) contrast(1.04) sepia(0.09) brightness(1.02);
}
.viewfinder video.mirror {
  transform: scaleX(-1);
}
.viewfinder::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.14) 0%, transparent 34%);
}

.viewfinder__reticle {
  position: absolute;
  inset: 9%;
  pointer-events: none;
  z-index: 2;
}
.viewfinder__reticle span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(255, 250, 230, 0.6);
  border-style: solid;
  border-width: 0;
}
.viewfinder__reticle span:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.viewfinder__reticle span:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.viewfinder__reticle span:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.viewfinder__reticle span:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.vf-live {
  position: absolute;
  top: 6%;
  left: 7%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  background: rgba(18, 20, 12, 0.82);
  color: var(--cream);
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.vf-live__dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8fd158;
}
.vf-live.is-off .vf-live__dot {
  background: #d89860;
}

.viewfinder__badge {
  position: absolute;
  top: 6%;
  right: 7%;
  z-index: 3;
  padding: 2px 6px;
  background: rgba(18, 20, 12, 0.8);
  color: var(--cream);
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.viewfinder__off {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 10% 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--cream);
  background: #1b2115;
}
.viewfinder__off[hidden] {
  display: none;
}
.viewfinder__msg {
  margin: 0;
  font-family: var(--type);
  font-size: 11.5px;
  line-height: 1.35;
}
.viewfinder__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 150px;
}
.vf-btn {
  border: 1px dashed rgba(253, 245, 230, 0.5);
  background: rgba(253, 245, 230, 0.14);
  color: var(--cream);
  font-family: var(--type);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 8px;
  cursor: pointer;
}
.vf-btn--primary {
  background: var(--forest);
  border-style: solid;
  border-color: rgba(255, 250, 240, 0.4);
}

.viewfinder__flash {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #fffdf5;
  opacity: 0;
  pointer-events: none;
}
.viewfinder__flash.fire {
  animation: flash 0.45s ease-out;
}
@keyframes flash {
  0% { opacity: 0; }
  12% { opacity: 0.95; }
  100% { opacity: 0; }
}

.deco {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 4px 5px rgba(32, 24, 12, 0.32));
}
.deco--ribbon {
  left: 69.484%;
  top: 13.156%;
  width: 24.375%;
  transform-origin: 38.2% 25.9%;
}
.deco--star {
  left: 0.787%;
  top: 47.079%;
  width: 24.128%;
  transform-origin: 50.6% 48.6%;
}
/* Tucked snugly on bottom-right strap loop so camera scales much larger on mobile */
.deco--charm {
  left: 73%;
  top: 82%;
  width: 22.5%;
  transform-origin: 49.6% 3.1%;
}

.dangle { animation: dangle 3.8s ease-in-out infinite; }
@keyframes dangle {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
.swing { animation: swing 4.5s ease-in-out infinite; }
@keyframes swing {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(6deg); }
}
.sway { animation: sway 7s ease-in-out infinite; }
@keyframes sway {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(7deg) translateY(-5px); }
}

.hotspot {
  position: absolute;
  z-index: 6;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}
.hotspot--main {
  left: 30%;
  top: 69%;
  width: 22%;
  height: 13.5%;
}
.hotspot--flip {
  left: 56%;
  top: 63.5%;
  width: 15%;
  height: 9.2%;
}
.hotspot:focus-visible {
  outline: 2px dashed rgba(255, 250, 230, 0.85);
  outline-offset: 2px;
}

.camera:has(.hotspot--main:hover) .camera__btn--main { transform: scale(1.04); }
.camera:has(.hotspot--main:active) .camera__btn--main { transform: scale(0.94); filter: brightness(0.75); }
.camera:has(.hotspot--flip:hover) .camera__btn--flip { transform: scale(1.06); }
.camera:has(.hotspot--flip:active) .camera__btn--flip { transform: scale(0.94); filter: brightness(0.75); }

.cam-label {
  position: absolute;
  z-index: 7;
  left: 41.5%;
  top: 36.8%;
  transform: translate(-50%, -50%) scale(0.86);
  background: rgba(28, 22, 12, 0.88);
  color: var(--cream);
  font-family: var(--type);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px dashed rgba(253, 245, 230, 0.4);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.cam-label.show {
  animation: camLabel 1.2s ease forwards;
}
@keyframes camLabel {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.86); }
  16% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  75% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

.camera-notes {
  display: none;
}

.camera-bottom {
  z-index: 10;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hint {
  font-family: var(--type);
  font-size: clamp(12px, 3.2vw, 14px);
  line-height: 1.25;
  color: var(--cream);
  background: rgba(38, 29, 16, 0.78);
  border: 1px dashed rgba(253, 245, 230, 0.35);
  padding: 5px 12px;
  margin: 0;
  max-width: min(94vw, 480px);
  text-align: center;
}
.hint.is-warn {
  color: #ffe9c7;
}

/* ===================== SCREEN 2 · POLAROID REVIEW ===================== */
.screen--review {
  overflow: hidden;
  background:
    linear-gradient(rgba(36, 28, 15, 0.44), rgba(28, 22, 12, 0.62)),
    url("fairycore/Screen_2/background.jpeg") center/cover no-repeat;
}

.polaroid-modal {
  width: 100%;
  height: var(--vvh, 100dvh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: max(env(safe-area-inset-top), 14px) 12px max(env(safe-area-inset-bottom), 14px);
  overflow: hidden;
}

.polaroid-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.polaroid {
  position: relative;
  width: min(134vw, calc((var(--vvh, 100dvh) - 106px) * 0.8), 640px);
  aspect-ratio: 1122 / 1402;
  container-type: size;
  filter: drop-shadow(0 24px 32px rgba(18, 12, 5, 0.55));
  animation: printOut 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes printOut {
  0% { transform: translateY(-10%) scale(0.95); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

.polaroid__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

.polaroid__photo {
  position: absolute;
  z-index: 1;
  left: 34.8%;
  top: 26.7%;
  width: 40.5%;
  height: 35.1%;
  overflow: hidden;
  background: #171611;
  background-size: cover;
  background-position: center;
}
.polaroid__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.12), transparent 42%);
}

.polaroid__develop {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #d8cdb6;
  opacity: 1;
}
.polaroid__develop.done {
  animation: develop 2s ease-out forwards;
}
@keyframes develop {
  0% { opacity: 1; background: #cfc4ad; }
  100% { opacity: 0; }
}

.polaroid__note {
  position: absolute;
  z-index: 4;
  left: 34.5%;
  width: 39%;
  top: 62.3%;
  height: 9.2%;
}
#noteInput {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-family: var(--hand);
  font-size: max(16px, 3.3cqw);
  line-height: 1.08;
  color: #2b2114;
  caret-color: var(--forest);
  text-align: center;
  padding: 2px 2px 0;
}
#noteInput::placeholder {
  color: rgba(84, 64, 42, 0.56);
}
#noteInput:focus-visible {
  background: rgba(85, 102, 39, 0.08);
}

.polaroid__date {
  position: absolute;
  z-index: 4;
  left: 34.8%;
  top: 72.1%;
  font-family: var(--hand);
  font-size: max(13px, 2.8cqw);
  color: #2a1c10;
  transform: rotate(-3deg);
  pointer-events: none;
}

.polaroid__count {
  position: absolute;
  z-index: 4;
  right: 30%;
  top: 72.4%;
  font-family: var(--type);
  font-size: max(11px, 2cqw);
  color: rgba(74, 57, 38, 0.72);
  pointer-events: none;
}

.review-actions {
  flex: 0 0 auto;
  z-index: 10;
  width: min(92vw, 480px);
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.review-actions .btn {
  flex: 1 1 140px;
}

.review-error {
  margin: 0;
  padding: 7px 14px;
  background: var(--cream);
  border: 1px dashed var(--brown);
  color: var(--brown-deep);
  font-family: var(--type);
  font-size: 13px;
  text-align: center;
  z-index: 12;
}

/* ===================== SCREEN 3 · THE FAIRY WALL ===================== */
.screen--wall {
  display: block;
  padding: 0;
  background:
    linear-gradient(rgba(26, 22, 12, 0.56), rgba(24, 20, 10, 0.66)),
    url("fairycore/Screen_3/background.png") center/cover fixed no-repeat;
  overflow: hidden;
}

.wall-scroll {
  height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: max(env(safe-area-inset-top), 46px) 14px max(env(safe-area-inset-bottom), 44px);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--cork) rgba(28, 22, 12, 0.5);
}

.wall-head {
  text-align: center;
  margin: 0 auto 20px;
  max-width: 720px;
}
.wall-title {
  width: min(88vw, 540px);
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(15, 10, 4, 0.55));
}
.wall-sub {
  font-family: var(--hand);
  font-size: clamp(20px, 5vw, 27px);
  color: var(--cream);
  margin: 6px 0 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.wall-meta-bar {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.archive-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 14px 7px 26px;
  background: linear-gradient(180deg, #fffdf8 0%, var(--washi) 100%);
  color: var(--ink);
  border: 1.5px solid var(--brown);
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(15, 10, 4, 0.36);
}
.archive-tag__eyelet {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #423320;
  border: 1.5px solid #b58d46;
}
.archive-tag__num {
  font-family: var(--type);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 600;
  color: var(--forest-deep);
}
.archive-tag__unit {
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--brown);
}

.corkboard {
  position: relative;
  width: min(96vw, 1060px);
  margin: 0 auto;
  border-radius: 6px;
  padding: 14px;
  background: linear-gradient(145deg, #9d6838 0%, #7a4b24 50%, #633b1a 100%);
  border: 2px solid #3f230d;
  box-shadow:
    inset 0 2px 2px rgba(255, 232, 198, 0.35),
    inset 0 -3px 6px rgba(20, 14, 8, 0.65),
    0 22px 46px rgba(12, 10, 8, 0.62);
}

.corkboard__bezel {
  position: absolute;
  inset: 14px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
  box-shadow: inset 0 3px 18px rgba(18, 12, 6, 0.52);
}

.corkboard__pins {
  position: relative;
  z-index: 1;
  border-radius: 2px;
  background-color: #b47e4c;
  background-image: url("fairycore/Screen_3/cork_tile.jpg");
  background-size: 360px auto;
  background-repeat: repeat;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 22px;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
  padding: 32px 16px 44px;
  min-height: 54vh;
}

.wall-empty {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 28px 16px;
  font-family: var(--type);
  font-size: 14px;
  color: var(--ivory);
}

.card {
  --rot: 0deg;
  --oy: 0px;
  position: relative;
  width: 152px;
  background: linear-gradient(175deg, #fffdf8 0%, var(--ivory) 70%, #f3e8d2 100%);
  padding: 10px 10px 30px;
  border-radius: 2px;
  border: 1px solid rgba(110, 82, 52, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 16px rgba(20, 12, 4, 0.44);
  transform: translateY(var(--oy)) rotate(var(--rot));
  transform-origin: 50% 0;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  animation: settle 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.card.is-rotating {
  cursor: grabbing;
  animation: none !important;
  transition: none !important;
  z-index: 8;
}
@keyframes settle {
  0% { transform: translateY(calc(var(--oy) - 18px)) rotate(calc(var(--rot) - 4deg)); opacity: 0; }
  100% { transform: translateY(var(--oy)) rotate(var(--rot)); opacity: 1; }
}
.card.swaying {
  animation:
    settle 0.75s cubic-bezier(0.22, 1, 0.36, 1) both,
    cardSway 6s ease-in-out 0.9s infinite;
}
@keyframes cardSway {
  0%, 100% { transform: translateY(var(--oy)) rotate(var(--rot)); }
  50% { transform: translateY(var(--oy)) rotate(calc(var(--rot) + 1.2deg)); }
}

.card.just-pinned {
  outline: 2px solid var(--cream);
  box-shadow: 0 14px 28px rgba(20, 12, 4, 0.58);
}

.card:hover,
.card:focus-visible {
  transform: translateY(calc(var(--oy) - 4px)) rotate(0deg) scale(1.05);
  box-shadow: 0 16px 28px rgba(20, 12, 4, 0.56);
  z-index: 6;
  outline: none;
}

.card__photo {
  width: 100%;
  aspect-ratio: 452 / 489;
  background: #cbbda2;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.22);
}

.card__note {
  font-family: var(--hand);
  font-size: 14px;
  line-height: 1.12;
  color: #2b2114;
  text-align: center;
  margin-top: 8px;
  min-height: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
}

.card__num {
  position: absolute;
  left: 10px;
  bottom: 7px;
  font-family: var(--type);
  font-size: 11px;
  color: var(--ink-soft);
}

.card__date {
  position: absolute;
  right: 10px;
  bottom: 7px;
  font-family: var(--hand);
  font-size: 12.5px;
  color: #3a2a18;
  transform: rotate(-4deg);
}

.pin {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  z-index: 6;
}
.pin--red {
  background: radial-gradient(circle at 36% 30%, #ff9381, #b22b1c 72%);
  border-radius: 50%;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.42);
}
.pin--brass {
  background: radial-gradient(circle at 36% 30%, #ffe6a1, #9c7a20 74%);
  border-radius: 50%;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.42);
}
.pin--leaf {
  width: 22px;
  height: 22px;
  background: radial-gradient(circle at 38% 30%, #afc86e, #4a611f 75%);
  border-radius: 0 50% 50% 50%;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.36);
}
.tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 58px;
  height: 22px;
  z-index: 6;
  background: rgba(220, 174, 150, 0.86);
  border-left: 1px dashed rgba(255, 255, 255, 0.5);
  border-right: 1px dashed rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.24);
}
.clip {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 25px;
  z-index: 6;
  border: 3px solid #c5bca7;
  border-radius: 4px;
  background: transparent;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.32);
}

.wall-foot {
  text-align: center;
  font-family: var(--type);
  font-size: 12px;
  color: rgba(253, 245, 230, 0.78);
  margin: 24px 0 8px;
}
.wall-foot-link {
  color: var(--peach);
  text-decoration: none;
}
.wall-foot-link:hover {
  text-decoration: underline;
}

/* ===================== LIGHTBOX ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(16, 12, 6, 0.85);
  padding: 20px 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }

.lightbox__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox .card {
  width: min(76vw, 330px);
  padding: 14px 14px 40px;
  cursor: default;
  animation: none;
  transform: none;
}
.lightbox .card:hover { transform: none; }
.lightbox .card__note {
  -webkit-line-clamp: unset;
  font-size: 18px;
  margin-top: 12px;
}
.lightbox .card__num { font-size: 12px; left: 14px; bottom: 11px; }
.lightbox .card__date { font-size: 15px; right: 14px; bottom: 10px; }

.lightbox__meta {
  font-family: var(--type);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--cream);
  text-align: center;
  margin-top: 14px;
  text-transform: uppercase;
}

.lightbox__close,
.lightbox__nav {
  width: 42px;
  height: 42px;
  border: 1px solid var(--cream);
  background: #332719;
  color: var(--cream);
  font-family: var(--type);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox__close {
  position: absolute;
  top: max(env(safe-area-inset-top), 14px);
  right: 14px;
}
.lightbox__nav:disabled { opacity: 0.3; cursor: default; }

/* ===================== DESKTOP INDIE SCRAPBOOK DESK (>= 860px) ===================== */
@media (min-width: 860px) {
  .code-scroll {
    padding: 44px 28px 28px;
  }

  .desk-spread {
    width: min(100%, 1080px);
    grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.76fr);
    gap: 28px;
    align-items: center;
  }

  .desk-collage {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(175deg, rgba(253, 245, 230, 0.96), rgba(240, 226, 200, 0.96));
    border: 1.5px solid var(--brown);
    padding: 16px 20px;
    transform: rotate(-0.5deg);
    box-shadow: 0 18px 36px rgba(16, 12, 6, 0.38);
  }

  .desk-title-art {
    width: min(100%, 370px);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 4px 6px rgba(24, 16, 8, 0.25));
  }

  .photo-deck:not(.photo-deck--mobile) {
    max-width: 520px;
    height: clamp(325px, 44dvh, 415px);
  }
  .photo-deck:not(.photo-deck--mobile) .stack-card__photo img {
    max-width: min(450px, 40vw);
    max-height: clamp(265px, 36dvh, 355px);
  }
  .photo-deck:not(.photo-deck--mobile) .stack-card__marker {
    font-size: 16.5px;
    right: 72px;
  }
  .photo-deck:not(.photo-deck--mobile) .stack-card__price {
    font-size: 11.5px;
  }

  .taped-photo {
    position: relative;
    margin: 0;
    background: var(--ivory);
    padding: 8px 8px 10px;
    border: 1px solid rgba(124, 59, 14, 0.3);
    box-shadow: 0 6px 14px rgba(20, 14, 8, 0.2);
    transform: rotate(0.6deg);
  }
  .taped-photo__media {
    position: relative;
    overflow: hidden;
  }
  .taped-photo .parcel-photo {
    aspect-ratio: 16 / 9;
  }
  .taped-caption {
    margin-top: 8px;
    text-align: center;
    font-family: var(--hand);
    font-size: 16.5px;
    line-height: 1.4;
    color: var(--ink-soft);
  }

  .maker-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 252, 245, 0.72);
    border: 1px dashed rgba(124, 59, 14, 0.32);
    font-family: var(--type);
    font-size: 12px;
  }
  .maker-bar__sig {
    font-weight: 600;
    color: var(--ink);
  }
  .maker-bar__dolap {
    color: var(--forest-deep);
    font-weight: 600;
    text-decoration: none;
  }
  .maker-bar__dolap:hover {
    text-decoration: underline;
  }

  .flowing-strip__head {
    margin: 0 0 6px;
    font-family: var(--type);
    font-size: 12px;
    color: var(--brown);
  }

  .mobile-flowing,
  .parcel-mobile-photo,
  .parcel-mobile-deck {
    display: none;
  }

  .parcel-card {
    width: 100%;
    padding: 20px 22px 22px;
    transform: rotate(0.5deg);
  }

  /* Desktop camera workbench */
  .camera-assembly {
    --cam-w: clamp(260px, min(40vw, calc((100dvh - 104px) * 0.54)), 410px);
  }

  .camera-notes {
    display: block;
    position: relative;
    width: min(340px, 34vw);
    background: linear-gradient(180deg, #fffdf7 0%, var(--cream) 100%);
    border: 1.5px solid var(--brown);
    padding: 20px 20px 18px;
    transform: rotate(1deg);
    box-shadow: 0 16px 32px rgba(16, 12, 6, 0.38);
  }
  .camera-notes__tag {
    margin: 0 0 8px;
    display: inline-block;
    padding: 3px 8px;
    background: var(--forest);
    color: var(--ivory);
    font-family: var(--type);
    font-size: 12px;
    font-weight: 700;
  }
  .camera-notes__lead {
    margin: 0;
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.45;
    color: var(--ink-soft);
  }

  .polaroid {
    width: min(70vw, calc((var(--vvh, 100dvh) - 110px) * 0.8), 600px);
  }

  .card {
    width: 178px;
    padding: 11px 11px 34px;
  }
  .card__note { font-size: 16px; }
  .corkboard { padding: 18px; }
  .corkboard__bezel { inset: 18px; }
  .corkboard__pins {
    gap: 36px 28px;
    padding: 42px 32px 54px;
  }
}

@media (max-height: 690px) and (max-width: 859px) {
  .parcel-card { padding: 12px 14px 14px; }
  .photo-deck--mobile { max-width: 260px; height: 214px; }
  .photo-deck--mobile .stack-card__photo img { max-width: 230px; max-height: 168px; }
  .pin-digit { width: 50px; height: 52px; font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .camera, .deco, .card.swaying { animation: none !important; }
}
