@font-face { font-family: 'Gochi Hand'; src: url('assets/fonts/gochi-hand-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Patrick Hand'; src: url('assets/fonts/patrick-hand-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('assets/fonts/nunito-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --paper: #F2D7BD;
  --paper-light: #FBE1C8;
  --paper-white: #F7F5F2;
  --ink: #1F1A17;
  --ink-soft: #5A4336;
  --gold: #A9772E;
  --pink: #F08CA8;

  --font-head: 'Gochi Hand', 'Comic Sans MS', cursive;
  --font-hand: 'Patrick Hand', 'Comic Sans MS', cursive;
  --font-sans: 'Nunito', system-ui, sans-serif;

  --gutter: 20px;
  --column: 480px;
  --bar-height: 60px;
  --screen: 100vh;
}
@supports (height: 100svh) { :root { --screen: 100svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); font: 18px/1.35 var(--font-hand); background: var(--paper); overflow-x: hidden; }
/* The paper stays still while content scrolls over it. */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: var(--paper) url('assets/paper/kraft.webp') 0 0 / 512px; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1:focus { outline: none; }

html.is-locked, html.is-locked body { overflow: hidden; height: 100%; }
html.is-locked body { position: fixed; inset: 0; width: 100%; }

.page { position: relative; width: 100%; max-width: var(--column); margin: 0 auto; overflow-x: clip; padding-bottom: var(--bar-height); }
.scene { position: relative; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border: 2.5px solid var(--ink); border-radius: 26px 22px 28px 20px; background: var(--ink); color: var(--paper-white); font: 700 16px/1.2 var(--font-sans); text-decoration: none; cursor: pointer; }
.btn--plain { background: var(--paper-white); color: var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.linkish { min-height: 44px; padding: 8px 12px; border: 0; background: none; font: 700 16px/1.2 var(--font-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hint { font-size: 18px; color: var(--ink-soft); }
.sample { display: inline-block; padding: 2px 10px; border: 1.5px dashed var(--ink-soft); border-radius: 12px; color: var(--ink-soft); font: 700 13px/1.5 var(--font-sans); }

/* Torn dividers */
.tear { position: relative; z-index: 4; height: 72px; margin: -36px -8px; filter: drop-shadow(0 2px 2px rgba(31, 26, 23, .25)); pointer-events: none; }
.tear__paper { position: absolute; inset: 0; background: var(--paper-white); -webkit-mask: var(--mask) 0 0 / 100% 100% no-repeat; mask: var(--mask) 0 0 / 100% 100% no-repeat; }
.tear--1 { --mask: url('assets/paper/torn-1.svg'); }
.tear--2 { --mask: url('assets/paper/torn-2.svg'); }
.tear--3 { --mask: url('assets/paper/torn-3.svg'); }
.tear--4 { --mask: url('assets/paper/torn-1.svg'); transform: scaleX(-1); }
.tear__washi { position: absolute; left: 50%; top: 50%; width: 190px; height: 34px; transform: translate(-50%, -50%) rotate(-4deg); }
.tear__flowers { position: absolute; right: 18px; top: -46px; width: 100px; height: auto; transform: rotate(14deg); }
.tear__staff { position: absolute; left: 50%; top: 2px; width: 120px; height: auto; transform: translateX(-50%); }
.tear__heart { position: absolute; left: 50%; top: 20px; width: 34px; height: auto; transform: translateX(-50%) rotate(-8deg); }

/* 1. Cover */
.cover { z-index: 5; height: calc(var(--screen) - 28px); min-height: 590px; }
.cover__sheet { position: absolute; inset: 0 -8px; background: var(--paper-white); -webkit-mask: url('assets/paper/torn-bottom.svg') 0 100% / 100% 80px no-repeat, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 79px) no-repeat; mask: url('assets/paper/torn-bottom.svg') 0 100% / 100% 80px no-repeat, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 79px) no-repeat; }
.cover__title { position: relative; z-index: 2; padding: 22px var(--gutter) 0; font: 400 58px/1 var(--font-head); text-align: center; }
.cover__row { display: flex; align-items: center; justify-content: center; gap: 8px; }
.cover__row--big { display: block; margin-top: 2px; font-size: clamp(40px, 12.4vw, 56px); white-space: nowrap; }
.cover__heart { width: 38px; }
.cover__flower { width: 34px; }
.cover__the { font-size: 44px; }
.cover__flowers { position: absolute; left: -26px; top: 150px; width: 128px; transform: rotate(-16deg); --r: -16deg; }
.cover__camera { position: absolute; right: 8px; top: 196px; width: 72px; transform: rotate(9deg); --r: 9deg; }
.cover__arrow { position: absolute; z-index: 2; top: 134px; width: 40px; height: 58px; }
.cover__arrow--l { left: 22%; }
.cover__arrow--r { right: 22%; }
.cover__couple { position: absolute; z-index: 1; left: 50%; bottom: 22px; width: auto; height: min(72%, 560px); max-width: 82%; object-fit: contain; object-position: bottom; transform: translateX(-50%); }

.flap { position: absolute; z-index: 3; left: -8px; right: -8px; bottom: -30px; height: 42%; min-height: 250px; display: none; touch-action: none; cursor: grab; transform-origin: 50% 100%; }
.js .flap { display: block; }
.flap__paper { position: absolute; inset: 0; background: var(--paper) url('assets/paper/kraft.webp') 0 0 / 512px; -webkit-mask: url('assets/paper/torn-4.svg') 0 0 / 100% 80px no-repeat, linear-gradient(#000, #000) 0 79px / 100% 100% no-repeat; mask: url('assets/paper/torn-4.svg') 0 0 / 100% 80px no-repeat, linear-gradient(#000, #000) 0 79px / 100% 100% no-repeat; }
.flap { filter: drop-shadow(0 -3px 4px rgba(31, 26, 23, .28)); }
.tape { position: absolute; left: 50%; top: -6px; width: min(300px, 84%); height: 62px; display: grid; place-items: center; background: url('assets/illustrations/collage/washi.svg') 0 0 / 100% 100% no-repeat; font: 400 23px/1 var(--font-head); transform: translateX(-50%) rotate(-3deg); }
.flap__open { position: absolute; left: 50%; top: 74px; transform: translateX(-50%); white-space: nowrap; }
.for-still { display: none; }
.flap__seal { position: absolute; right: 30px; top: 138px; width: 62px; transform: rotate(10deg); }

/* 2 and 3. Meet the Groom and Bride */
.meet { display: flex; flex-direction: column; min-height: max(var(--screen), 760px); overflow: hidden; }
.meet__text { position: relative; z-index: 3; padding: 34px var(--gutter) 0; text-align: center; }
.meet__name { font: 400 76px/.95 var(--font-head); }
.meet__hello { display: block; font-size: 32px; line-height: 1.1; }
.meet__name .fit { display: block; white-space: nowrap; }
.meet__role { margin-top: 8px; font-size: 21px; line-height: 1.2; }
.meet__tease { margin-top: 6px; font-size: 19px; line-height: 1.25; color: var(--ink-soft); }
.meet__notes { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; min-height: 26px; }
.meet__stage { position: relative; flex: 1; min-height: 430px; margin-top: 6px; }
.meet__doodle { position: absolute; right: 12px; top: 0; width: 120px; opacity: .85; }
.meet--bride .meet__doodle { left: 12px; right: auto; }
.meet__cut { position: absolute; left: 50%; bottom: 0; width: auto; height: 100%; max-width: 80%; object-fit: contain; object-position: bottom; transform: translateX(-50%); }
.meet--bride .meet__cut { max-width: 66%; }

.sticker { position: absolute; z-index: 2; width: 86px; height: 86px; padding: 0; border: 0; background: none; transform: rotate(var(--tilt)); perspective: 600px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sticker--still { cursor: default; }
.sticker--l0 { left: 2px; top: 8%; }
.sticker--l1 { left: 2px; top: 38%; }
.sticker--l2 { left: 2px; top: 68%; }
.sticker--r0 { right: 2px; top: 20%; }
.sticker--r1 { right: 2px; top: 49%; }
.sticker--r2 { right: 2px; top: 76%; }
.meet--bride .sticker--l0 { top: 20%; }
.meet--bride .sticker--l1 { top: 49%; }
.meet--bride .sticker--l2 { top: 76%; }
.meet--bride .sticker--r0 { top: 8%; }
.meet--bride .sticker--r1 { top: 38%; }
.meet--bride .sticker--r2 { top: 68%; }
.sticker.is-flipped { z-index: 6; }
.sticker__in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .35s; }
.is-flipped .sticker__in { transform: rotateY(180deg); }
/* Faces swap halfway through the flip. Safari ignores backface-visibility inside a button. */
.sticker__front, .sticker__back { transition: visibility 0s .175s; }
.sticker__back, .is-flipped .sticker__front { visibility: hidden; }
.is-flipped .sticker__back { visibility: visible; }
.sticker__front { position: absolute; inset: 0; }
.sticker__back { position: absolute; top: 50%; width: 138px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper-white); color: var(--ink); font: 400 17px/1.15 var(--font-hand); box-shadow: 0 2px 4px rgba(31, 26, 23, .25); transform: translateY(-50%) rotateY(180deg); }
/* The flip mirrors the card about the sticker, so each card starts on the far side. */
.sticker--l0 .sticker__back, .sticker--l1 .sticker__back, .sticker--l2 .sticker__back { right: 0; }
.sticker--r0 .sticker__back, .sticker--r1 .sticker__back, .sticker--r2 .sticker__back { left: 0; }

/* 4. Save the Date */
.date { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: var(--screen); padding: 50px var(--gutter) 60px; text-align: center; }
.mono { width: 196px; height: auto; overflow: visible; }
.date__names { max-width: 100%; font: 400 50px/1 var(--font-head); white-space: nowrap; }
.date__title { font: 400 30px/1.1 var(--font-head); }
.scratch { position: relative; width: min(300px, 100%); height: 152px; margin-top: 8px; padding: 7px; border-radius: 22px; background: #fff; box-shadow: 0 2px 5px rgba(31, 26, 23, .3); transform: rotate(-2deg); --r: -2deg; }
.scratch__under { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; border-radius: 16px; background: var(--paper-white); }
.date__weekday, .date__year { font: 700 17px/1.3 var(--font-sans); }
.date__day { font: 700 31px/1.15 var(--font-sans); }
.date__plain { display: flex; flex-direction: column; margin-top: 8px; padding: 14px 26px; border-radius: 16px; background: var(--paper-white); }
.scratch__foil { position: absolute; left: 7px; top: 7px; width: calc(100% - 14px); height: calc(100% - 14px); border-radius: 16px; touch-action: none; cursor: crosshair; transition: opacity .3s; }
.scratch.is-revealed .scratch__foil { opacity: 0; pointer-events: none; }
.scratch__help { display: flex; flex-direction: column; align-items: center; }
.scratch__help.is-gone { visibility: hidden; height: 12px; }
.calendar { width: 170px; margin-top: 4px; transform: rotate(3deg); --r: 3deg; filter: drop-shadow(0 2px 3px rgba(31, 26, 23, .3)); }
.calendar__top { display: flex; justify-content: space-around; height: 24px; padding: 0 36px; border-radius: 8px 8px 0 0; background: #C9412F; }
.calendar__top i { width: 8px; height: 20px; margin-top: -8px; border-radius: 4px; background: var(--ink); }
.calendar__page { display: flex; flex-direction: column; padding: 6px 8px 26px; background: var(--paper-white); -webkit-mask: linear-gradient(#000, #000) 0 0 / 100% calc(100% - 20px) no-repeat, url('assets/paper/torn-bottom.svg') 0 100% / 100% 21px no-repeat; mask: linear-gradient(#000, #000) 0 0 / 100% calc(100% - 20px) no-repeat, url('assets/paper/torn-bottom.svg') 0 100% / 100% 21px no-repeat; }
.calendar__days { font: 700 58px/1 var(--font-sans); }
.calendar__label { font: 700 17px/1.2 var(--font-sans); }
.calendar.is-married .calendar__days { display: none; }
.calendar.is-married .calendar__label { padding: 18px 0 6px; font-size: 24px; }

/* Shared by scenes 5 to 8 */
.section { padding: 52px var(--gutter) 56px; }
.section__title { font: 400 44px/1.05 var(--font-head); text-align: center; }
.section__sample { display: block; width: fit-content; margin: 8px auto 0; }

/* 5. Our Story */
.story__list { display: flex; flex-direction: column; gap: 40px; margin-top: 30px; }
.polaroid { position: relative; width: min(280px, 82%); padding: 12px 12px 16px; background: #fff; box-shadow: 0 3px 8px rgba(31, 26, 23, .3); transform: rotate(var(--tilt)); }
.polaroid--l { --tilt: -3deg; align-self: flex-start; }
.polaroid--r { --tilt: 3deg; align-self: flex-end; }
.polaroid img { width: 100%; }
.polaroid__tape { position: absolute; z-index: 1; left: 50%; top: -14px; width: 104px; height: 28px; background: url('assets/illustrations/collage/washi.svg') 0 0 / 100% 100% no-repeat; transform: translateX(-50%) rotate(-3deg); }
.polaroid__date { margin-top: 10px; font: 400 22px/1.1 var(--font-head); color: var(--ink-soft); }
.polaroid__title { font: 400 25px/1.1 var(--font-head); }
.polaroid__text { font-size: 18px; line-height: 1.25; }

/* 6. Events */
.events__list { display: flex; flex-direction: column; gap: 20px; margin-top: 26px; }
.pass { display: flex; border-radius: 14px; filter: drop-shadow(0 3px 4px rgba(31, 26, 23, .28)); }
.pass__main { flex: 1; min-width: 0; padding: 14px 14px 12px 16px; border-radius: 14px 0 0 14px; background: var(--paper-white); }
.pass__airline { color: var(--ink-soft); font: 700 13px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; }
.pass__name { font: 400 36px/1.1 var(--font-head); }
.pass__facts { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin-top: 6px; }
.pass__wide { grid-column: 1 / -1; }
.pass__facts dt { color: var(--ink-soft); font: 700 13px/1.25 var(--font-sans); }
.pass__facts dd { font: 700 16px/1.3 var(--font-sans); }
.pass__link { display: inline-flex; align-items: center; min-height: 44px; font: 700 16px/1.2 var(--font-sans); text-underline-offset: 3px; }
.stub { flex: 0 0 72px; display: flex; align-items: center; justify-content: center; border-left: 3px dashed var(--ink-soft); border-radius: 0 14px 14px 0; background: var(--pink); color: var(--ink); font: 700 16px/1.15 var(--font-sans); text-decoration: none; text-align: center; touch-action: pan-y; cursor: grab; transform-origin: 0 100%; -webkit-tap-highlight-color: transparent; }
.stub span { writing-mode: vertical-rl; pointer-events: none; }
.stub.is-torn { opacity: 0; transform: translate(20px, 16px) rotate(16deg); transition: transform .3s, opacity .3s; }

/* 7. Photos */
.pile { position: relative; width: min(280px, 80%); aspect-ratio: 1 / 1.12; margin: 34px auto 0; touch-action: pan-y; }
.pile__card { position: absolute; inset: 0; padding: 12px 12px 42px; background: #fff; box-shadow: 0 2px 6px rgba(31, 26, 23, .3); transform: rotate(var(--tilt)); cursor: grab; }
.pile__card img { width: 100%; }
.pile__nav { display: flex; justify-content: center; gap: 14px; margin-top: 28px; }

/* 8. Wishes */
.game__list { margin-top: 18px; }
.game__card { padding: 16px; border: 2px solid var(--ink); border-radius: 18px 14px 20px 12px; background: var(--paper-white); text-align: center; }
.game__q { font-size: 22px; line-height: 1.2; }
.game__choices { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.game__result { min-height: 54px; margin-top: 8px; font-size: 20px; line-height: 1.2; }
.game__next { display: block; margin: 8px auto 0; }
.wishes { margin-top: 50px; }
.wishes__wall { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.note { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; align-items: center; padding: 12px; background: #fff; box-shadow: 0 2px 5px rgba(31, 26, 23, .25); transform: rotate(var(--tilt)); }
.note img { grid-row: span 2; width: 56px; }
.note__name { color: var(--ink-soft); }
.wishes__form { display: grid; gap: 8px; margin-top: 20px; }
.wishes__form label { font: 700 16px/1.3 var(--font-sans); }
.wishes__form textarea { width: 100%; padding: 10px; border: 2px dashed var(--ink-soft); border-radius: 12px; background: rgba(255, 255, 255, .5); resize: none; }
.wishes__preview { color: var(--ink-soft); font: 700 14px/1.35 var(--font-sans); }
.closing__end { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 50px; text-align: center; }
.closing__signoff { font: 400 28px/1.15 var(--font-head); }
.footer { padding: 4px var(--gutter) 22px; color: var(--ink-soft); font: 700 14px/1.4 var(--font-sans); text-align: center; }

/* Always on screen */
.bar { position: fixed; z-index: 20; left: 50%; bottom: 0; display: flex; width: 100%; max-width: var(--column); height: calc(var(--bar-height) + env(safe-area-inset-bottom)); padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); gap: 10px; background: var(--ink); transform: translateX(-50%); }
.bar__item { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; border: 0; border-radius: 12px; background: var(--paper-white); color: var(--ink); font: 700 16px/1 var(--font-sans); text-decoration: none; cursor: pointer; }
.bar__item[aria-pressed='true'] { background: var(--pink); }

/* Plane route: sits behind the scenes' content */
.route { position: absolute; z-index: 0; inset: 0 0 auto; display: none; pointer-events: none; }
.route.is-on { display: block; }
.route__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route__line { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 7 10; stroke-linecap: round; opacity: .4; }
.route__plane { position: absolute; left: 0; top: 0; width: 44px; offset-rotate: auto; offset-anchor: 50% 50%; offset-distance: 0; }
.page > .scene:not(.cover), .page > .tear { z-index: 1; }
.page > .tear { z-index: 4; }
.page > .cover { z-index: 5; }

@media (max-height: 700px) {
  .cover__title { padding-top: 12px; font-size: 48px; }
  .cover__arrow { display: none; }
}

/* Scenes start hidden, main.js adds .is-playing, then .is-done. Everything arrives as if stuck on by hand. */
.js .scene:not(.is-playing):not(.is-done) .a { opacity: 0; }
.scene:not(.is-done) .ch { opacity: 0; }
.ch-word { display: inline-block; white-space: nowrap; }

.is-playing .a-pop { animation: pop .3s cubic-bezier(.3, 1.6, .5, 1) var(--d, 0s) both; }
.is-playing .a-doodle { animation: fade .3s var(--d, 0s) both; }
.is-playing .a-sticker { animation: sticker .25s ease-out var(--d, 0s) both; }
.is-playing .ch { animation: ink .01s linear var(--d, 0s) both; }
.is-playing .a-mono { animation: fade .8s both; }
.is-playing .mono__shine { animation: shine 1.6s .8s ease-in-out both; }

.is-playing.cover .a-cut { animation: rise-cover .8s cubic-bezier(.2, .9, .3, 1) .5s both; }
.is-playing.meet .a-cut { animation: rise-cover .8s cubic-bezier(.2, .9, .3, 1) var(--d, 0s) both; }
.drawn path { opacity: 1; }
.js .cover:not(.is-done) .drawn path { opacity: 0; }
.is-playing .drawn path { animation: ink .01s linear calc(.6s + var(--i) * .033s) both; }

.cover__flowers.a-pop, .cover__camera.a-pop, .scratch.a-pop, .calendar.a-pop { --rest: var(--r, 0deg); }
.is-playing .scratch.a-pop, .is-playing .calendar.a-pop, .is-playing .cover__flowers, .is-playing .cover__camera { animation-name: pop-tilt; }

@keyframes pop { from { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.15); } to { opacity: 1; transform: none; } }
@keyframes pop-tilt { from { opacity: 0; transform: rotate(var(--r)) scale(0); } 70% { opacity: 1; transform: rotate(var(--r)) scale(1.15); } to { opacity: 1; transform: rotate(var(--r)); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ink { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-cover { from { opacity: 1; transform: translate(-50%, 70%); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes sticker { from { opacity: 0; transform: scale(0) rotate(calc(var(--tilt) - 24deg)); } 70% { opacity: 1; transform: scale(1.15) rotate(var(--tilt)); } to { opacity: 1; transform: rotate(var(--tilt)); } }
@keyframes shine { from { transform: translateX(0); } to { transform: translateX(480px); } }

/* Items in the long scenes arrive one by one as they reach the screen. */
.js .polaroid[data-reveal]:not(.is-in) { opacity: 0; }
.polaroid.is-in { animation: drop .4s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-26px) rotate(calc(var(--tilt) * 3)); } to { opacity: 1; transform: rotate(var(--tilt)); } }
.js .pass[data-reveal]:not(.is-in) { opacity: 0; }
.pass.is-in { animation: slide-up .3s ease-out both; }
@keyframes slide-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.flap.is-back { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.flap.is-falling { transition: transform .5s cubic-bezier(.5, 0, .9, .6), opacity .5s ease-in; opacity: 0; pointer-events: none; }
.pile__card.is-flying { transition: transform .3s ease-in, opacity .3s ease-in; opacity: 0; }
.pile__card.is-back { transition: transform .25s ease-out; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .tape { display: none; }
  .flap { touch-action: auto; cursor: default; }
  .flap__open { top: 96px; }
  .for-motion { display: none; }
  .for-still { display: inline; }
  .flap.is-falling { transform: none !important; transition: opacity .3s; }
  .sticker__in { transform-style: flat; transition: none; }
  .is-flipped .sticker__in { transform: none; }
  .sticker__front, .sticker__back { visibility: visible; transition: opacity .35s; }
  .is-flipped .sticker__front { visibility: visible; }
  .sticker__back { opacity: 0; pointer-events: none; transform: translateY(-50%); }
  .sticker--l0 .sticker__back, .sticker--l1 .sticker__back, .sticker--l2 .sticker__back { right: auto; left: 0; }
  .sticker--r0 .sticker__back, .sticker--r1 .sticker__back, .sticker--r2 .sticker__back { left: auto; right: 0; }
  .is-flipped .sticker__back { opacity: 1; }
  .is-flipped .sticker__front { opacity: 0; }
  .js .polaroid[data-reveal]:not(.is-in), .js .pass[data-reveal]:not(.is-in) { opacity: 1; }
  .stub.is-torn { transform: none; }
  .pile__card.is-flying { transition: opacity .3s; transform: rotate(var(--tilt)) !important; }
}
