/* Tablet composition: 11-inch iPad, both orientations. Desktop/phone stay local. */
.memento-arrow-tablet { display: none; }
.memento-frost-tablet { display: none; }
.brew-title-art { display: none; }
@media (min-width: 768px) and (max-width: 1199px) {
  #product { --tablet-gutter: 48px; --tablet-gap: 144px; }
  #product > .intro-hero {
    width: calc(100% - 96px) !important;
    min-height: 100svh !important;
    padding-block: 132px 88px !important;
    align-content: center;
    gap: 56px !important;
  }
  .intro-hero .hero-title { max-width: 660px; }
  .intro-hero .hero-title h1 { font-size: 42px !important; line-height: 1.125 !important; }
  .intro-hero .hero-films { max-width: min(540px, 58svh) !important; }
  #product > .polaroid-chapter.sip-story-ready { margin: 64px 0 0; }
  .memento-scroll-track { --memento-stage-height: max(610px, 100svh - 76px); }
  .memento-opening { width: calc(100% - 64px); }
  /* Keep desktop's 12px / .65 filter and original glass SVG, not a stronger
     tablet tint. Sample the backdrop without a transformed lid ancestor;
     apply the same hinge directly to this sibling and the glass face. */
  .memento-pocket-lid > .memento-frost { display: none; }
  .memento-frost-tablet {
    display: block;
    transform: perspective(600px) rotateX(var(--lid-angle, 0deg));
    transform-origin: 50% 84.37%;
  }
  .sip-story-ready .sip-cue-motion { top: 32px; width: min(720px, calc(100% - 96px)); }
  .sip-story-ready .memory-bridge-cue {
    width: 100% !important; margin: 0; transform: rotate(2deg) !important;
    font-size: 28px !important; line-height: 35px !important;
  }
  .sip-story-ready .memory-bridge { width: 100%; margin: 0; }
  .sip-story-ready .memory-bridge-copy { width: min(580px, calc(100% - 96px)); }
  .sip-story-ready .memory-bridge-title { font-size: 20px !important; line-height: 28px !important; }
  /* Match the iOS phone fix: one contour shadow with explicit SVG filter bounds.
     A filtered, cropped wrapper can leave a hard rectangular edge in WebKit. */
  .polaroid-chapter .memory-sticker { filter: none; }
  .polaroid-chapter .memory-sticker-art { overflow: visible; }
  .polaroid-chapter .memory-sticker-shadow { filter: var(--cup-shadow-filter); }
  .polaroid-chapter .memory-sticker-art > img { filter: drop-shadow(0 8px 10px #3e27231a); }
  .memento-caption p { font-size: 16px !important; line-height: 22px !important; }
  .memento-caption:is(.color-caption, .diary-caption) svg {
    top: auto; bottom: calc(100% + 6px); width: 52px; height: 28px;
    left: calc(50% - 26px); right: auto; transform: none;
  }
  .memento-arrow-wide { display: none; }
  .memento-arrow-tablet { display: inline; }
  .live-caption svg { top: calc(100% + 6px); left: calc(50% - 30px); width: 60px; height: 38px; }
  .memento-palette { gap: 0; top: calc(100% - 20px); }
  .memento-palette button { width: calc(var(--card-width) / 6); height: 44px; }
  .memento-palette button span { inset: 10px 2px; }
  #product > #collection { margin: var(--tablet-gap) 0; }
  #collection .collection-board { width: calc(100% - 64px); min-height: 800px; }
  #product #collection-title { width: min(480px, calc(100% - 96px)); color: #ddd5cf; }
  #stamps { margin-block: var(--tablet-gap); }
  #stamps .stamp-story-stage { height: calc(100svh - 76px); }
  #stamps .stamp-scene {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px; padding: 0; width: min(760px, calc(100% - 96px));
  }
  #stamps .stamp-copy { width: 100% !important; max-width: 380px !important; transform: rotate(-2deg) !important; }
  #stamps .stamp-copy h2 { font-size: 28px !important; line-height: 35px !important; margin-bottom: 24px; }
  #stamps .stamp-description { display: block; font-size: 20px !important; line-height: 28px !important; }
  /* Detail copy fills its own column; the finale must keep viewport gutters. */
  #stamps .stamp-copy .stamp-description { width: 100% !important; }
  #stamps .film-sheet { width: min(260px, 100%, 38svh) !important; max-width: none !important; transform: rotate(-3deg) !important; }
  #stamps .shop-sheet { transform: rotate(4deg) !important; }
  #stamps .stamp-finale-title { display: block; position: absolute; top: 48px; left: 50%; width: calc(100% - 96px); transform: translateX(-50%) rotate(-2deg); }
  #stamps .stamp-summary { width: calc(100% - 96px); font-size: 20px !important; line-height: 28px !important; }
  #product :is(.map-chapter, .faq-chapter, .closing-chapter) {
    width: calc(100% - 96px); margin-inline: auto; margin-top: var(--tablet-gap);
  }
  #product .map-chapter { padding: 0; }
  /* Center the complete media/copy pair, not two widely separated full-width columns. */
  #product .map-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; max-width: 858px; }
  .map-media { --map-paper-width: 250px; }
  #product .map-copy { width: 100%; max-width: none; text-align: left; }
  #product .centered-drop-title h2 { font-size: 42px; line-height: 1.125; }
  /* Font-derived vector faces avoid WebKit's native text-stroke/shadow edges,
     including after animations settle. Native letters retain exact metrics. */
  #product .centered-drop-title h2,
  #product .centered-drop-title :is(.hero-title-visual, .hero-title-word, .hero-title-letter, .hero-title-glyph) {
    font-family: 'Courier Prime', monospace !important;
    font-weight: 700 !important;
    color: var(--gold) !important;
    -webkit-text-stroke: 0 var(--gold) !important;
    -webkit-text-fill-color: var(--gold) !important;
    text-shadow: none !important;
  }
  #product .centered-drop-title .hero-title-glyph { position: relative; }
  .brew-title-native { opacity: 0; }
  .brew-title-art {
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    overflow: visible;
    pointer-events: none;
  }
  .map-heading { margin-bottom: 64px; }
  #product .faq-list { width: min(720px, 100%); max-width: none; }
  #product .faq-answer-inner { padding-inline: 0; }
  #product .closing-chapter { min-height: 70svh; padding: 80px 0 120px; gap: 64px; }
  #product .closing-heading { top: 0; }
  #product .closing-invitation { width: min(680px, 100%); max-width: none; }
  .navigation-bar :is(button, a) { min-height: 44px; }
}
@media (min-width: 768px) and (max-width: 963px) {
  /* Twelve larger stamps in two staggered arcs above and below the full-width copy. */
  #collection .collection-board { padding-block: 380px; }
}
@media (min-width: 768px) and (max-width: 1199px) and (orientation: landscape) {
  /* The one existing cue sits at the hero's foot, then pins with its scene. */
  #product > .intro-hero { padding-block: 112px 156px !important; }
  #product > .polaroid-chapter.sip-story-ready { margin-top: -110px; }
}
@media (min-width: 768px) and (max-width: 899px) {
  #product .map-layout { grid-template-columns: 1fr; gap: 56px; }
  .map-media { --map-paper-width: 250px; }
  #product .map-copy { width: min(430px, 100%); margin-inline: auto; text-align: center; }
}
