/* ───────────── Phone feel + the deeper sections ───────────── */
html { touch-action: manipulation; }

/* ── Pressed states for fingers ── */
@media (hover: none) {
  .fav:active, .xp-tile:active, .mf-btns button:active, .moves button:active, .mode button:active, .tabs button:active, .q-opt:active:not(:disabled), .cell:active, .dock > *:active { transform: scale(0.95); transition-duration: 0.12s; }
  .fav:hover { transform: none; }
}

/* ── Hero: tilt (phones) / mouse (desktop) parallax ── */
.hero { --tx: 0; --ty: 0; }
.hero .aurora { translate: calc(var(--tx) * -24px) calc(var(--ty) * -18px); }
.hero .portal { translate: calc(var(--tx) * 16px) calc(var(--ty) * 12px); }
.hero .orbit { translate: calc(var(--tx) * 26px) calc(var(--ty) * 18px); }
.hero-grid { translate: calc(var(--tx) * -34px) 0; }
.hero .title { translate: calc(var(--tx) * -8px) calc(var(--ty) * -5px); }
.motion-chip {
  display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0 6px; padding: 7px 13px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ff5aa2, var(--pink-d)); box-shadow: var(--glow);
  animation: wxIn 0.6s 0.4s var(--ease) both; transition: opacity 0.5s, transform 0.5s var(--ease);
}
.motion-chip[hidden] { display: none; }
.motion-chip.gone { opacity: 0; transform: scale(0.8); pointer-events: none; }

/* ── Heart burst (double-tap) ── */
.tl-heart { position: fixed; z-index: 2550; width: 92px; height: 86px; margin: -43px 0 0 -46px; pointer-events: none; animation: tlHeart 0.95s var(--ease) forwards; filter: drop-shadow(0 10px 18px rgba(255, 46, 136, 0.45)); }
.tl-heart svg { width: 100%; height: 100%; fill: var(--pink); }
@keyframes tlHeart { 0% { transform: scale(0) rotate(-12deg); opacity: 0; } 18% { transform: scale(1.25) rotate(6deg); opacity: 1; } 34% { transform: scale(0.94) rotate(-2deg); } 50% { transform: scale(1.04); opacity: 1; } 100% { transform: translateY(-90px) scale(0.6); opacity: 0; } }

/* ── Toast (top) ── */
.tl-toast {
  position: fixed; left: 50%; top: calc(max(12px, env(safe-area-inset-top)) + 64px); z-index: 1390; display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: min(92vw, 460px); padding: 12px 16px; border-radius: 20px; color: #fff; background: rgba(42, 23, 18, 0.92); box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translate(-50%, -30px) scale(0.96); opacity: 0; pointer-events: none;
  transition: transform 0.45s var(--ease-back), opacity 0.3s;
}
.tl-toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.tl-toast > span { flex: none; font-size: 22px; }
.tl-toast b { font-weight: 700; font-size: 14.5px; line-height: 1.4; }

/* ── Bottom sheet ── */
.sheet-wrap { position: fixed; inset: 0; z-index: 1400; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.sheet-wrap.on { pointer-events: auto; }
.sheet-back { position: absolute; inset: 0; background: rgba(42, 23, 18, 0.46); opacity: 0; transition: opacity 0.35s; }
.sheet-wrap.on .sheet-back { opacity: var(--fade, 1); }
.sheet {
  position: relative; width: min(640px, 100%); max-height: min(86vh, 780px); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 30px 30px 0 0; background: var(--cream); box-shadow: 0 -24px 60px -24px rgba(42, 23, 18, 0.5), inset 0 1px 0 #fff;
  transform: translateY(105%); transition: transform 0.42s var(--ease);
}
.sheet-wrap.on .sheet { transform: none; }
.sheet.dragging { transition: none; }
.sheet-top { flex: none; touch-action: none; cursor: grab; }
.sheet-grab { display: grid; place-items: center; height: 22px; }
.sheet-grab i { width: 44px; height: 5px; border-radius: 9px; background: var(--sand-d); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px 10px 22px; }
.sheet-head h3 { display: flex; align-items: center; gap: 10px; font-size: 24px; }
.sheet-x { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer; background: #fff; font-size: 22px; line-height: 1; color: var(--mocha); box-shadow: var(--shadow-s); }
.sheet-body { overflow: auto; overscroll-behavior: contain; padding: 4px 18px calc(28px + env(safe-area-inset-bottom)); }
@media (max-width: 860px) { .sheet-body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); } html.sheet-open:not(.private) .rj-out { bottom: max(14px, env(safe-area-inset-bottom)); } }
@media (min-width: 700px) { .sheet { margin-bottom: 18px; border-radius: 30px; } }

/* explore grid */
.xp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 359px) { .xp-grid { grid-template-columns: repeat(3, 1fr); } }
.xp-tile {
  display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 84px; padding: 10px 4px; border: 0; border-radius: 20px; cursor: pointer;
  font: inherit; color: var(--ink); background: #fff; box-shadow: var(--shadow-s), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  animation: xpIn 0.5s var(--ease-back) both; animation-delay: calc(var(--i) * 22ms); transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.xp-tile b { font-size: 11.5px; font-weight: 800; line-height: 1.25; text-align: center; color: var(--cocoa); }
.xp-icon { font-size: 28px; line-height: 1.1; }
.xp-tile.on { background: linear-gradient(150deg, #ff5aa2, var(--pink-d)); box-shadow: var(--glow); }
.xp-tile.on b { color: #fff; }
.xp-tile:hover { transform: translateY(-2px); }
@keyframes xpIn { from { opacity: 0; transform: translateY(14px) scale(0.9); } }
.xp-tools { display: grid; justify-items: center; gap: 10px; margin-top: 16px; text-align: center; }
.xp-motion { padding: 10px 16px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 800; font-size: 13.5px; color: var(--pink-d); background: var(--pink-xl); }
.xp-tips { max-width: 30em; font-size: 12.5px; font-weight: 600; color: var(--mute); line-height: 1.5; }

/* peek (hold a favourite) */
.peek-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; font-size: 28px; background: linear-gradient(140deg, var(--pink-xl), #fff4ea); }
.peek-text { font-family: var(--display); font-size: 19px; line-height: 1.45; color: var(--cocoa); padding: 4px 4px 0; }
html[lang='ar'] .peek-text { font-family: var(--body); font-weight: 600; font-size: 17px; }
.peek-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.peek-btns .btn { flex: 1 1 auto; }
.peek-barca .sheet { background: linear-gradient(180deg, rgba(0, 77, 152, 0.08), rgba(165, 0, 68, 0.08)), var(--cream); }
.peek-matcha .sheet { background: linear-gradient(180deg, rgba(127, 178, 74, 0.12), transparent 60%), var(--cream); }

/* ── Nav + tab bar ── */
.nav-more { display: inline-flex; align-items: center; gap: 4px; padding: 8px 13px; border: 0; border-radius: 999px; cursor: pointer; background: none; font: inherit; font-weight: 700; font-size: 14px; color: var(--pink-d); transition: background 0.25s; }
.nav-more:hover { background: rgba(255, 255, 255, 0.7); }
@media (max-width: 860px) {
  .dock > * { display: grid; justify-items: center; gap: 1px; min-width: 58px; padding: 6px 6px 5px; border: 0; border-radius: 20px; background: none; color: inherit; font: inherit; text-decoration: none; cursor: pointer; transition: background 0.25s, transform 0.2s; }
  .dock > * span { font-size: 18px; line-height: 1.1; }
  .dock > * b { font-size: 10.5px; font-weight: 700; opacity: 0.8; white-space: nowrap; }
  .dock > .on { background: var(--pink); }
  .dock > .on b { opacity: 1; }
  .dock { touch-action: pan-y; }
  .dock.hop-l { animation: hopL 0.4s var(--ease); }
  .dock.hop-r { animation: hopR 0.4s var(--ease); }
}
@keyframes hopL { 40% { translate: -10px 0; } }
@keyframes hopR { 40% { translate: 10px 0; } }

/* ── Favourites: swipe row on phones ── */
.fav { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.fav-hold { display: none; }
.fav.pressing { transform: scale(0.97); transition: transform 0.45s var(--ease); }
.fav.pressing .fav-art { transform: scale(2.4); opacity: 0.45; transition: transform 0.48s linear, opacity 0.48s; }
.favs-dots { display: none; }
@media (max-width: 699px) {
  #favs-sec .favs {
    display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 8px 12vw 16px; scroll-padding: 0 12vw;
    scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  }
  #favs-sec .favs::-webkit-scrollbar { display: none; }
  #favs-sec .favs .fav { flex: 0 0 76vw; scroll-snap-align: center; min-height: 240px; padding: 26px 22px 22px; }
  #favs-sec .favs .fav.in { transform: scale(calc(0.9 + var(--near, 1) * 0.1)); opacity: calc(0.5 + var(--near, 1) * 0.5); transition: transform 0.15s linear, opacity 0.15s linear, box-shadow 0.35s; }
  #favs-sec .favs .fav.in.pressing { transform: scale(0.95); }
  #favs-sec .fav-icon { font-size: 56px; margin-bottom: 14px; }
  #favs-sec .fav b { font-size: 22px; }
  #favs-sec .fav small { font-size: 15px; }
  #favs-sec .fav-art { width: 220px; height: 220px; inset-inline-end: -60px; top: -60px; }
  .favs-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px !important; }
  .favs-dots i { width: 7px; height: 7px; border-radius: 9px; background: var(--sand-d); transition: width 0.3s var(--ease), background 0.3s; }
  .favs-dots i.on { width: 22px; background: var(--pink); }
}
@media (hover: none) and (max-width: 699px) {
  #favs-sec .fav-hold { display: block; position: absolute; inset-inline-end: 16px; bottom: 14px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--latte); }
}

/* ── Smile School: swipe deck on phones ── */
.mf-stamp, .mf-end, .mf-deck-hint, .mf-count { display: none; }
.mf-back-btns { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mf-next { display: none; padding: 9px 14px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 800; font-size: 13.5px; color: var(--pink-d); background: #fff; }
.mf-back.is-myth .mf-next { color: var(--ink); }
@media (max-width: 699px) {
  .mf-grid:not(.review) { position: relative; display: block; height: 412px; }
  .mf-grid:not(.review) .mf-card {
    position: absolute; left: 0; right: 0; top: 0; height: 330px; z-index: calc(30 - var(--k, 0)); touch-action: pan-y;
    transform: translateY(calc(var(--k, 0) * 14px)) scale(calc(1 - var(--k, 0) * 0.05)); opacity: max(0, calc(1 - var(--k, 0) * 0.32));
    transition: transform 0.4s var(--ease), opacity 0.4s;
  }
  .mf-grid:not(.review) .mf-card:not(.top) { pointer-events: none; }
  .mf-grid:not(.review) .mf-card.done { display: none; }
  .mf-grid:not(.review) .mf-card.dragging { transition: none; }
  .mf-grid:not(.review) .mf-card.fly { transition: transform 0.38s ease-in, opacity 0.38s; transform: translateX(calc(var(--fly) * 140%)) rotate(calc(var(--fly) * 22deg)) !important; opacity: 0; }
  .mf-grid:not(.review) .mf-front { background: #fffcfa; box-shadow: var(--shadow), inset 0 0 0 1px #fff; }
  .mf-grid:not(.review) .mf-card.top .mf-front { box-shadow: 0 30px 50px -30px rgba(74, 44, 32, 0.55), 0 0 0 calc(var(--lean, 0) * 0px) transparent, inset 0 0 0 1px #fff; }
  .mf-grid:not(.review) .mf-stamp {
    display: block; position: absolute; top: 22px; padding: 4px 12px; border: 3px solid; border-radius: 10px; font-weight: 800; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; pointer-events: none;
  }
  .mf-grid:not(.review) .mf-stamp.is-fact { inset-inline-start: 18px; color: var(--pink); rotate: -12deg; opacity: clamp(0, calc(var(--lean, 0) * 1.6), 1); }
  .mf-grid:not(.review) .mf-stamp.is-myth { inset-inline-end: 18px; color: var(--mocha); rotate: 12deg; opacity: clamp(0, calc(var(--lean, 0) * -1.6), 1); }
  .mf-grid:not(.review) .mf-card.answered .mf-stamp { display: none; }
  .mf-grid:not(.review) .mf-next { display: inline-block; }
  .mf-grid:not(.review) .mf-end:not([hidden]) { display: grid; place-items: center; position: absolute; left: 0; right: 0; top: 0; height: 330px; border-radius: 26px; text-align: center; background: linear-gradient(160deg, #fff, var(--pink-xl)); box-shadow: var(--shadow); animation: screenIn 0.5s var(--ease); }
  .mf-end-in { display: grid; justify-items: center; gap: 8px; padding: 20px; }
  .mf-end-icon { font-size: 46px; line-height: 1; animation: floaty 2.6s ease-in-out infinite; }
  .mf-end-score { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--pink-d); }
  .mf-end-line { color: var(--mocha); font-weight: 600; max-width: 18em; }
  .mf-grid:not(.review) .mf-deck-hint { display: flex; position: absolute; left: 0; right: 0; top: 362px; justify-content: space-between; align-items: center; padding: 0 6px; font-weight: 800; font-size: 13px; color: var(--mocha); }
  .mf-deck-hint i { font-style: normal; font-weight: 600; font-size: 12px; color: var(--mute); }
  .mf-deck-hint span:last-child { color: var(--pink-d); }
  .mf-grid:not(.review) .mf-count { display: block; position: absolute; left: 0; right: 0; top: 388px; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--latte); }
  .mf-grid:not(.review):has(.mf-end:not([hidden])) .mf-deck-hint { visibility: hidden; }
}

/* ── shared look for the new sections ── */
.sec-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 12.5px; color: var(--pink-d); background: var(--pink-xl); }
.ask-motion { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 800; font-size: 13px; color: #fff; background: var(--ink); }
.ask-motion[hidden] { display: none; }
#matcha, #smile, #barca, #selfie, #cookie, #hope { content-visibility: auto; contain-intrinsic-size: auto 1000px; }

/* ── A day with Dr. Rajiea ── */
.day-sec { position: relative; padding-top: 100px; background: linear-gradient(180deg, transparent 0, #fff0e8 260px, #ffd9cc 100%); }
.day-sec .sec-head { padding: 0 18px 34px; margin-bottom: 0; }
.day { --sky-a: #ffc4b4; --sky-b: #fff0df; --city: #e6b39f; --night: 0; --lights: 0; --sun-x: 8%; --sun-y: 72%; --moon-x: 88%; --moon-y: 78%;
  position: relative; height: calc(var(--n, 6) * 72vh + 100vh); background: var(--city); }
.day-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; color: var(--ink); }
.day-sky { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--sky-a), var(--sky-b) 74%); }
.day-stars i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: calc(var(--night) * 0.9); box-shadow: 0 0 6px rgba(255, 255, 255, 0.8); }
.day-stage.live .day-stars i { animation: dayTw 2.4s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes dayTw { to { scale: 0.4; } }
.day-sun { position: absolute; left: var(--sun-x); top: var(--sun-y); width: 96px; height: 96px; margin: -48px; border-radius: 50%; opacity: calc(1 - var(--night));
  background: radial-gradient(circle, #fff8de 0 34%, #ffd166 36% 54%, rgba(255, 196, 102, 0.35) 57%, transparent 71%); }
.day-moon { position: absolute; left: var(--moon-x); top: var(--moon-y); width: 56px; height: 56px; margin: -28px; border-radius: 50%; opacity: var(--night);
  box-shadow: -13px 7px 0 0 #fff2c4; filter: drop-shadow(0 0 14px rgba(255, 242, 196, 0.55)); transform: rotate(-18deg); }
.day-cloud { position: absolute; width: 118px; height: 34px; border-radius: 40px; background: #fff; opacity: calc((1 - var(--night)) * 0.82); }
.day-cloud::before, .day-cloud::after { content: ''; position: absolute; border-radius: 50%; background: inherit; }
.day-cloud::before { width: 54px; height: 54px; left: 18px; top: -26px; }
.day-cloud::after { width: 40px; height: 40px; left: 58px; top: -16px; }
.day-cloud.c1 { top: 38%; left: -10%; }
.day-cloud.c2 { top: 52%; left: 64%; scale: 0.7; }
.day-cloud.c3 { top: 30%; left: 40%; scale: 0.5; opacity: calc((1 - var(--night)) * 0.6); }
.day-stage.live .day-cloud { animation: dayCloud 38s linear infinite; }
.day-stage.live .day-cloud.c2 { animation-duration: 52s; animation-delay: -20s; }
.day-stage.live .day-cloud.c3 { animation-duration: 64s; animation-delay: -40s; }
@keyframes dayCloud { from { translate: -40vw 0; } to { translate: 80vw 0; } }
.day-lights { position: absolute; inset: 0; opacity: var(--lights); pointer-events: none; }
.day-lights i { position: absolute; bottom: 18%; width: 46vmax; height: 120vmax; transform-origin: 50% 100%;
  background: linear-gradient(0deg, rgba(255, 252, 220, 0.5), rgba(255, 252, 220, 0) 80%); clip-path: polygon(46% 100%, 54% 100%, 100% 0, 0 0); }
.day-lights i:first-child { left: -20vmax; rotate: 28deg; }
.day-lights i:last-child { right: -20vmax; rotate: -28deg; }
.day-city { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30%; }
.city-far { fill: var(--city); opacity: 0.5; }
.city-near, .city-tower { fill: var(--city); }
.city-win rect { fill: #ffd98a; opacity: var(--night); }
.day-cap {
  position: absolute; left: 14px; right: 46px; top: calc(max(12px, env(safe-area-inset-top)) + 70px); z-index: 3; padding: 16px 18px 18px; border-radius: 24px;
  background: rgba(255, 255, 255, 0.72); box-shadow: 0 20px 40px -26px rgba(42, 23, 18, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
  opacity: 0; translate: 0 18px; transition: opacity 0.45s, translate 0.6s var(--ease), background 0.6s, color 0.6s; pointer-events: none;
}
.day-cap.on { opacity: 1; translate: 0 0; pointer-events: auto; }
.day-cap.past { translate: 0 -18px; }
.day-time { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; font-weight: 800; font-size: 13px; color: #fff; background: var(--ink); font-variant-numeric: tabular-nums; }
.day-time i { font-style: normal; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); font-size: 12px; }
.day-cap h3 { margin-top: 10px; font-size: clamp(25px, 6.4vw, 34px); }
.day-cap p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--cocoa); }
.day-stage.dark .day-cap { color: #fff; background: rgba(24, 12, 30, 0.5); box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.day-stage.dark .day-cap p { color: rgba(255, 255, 255, 0.84); }
.day-stage.dark .day-time { background: var(--pink); }
.day-props { position: absolute; left: 50%; bottom: calc(18% + 4px); z-index: 2; width: min(92vw, 420px); aspect-ratio: 300 / 260; translate: -50% 0; }
@media (max-height: 700px) { .day-props { width: min(70vw, 300px); } .day-cap p { font-size: 14px; } }
.day-prop { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0; transform: translateY(30px) scale(0.88); pointer-events: none;
  transition: opacity 0.45s, transform 0.7s var(--ease-back); -webkit-tap-highlight-color: transparent; }
.day-prop.on { opacity: 1; transform: none; pointer-events: auto; }
.day-prop.past { transform: translateY(-24px) scale(0.94); }
.day-prop svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 18px rgba(42, 23, 18, 0.18)); }
.day-prop:focus-visible { outline: 3px solid var(--pink); outline-offset: 6px; border-radius: 30px; }
.day-prop svg * { transform-box: view-box; }
.day-bubble { position: absolute; left: 50%; top: -6px; z-index: 3; padding: 8px 14px; border-radius: 16px; white-space: nowrap; font-weight: 800; font-size: 14px; color: var(--ink);
  background: #fff; box-shadow: var(--shadow-s); translate: -50% 0; opacity: 0; scale: 0.6; transition: opacity 0.25s, scale 0.35s var(--ease-back); pointer-events: none; }
.day-bubble.show { opacity: 1; scale: 1; }
.day-tapme { position: absolute; left: 50%; top: 52%; width: 70px; height: 70px; margin: -35px; border-radius: 50%; border: 2.5px solid rgba(255, 46, 136, 0.7); pointer-events: none; opacity: 0; }
.day-stage.live:not(.tapped) .day-tapme { animation: ping 1.8s ease-out 1.2s infinite; }
.day-dots { position: absolute; right: 8px; top: 50%; z-index: 4; display: grid; gap: 2px; translate: 0 -50%; }
.day-dots button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
.day-dots i { width: 8px; height: 8px; border-radius: 9px; background: rgba(42, 23, 18, 0.25); transition: height 0.35s var(--ease), background 0.35s; }
.day-dots .on i { height: 24px; background: var(--pink); }
.day-stage.dark .day-dots i { background: rgba(255, 255, 255, 0.35); }
.day-stage.dark .day-dots .on i { background: var(--pink); }
.day-scroll { position: absolute; left: 50%; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 92px); z-index: 3; translate: -50% 0; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cocoa); background: rgba(255, 255, 255, 0.7); opacity: 0; transition: opacity 0.4s; }
.day-scroll i { font-style: normal; display: inline-block; }
.day-stage.start .day-scroll { opacity: 1; }
.day-stage.live.start .day-scroll i { animation: cue2 1.4s ease-in-out infinite; }
@keyframes cue2 { 50% { transform: translateY(4px); } }
@media (min-width: 900px) {
  .day-cap { left: max(5vw, calc(50% - 560px)); right: auto; width: 400px; top: 26%; padding: 22px 24px 24px; }
  .day-cap h3 { font-size: 38px; }
  .day-cap p { font-size: 17px; }
  .day-props { left: auto; right: max(6vw, calc(50% - 560px)); bottom: 21%; width: 460px; translate: 0 0; }
  .day-dots { right: 22px; }
  .day-scroll { bottom: 24px; }
}

/* scene drawings: idle life (only while on screen) and tap reactions */
.day-stage.live .dp-matcha.on .dp-whisk { transform-origin: 200px 140px; animation: dpWhisk 1.3s ease-in-out infinite; }
.dp-matcha.tap .dp-whisk { animation-duration: 0.22s !important; }
.dp-matcha.tap .dp-foam { animation: dpFoam 0.9s var(--ease-back); transform-origin: 150px 150px; }
@keyframes dpWhisk { 0%, 100% { rotate: -10deg; } 50% { rotate: 10deg; } }
@keyframes dpFoam { 40% { scale: 1.12 1.5; } }
.day-stage.live .day-prop.on .dp-steam path { stroke-dasharray: 60; animation: dpSteam 2.6s linear infinite; }
.day-stage.live .day-prop.on .dp-steam path:nth-child(2) { animation-delay: -0.9s; }
.day-stage.live .day-prop.on .dp-steam path:nth-child(3) { animation-delay: -1.7s; }
.day-prop.tap .dp-steam { animation: dpPuff 0.9s ease-out; transform-origin: 150px 100px; }
@keyframes dpSteam { from { stroke-dashoffset: 120; opacity: 0; } 30% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 0; translate: 0 -12px; } }
@keyframes dpPuff { 40% { scale: 1.4; opacity: 1; } }
.day-stage.live .dp-clinic.on .dp-tooth { animation: dpBob 2.8s ease-in-out infinite; }
.day-stage.live .dp-clinic.on .dp-spark path { transform-origin: center; transform-box: fill-box; animation: dpSpark 1.6s ease-in-out infinite alternate; }
.day-stage.live .dp-clinic.on .dp-spark path:last-child { animation-delay: -0.8s; }
.dp-clinic.tap .dp-tooth { animation: dpJump 0.9s var(--ease-back) !important; transform-origin: 150px 200px; }
.dp-clinic.tap .dp-beam { opacity: 0.8; transition: opacity 0.2s; }
@keyframes dpBob { 50% { translate: 0 -6px; } }
@keyframes dpSpark { from { scale: 0.5; opacity: 0.5; } to { scale: 1.15; opacity: 1; } }
@keyframes dpJump { 30% { translate: 0 -26px; rotate: -6deg; } 60% { translate: 0 0; scale: 1.05 0.94; } }
.dp-tawouk.tap .dp-skewer { animation: dpSizzle 0.5s ease 2; }
.dp-tawouk.tap .dp-skewer2 { animation: dpSizzle 0.5s ease 0.1s 2; }
@keyframes dpSizzle { 30% { translate: 0 -5px; } 60% { translate: 0 2px; } }
.day-stage.live .dp-cafe.on .dp-heart { transform-origin: 112px 124px; animation: beat 1.8s ease-in-out infinite; }
.day-stage.live .dp-cafe.on .dp-phone { animation: dpBob 3.2s ease-in-out infinite; }
.dp-cafe.tap .dp-flash { animation: dpFlash 0.7s ease-out; }
.dp-cafe.tap .dp-heart { animation: dpHeart 0.9s var(--ease-back) !important; transform-origin: 112px 124px; }
@keyframes dpFlash { 0% { opacity: 0.95; } 100% { opacity: 0; } }
@keyframes dpHeart { 40% { scale: 1.6; } }
.day-stage.live .dp-match.on .dp-ball { transform-origin: 150px 212px; animation: dpBounce 1.1s cubic-bezier(0.5, 0, 0.5, 1) infinite; }
.day-stage.live .dp-match.on .dp-scarf { animation: dpWave 3s ease-in-out infinite; }
.dp-match.tap .dp-ball { animation: dpShoot 1s var(--ease) forwards !important; }
.dp-match.tap .dp-goal { animation: dpGoal 1.1s var(--ease-back) forwards; transform-origin: 150px 40px; }
@keyframes dpBounce { 50% { translate: 0 -16px; } }
@keyframes dpWave { 50% { translate: 0 3px; skew: -2deg 0; } }
@keyframes dpShoot { 0% { translate: 0 0; scale: 1; } 60% { translate: 40px -86px; scale: 0.55; rotate: 360deg; } 100% { translate: 40px -78px; scale: 0.5; rotate: 400deg; } }
@keyframes dpGoal { 0% { opacity: 0; scale: 0.3; } 40% { opacity: 1; scale: 1.15; } 100% { opacity: 1; scale: 1; } }
.day-stage.live .dp-night.on .dp-z text { animation: dpZ 2.6s ease-in-out infinite; }
.day-stage.live .dp-night.on .dp-z text:nth-child(2) { animation-delay: -0.9s; }
.day-stage.live .dp-night.on .dp-z text:nth-child(3) { animation-delay: -1.8s; }
.day-stage.live .dp-night.on .dp-turtle { transform-origin: 150px 200px; animation: dpBreathe 3.4s ease-in-out infinite; }
.dp-night.tap .dp-turtle { animation: dpWiggle 0.8s ease !important; transform-origin: 150px 200px; }
.dp-night.tap .dp-z { animation: dpPuff 0.9s ease-out; transform-origin: 214px 50px; }
@keyframes dpZ { 0% { opacity: 0; translate: -6px 10px; } 40% { opacity: 1; } 100% { opacity: 0; translate: 8px -12px; } }
@keyframes dpBreathe { 50% { scale: 1.02 0.98; } }
@keyframes dpWiggle { 20% { rotate: -5deg; } 40% { rotate: 4deg; } 60% { rotate: -3deg; } 80% { rotate: 2deg; } }

/* ── Matcha bar ── */
.mb-sec { background: linear-gradient(180deg, transparent, #eef6e2 12%, #f4f8ea 88%, transparent); }
.mb-sec .kicker { color: #4d7a22; background: #e3f1cf; }
.mb { max-width: 900px !important; }
.mb-card { position: relative; padding: 16px 16px 20px; border-radius: 34px; background: var(--glass-b); box-shadow: var(--shadow), inset 0 0 0 1px #fff; }
.mb-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 6px; padding: 0; list-style: none; counter-reset: none; }
.mb-steps li { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 4px; border-radius: 999px; font-weight: 800; font-size: 12.5px; color: var(--latte); background: var(--beige-l); transition: background 0.3s, color 0.3s; }
.mb-steps i { font-style: normal; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; background: #fff; }
.mb-steps li.on { color: #fff; background: #5e9a2c; box-shadow: 0 8px 16px -8px rgba(77, 122, 34, 0.7); }
.mb-steps li.on i { color: #5e9a2c; }
.mb-steps li.done { color: #4d7a22; background: #e3f1cf; }
.mb-main { display: grid; gap: 10px; }
@media (min-width: 760px) { .mb-main { grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; } .mb-card { padding: 22px 26px 26px; } }
.mb-stage { position: relative; height: 300px; display: grid; place-items: center; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.mb-glow { position: absolute; left: 50%; top: 55%; width: 260px; height: 260px; margin: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(169, 211, 109, 0.45), transparent 66%); }
.mb-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 20px rgba(42, 23, 18, 0.16)); }
.mb-svg * { transform-box: view-box; }
.mb-stage.swap .mb-svg { animation: mbSwap 0.5s var(--ease-back); }
.mb-stage.jig .mb-svg, .mb-stage.spill .mb-svg { animation: wobble 0.45s ease; }
.mb-stage.served .mb-svg { animation: mbServe 0.9s var(--ease-back); }
@keyframes mbSwap { from { transform: scale(0.85) translateY(10px); opacity: 0.4; } }
@keyframes mbServe { 30% { transform: translateY(-18px) scale(1.06); } }
.mb-whisk { translate: var(--wx, 0) 0; transition: translate 0.08s linear; }
.mb.live .mb-whisk { animation: mbWhiskIdle 1.6s ease-in-out infinite; transform-origin: 120px 200px; }
@keyframes mbWhiskIdle { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }
.mb-jug { transform-origin: 178px 30px; transition: rotate 0.25s var(--ease); }
.mb-jug.tilt { rotate: -32deg; }
.mb.live .mb-steam path { stroke-dasharray: 50; animation: dpSteam 2.6s linear infinite; }
.mb.live .mb-steam path:nth-child(2) { animation-delay: -0.9s; }
.mb.live .mb-steam path:nth-child(3) { animation-delay: -1.7s; }
.mb-band { animation: mbBand 1s ease-in-out infinite alternate; }
@keyframes mbBand { to { opacity: 0.55; } }
.mb-pop { position: absolute; left: 50%; top: 4px; z-index: 2; padding: 7px 14px; border-radius: 999px; white-space: nowrap; font-weight: 800; font-size: 14px; color: #fff; background: #5e9a2c; box-shadow: 0 10px 20px -10px rgba(77, 122, 34, 0.8); translate: -50% 0; opacity: 0; scale: 0.6; pointer-events: none; }
.mb-pop.show { animation: mbPop 2s var(--ease-back) forwards; }
@keyframes mbPop { 0% { opacity: 0; scale: 0.6; } 15% { opacity: 1; scale: 1; } 80% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 0.9; } }
.mb-panel { display: grid; gap: 10px; text-align: center; }
.mb-q { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.35; color: var(--ink); }
html[lang='ar'] .mb-q { font-family: var(--body); font-weight: 800; font-size: 17px; }
.mb-q.small { font-family: var(--body); font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mocha); margin-top: 4px; }
.mb-bases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mb-bases button { display: grid; justify-items: center; gap: 2px; padding: 12px 4px 10px; border: 0; border-radius: 20px; cursor: pointer; font: inherit; background: #fff; box-shadow: var(--shadow-s), inset 0 0 0 1.5px var(--sand); transition: transform 0.25s var(--ease-back), box-shadow 0.25s; }
.mb-bases span { font-size: 28px; line-height: 1.1; }
.mb-bases b { font-size: 13px; font-weight: 800; color: var(--cocoa); }
.mb-bases [aria-checked='true'] { box-shadow: 0 0 0 2.5px #5e9a2c, 0 10px 20px -10px rgba(77, 122, 34, 0.7); transform: translateY(-2px); }
.mb-sugar { display: flex; justify-content: center; gap: 6px; padding: 4px; border-radius: 999px; background: var(--beige-l); }
.mb-sugar button { flex: 1; padding: 9px 6px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 800; font-size: 13px; color: var(--mocha); background: none; transition: background 0.25s, color 0.25s; }
.mb-sugar [aria-checked='true'] { color: var(--ink); background: #fff; box-shadow: var(--shadow-s); }
.mb-next, .mb-panel .btn { justify-self: center; }
.mb-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mb-row > * { flex: 0 0 auto; white-space: nowrap; }
.mb-row .btn { padding: 13px 20px; font-size: 15px; }
.mb-panel .btn:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
.mb-panel .btn.mb-nudge { animation: pop 0.9s var(--ease-back) 2; }
.mb-meter { position: relative; height: 34px; border-radius: 999px; background: var(--beige-l); overflow: hidden; box-shadow: inset 0 0 0 1px var(--sand); }
.mb-meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #a9d36d, #5e9a2c); transition: width 0.12s linear; }
.mb-meter.milk i { background: linear-gradient(90deg, #fff7e6, #f0e2c4); box-shadow: inset 0 0 0 1px #eadbbd; }
.mb-meter span { position: relative; display: grid; place-items: center; height: 100%; font-weight: 800; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mb-zone { position: absolute; left: 45%; width: 27%; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(255, 46, 136, 0.18) 0 6px, rgba(255, 46, 136, 0.06) 6px 12px); box-shadow: inset 2px 0 0 var(--pink), inset -2px 0 0 var(--pink); }
.mb-hold {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 800; font-size: 15px;
  color: var(--ink); background: #fff; box-shadow: var(--shadow-s), inset 0 0 0 2px var(--sand-d); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transition: transform 0.15s, box-shadow 0.2s;
}
.mb-hold span { font-size: 20px; }
.mb-hold.on { transform: scale(0.95); box-shadow: 0 0 0 4px var(--pink-xl), inset 0 0 0 2px var(--pink); }
.mb-result { display: grid; justify-items: center; gap: 8px; animation: screenIn 0.5s var(--ease); }
.mb-result h3 { font-size: clamp(26px, 6vw, 34px); }
.mb-leaves { display: flex; gap: 4px; font-size: 26px; }
.mb-leaves i { font-style: normal; opacity: 0.2; filter: grayscale(1); }
.mb-leaves i.on { opacity: 1; filter: none; animation: pop 0.5s var(--ease-back) both; animation-delay: calc(var(--i) * 120ms + 0.2s); }
.mb-stats { display: flex; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; flex-wrap: wrap; justify-content: center; }
.mb-stats li { display: grid; padding: 6px 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-s); }
.mb-stats span { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--latte); }
.mb-stats b { font-size: 15px; color: var(--ink); }
.mb-verdict { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--cocoa); max-width: 22em; }
html[lang='ar'] .mb-verdict { font-family: var(--body); font-style: normal; font-weight: 700; font-size: 16px; }
.mb-sugar-note { padding: 8px 14px; border-radius: 14px; font-weight: 700; font-size: 14px; color: var(--pink-d); background: var(--pink-xl); }

/* ── Smile studio ── */
.ss { max-width: 640px !important; }
.ss-card { padding: 16px 16px 18px; border-radius: 34px; background: var(--glass-b); box-shadow: var(--shadow), inset 0 0 0 1px #fff; }
.ss-hud { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ss-phases { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ss-phases li { display: flex; align-items: center; gap: 5px; padding: 6px 11px 6px 8px; border-radius: 999px; font-weight: 800; font-size: 13px; color: var(--latte); background: var(--beige-l); transition: background 0.3s, color 0.3s; }
.ss-phases li span { font-size: 15px; }
.ss-phases li.on { color: #fff; background: var(--pink); box-shadow: 0 8px 16px -8px rgba(255, 46, 136, 0.7); }
.ss-phases li.done { color: var(--pink-d); background: var(--pink-xl); }
.ss-meta { display: flex; gap: 12px; font-size: 13px; font-weight: 700; color: var(--mocha); font-variant-numeric: tabular-nums; }
.ss-meta b { color: var(--ink); }
.ss-bar { height: 7px; margin: 12px 0 8px; border-radius: 99px; background: var(--sand); overflow: hidden; }
.ss-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink-l), var(--pink)); transition: width 0.3s var(--ease); }
.ss-hint { min-height: 1.5em; text-align: center; font-weight: 700; font-size: 14.5px; color: var(--cocoa); }
.ss-stage { position: relative; margin-top: 6px; border-radius: 26px; overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #fff6fa, #ffe4ef); box-shadow: inset 0 0 0 1px #fff; }
.ss-cv { display: block; width: 100%; touch-action: none; cursor: none; }
@media (pointer: coarse) { .ss-cv { cursor: default; } }
.ss-tool { position: absolute; left: 0; top: 0; z-index: 2; margin: -22px 0 0 -22px; width: 44px; height: 44px; display: grid; place-items: center; font-size: 34px; pointer-events: none; opacity: 0; transition: opacity 0.2s; filter: drop-shadow(0 6px 8px rgba(42, 23, 18, 0.3)); }
.ss-tool.on { opacity: 1; }
.ss[data-phase='scrub'] .ss-tool.on { animation: ssScrub 0.25s ease-in-out infinite alternate; }
@keyframes ssScrub { from { rotate: -16deg; } to { rotate: 16deg; } }
.ss-done { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 16px; text-align: center; background: rgba(255, 246, 250, 0.82); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: screenIn 0.5s var(--ease); }
.ss-done[hidden] { display: none; }
.ss-done p { font-family: var(--display); font-weight: 600; font-size: 21px; color: var(--ink); max-width: 18em; }
html[lang='ar'] .ss-done p { font-family: var(--body); font-weight: 800; font-size: 18px; }
.ss-done small { font-weight: 800; color: var(--pink-d); }
.ss-stamp { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border: 3px solid var(--pink); border-radius: 14px; color: var(--pink-d); font-weight: 800; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; rotate: -6deg; background: #fff; animation: ssStamp 0.6s var(--ease-back) both; }
.ss-stamp b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: var(--pink); }
@keyframes ssStamp { from { scale: 2.2; opacity: 0; } }
.ss-btns { display: flex; justify-content: center; margin-top: 12px; }
.ss-btns .btn { padding: 10px 18px; font-size: 14px; }
.ss[data-phase='done'] .ss-assist { visibility: hidden; }

/* ── Barça penalty shootout ── */
.pk-sec { position: relative; padding: 100px 18px; color: #fff; background: radial-gradient(120% 70% at 50% 0%, #1a2f6b 0%, #0d1638 45%, #2a0b25 100%); overflow: hidden; }
.pk-sec::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.18; background: repeating-linear-gradient(90deg, #004d98 0 60px, #a50044 60px 120px); mask-image: linear-gradient(180deg, #000, transparent 40%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 40%); }
.pk-sec > * { position: relative; max-width: 1140px; margin-left: auto; margin-right: auto; }
.pk-sec .sec-head p { color: rgba(255, 255, 255, 0.78); }
.pk-sec .kicker { color: #edbb00; background: rgba(237, 187, 0, 0.14); }
.pk { max-width: 560px !important; }
.pk-card { padding: 14px; border-radius: 34px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.pk-board { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px 12px; }
.pk-team { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: 0.08em; }
.pk-crest { display: inline-flex; width: 26px; height: 30px; border-radius: 6px 6px 13px 13px; overflow: hidden; box-shadow: 0 0 0 2px #edbb00; }
.pk-crest i { flex: 1; background: #004d98; }
.pk-crest i:last-child { background: #a50044; }
.pk-dots { display: flex; gap: 7px; margin: 0; padding: 0; list-style: none; }
.pk-dots li { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); transition: background 0.3s, box-shadow 0.3s; }
.pk-dots li.goal { background: linear-gradient(90deg, #004d98 50%, #a50044 50%); box-shadow: 0 0 0 2px #edbb00; animation: pop 0.5s var(--ease-back); }
.pk-dots li.miss { background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25); position: relative; }
.pk-dots li.miss::after { content: '×'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, 0.8); }
.pk-best { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, 0.7); }
.pk-best b { color: #edbb00; }
.pk-pitch { position: relative; border-radius: 24px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.pk-svg { display: block; width: 100%; height: auto; }
.pk-svg * { transform-box: view-box; }
.pk.live .pk-kp { animation: pkSway 1.6s ease-in-out infinite; transform-origin: 0 0; }
@keyframes pkSway { 0%, 100% { translate: -6px 0; } 50% { translate: 6px 0; } }
.pk.goal .pk-net { animation: pkNet 0.6s ease-out; transform-origin: 180px 178px; }
@keyframes pkNet { 30% { scale: 1.04 1.06; translate: 0 -2px; } }
.pk.goal .pk-crowd { animation: pkCrowd 0.35s ease-in-out 4; }
@keyframes pkCrowd { 50% { translate: 0 -4px; } }
.pk-flash { position: absolute; left: 50%; top: 30%; z-index: 3; padding: 6px 18px; border-radius: 14px; white-space: nowrap; font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: clamp(34px, 11vw, 54px); letter-spacing: 0.02em; color: #fff; translate: -50% -50%; opacity: 0; scale: 0.4; pointer-events: none; text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); }
.pk-flash.show { animation: pkFlash 1.4s var(--ease-back) forwards; }
.pk-flash.goal { background: linear-gradient(90deg, #004d98, #a50044); color: #edbb00; }
.pk-flash.saved, .pk-flash.wide, .pk-flash.over, .pk-flash.post { background: rgba(20, 12, 30, 0.75); font-size: clamp(28px, 9vw, 42px); }
@keyframes pkFlash { 0% { opacity: 0; scale: 0.4; } 18% { opacity: 1; scale: 1.12; } 30% { scale: 1; } 82% { opacity: 1; } 100% { opacity: 0; scale: 1; } }
.pk-swipe { position: absolute; left: 50%; bottom: 8%; width: 2px; height: 70px; translate: -50% 0; pointer-events: none; opacity: 0.85; }
.pk-swipe i { position: absolute; left: -9px; bottom: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2); }
.pk.live:not(.aiming) .pk-swipe i { animation: pkSwipe 1.8s ease-in-out 1s infinite; }
.pk.aiming .pk-swipe, .pk.goal .pk-swipe, .pk.saved .pk-swipe { opacity: 0; }
@keyframes pkSwipe { 0% { opacity: 0; translate: 0 0; } 15% { opacity: 1; } 70% { opacity: 1; translate: 0 -120px; scale: 0.7; } 100% { opacity: 0; translate: 0 -130px; } }
.pk-msg { min-height: 1.5em; margin-top: 12px; text-align: center; font-weight: 800; font-size: 15px; }
.pk-quick { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.pk-quick button { padding: 8px 14px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 800; font-size: 13px; color: #fff; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); transition: background 0.2s; }
.pk-quick button:active { background: rgba(255, 255, 255, 0.22); }
.pk-end { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 18px; background: rgba(10, 14, 40, 0.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: screenIn 0.5s var(--ease); }
.pk-end[hidden] { display: none; }
.pk-end-in { display: grid; justify-items: center; gap: 8px; text-align: center; }
.pk-trophy { font-size: 54px; line-height: 1; animation: floaty 2.4s ease-in-out infinite; }
.pk-end-in > b { font-family: 'Fraunces', Georgia, serif; font-size: 48px; line-height: 1; color: #edbb00; }
.pk-end-in p { max-width: 18em; font-weight: 700; font-size: 16px; }
.pk-end-in small { font-weight: 800; color: #edbb00; }

/* ── Selfie studio ── */
.sf { max-width: 520px !important; }
.sf-card { display: grid; gap: 12px; padding: 14px; border-radius: 34px; background: var(--glass-b); box-shadow: var(--shadow), inset 0 0 0 1px #fff; }
.sf-stage { position: relative; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; isolation: isolate; background: linear-gradient(160deg, #ffe9f2, #ffc9df); box-shadow: inset 0 0 0 1px #fff; -webkit-user-select: none; user-select: none; }
.sf-stage.bump { animation: sfBump 0.4s var(--ease-back); }
@keyframes sfBump { 40% { transform: scale(0.98); } }
.sf-video, .sf-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.sf-video { transform: scaleX(-1); }
.sf-stage[data-mode='camera'] .sf-video, .sf-stage[data-mode='paused'] .sf-video { display: block; }
.sf-stage[data-mode='photo'] .sf-photo { display: block; }
.sf-stage[data-mode='paused']::after { content: '▶︎'; position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; font-size: 46px; color: #fff; background: rgba(42, 23, 18, 0.45); }
.sf-frame { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.sf-stickers { position: absolute; inset: 0; z-index: 3; pointer-events: none; touch-action: none; }
.sf-stage.dragging .sf-stickers { pointer-events: auto; }
.sf-sticker { position: absolute; display: grid; justify-items: center; line-height: 1; cursor: grab; pointer-events: auto; touch-action: none; filter: drop-shadow(0 4px 6px rgba(42, 23, 18, 0.25)); }
.sf-sticker.new { animation: sfIn 0.45s var(--ease-back); }
@keyframes sfIn { from { scale: 0.2; opacity: 0; } }
.sf-sticker.active { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 3px rgba(255, 46, 136, 0.9)); }
.sf-sticker.k-tag b { display: inline-block; padding: 0.45em 0.75em; border-radius: 99px; font-size: 0.34em; font-weight: 800; white-space: nowrap; color: #fff; background: #ff2e88; }
.sf-sticker.k-pet small { display: block; margin-top: 0.06em; padding: 0.3em 0.6em; border-radius: 99px; font-size: 0.2em; font-weight: 800; color: #3d7a3a; background: #fff; }
.sf-trash { position: absolute; left: 50%; bottom: 20%; z-index: 4; width: 54px; height: 54px; margin-left: -27px; display: grid; place-items: center; border-radius: 50%; font-size: 24px; background: rgba(42, 23, 18, 0.55); opacity: 0; scale: 0.6; transition: opacity 0.2s, scale 0.25s var(--ease-back), background 0.2s; pointer-events: none; }
.sf-stage.dragging .sf-trash { opacity: 1; scale: 1; }
.sf-stage.over-trash .sf-trash { background: var(--pink); scale: 1.2; }
.sf-count { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 110px; color: #fff; text-shadow: 0 8px 30px rgba(255, 46, 136, 0.6); pointer-events: none; opacity: 0; }
.sf-count.show { animation: sfCount 0.7s ease-out; }
@keyframes sfCount { 0% { opacity: 0; scale: 1.6; } 30% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 0.8; } }
.sf-flash { position: absolute; inset: 0; z-index: 6; background: #fff; opacity: 0; pointer-events: none; }
.sf-flash.go { animation: flash 0.6s ease-out; }
.sf-result { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; object-fit: cover; animation: sfDev 1.4s ease both; }
@keyframes sfDev { from { filter: brightness(2.2) saturate(0); } }
.sf-start { position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 22px; text-align: center; background: radial-gradient(120% 90% at 50% 20%, rgba(255, 255, 255, 0.82), rgba(255, 225, 238, 0.9)); }
.sf-start[hidden] { display: none; }
.sf-start-icon { font-size: 54px; line-height: 1; animation: floaty 2.6s ease-in-out infinite; }
.sf-start-msg { max-width: 18em; font-weight: 700; color: var(--cocoa); }
.sf-start.busy { opacity: 0.7; pointer-events: none; }
.sf-start.nudge { animation: wobble 0.5s ease; }
.sf-alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sf-alt .btn { padding: 11px 16px; font-size: 14px; }
.sf-frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sf-frames button { display: grid; justify-items: center; gap: 1px; padding: 8px 4px; border: 0; border-radius: 16px; cursor: pointer; font: inherit; font-weight: 800; font-size: 12px; color: var(--cocoa); background: #fff; box-shadow: var(--shadow-s); transition: transform 0.2s var(--ease-back), box-shadow 0.2s; }
.sf-frames button span { font-size: 20px; }
.sf-frames [aria-checked='true'] { color: #fff; background: linear-gradient(150deg, #ff5aa2, var(--pink-d)); box-shadow: var(--glow); transform: translateY(-2px); }
.sf-tray { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.sf-tray::-webkit-scrollbar { display: none; }
.sf-tray button { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 16px; cursor: pointer; font-size: 26px; background: var(--beige-l); box-shadow: inset 0 0 0 1.5px var(--sand); scroll-snap-align: start; transition: transform 0.2s var(--ease-back); }
.sf-tray button b { font-size: 14px; font-weight: 800; color: #fff; padding: 4px 7px; border-radius: 99px; background: var(--pink); }
.sf-tray button:active { transform: scale(0.88); }
.sf-actions { display: flex; justify-content: center; }
.sf-actions[hidden], .sf-after[hidden] { display: none; }
.sf-snap { width: 74px; height: 74px; padding: 6px; border: 0; border-radius: 50%; cursor: pointer; background: #fff; box-shadow: 0 0 0 4px var(--pink-l), var(--glow); transition: transform 0.15s; }
.sf-snap i { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff7fb2, var(--pink-d)); }
.sf-snap:active { transform: scale(0.9); }
.sf-after { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sf-note { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--mocha); }
.sf-tip { text-align: center; font-size: 12px; font-weight: 600; color: var(--mute); }

/* ── Fortune cookie ── */
.fc { max-width: 520px !important; display: grid; gap: 14px; justify-items: center; }
.fc-stage { position: relative; width: min(100%, 420px); min-height: 300px; display: grid; place-items: center; }
.fc-cookie { position: relative; width: min(78vw, 300px); padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform 0.5s var(--ease); }
.fc-cookie svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 22px rgba(122, 69, 24, 0.22)); }
.fc-half { transform-box: view-box; transition: transform 0.6s var(--ease-back), opacity 0.6s; }
.fc-l { transform-origin: 130px 150px; }
.fc-r { transform-origin: 130px 150px; }
.fc-crack { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 0.25s; }
.fc-cookie[data-taps='1'] .fc-crack { stroke-dashoffset: 54; }
.fc-cookie[data-taps='2'] .fc-crack { stroke-dashoffset: 22; }
.fc-crumbs { opacity: 0; transition: opacity 0.3s; }
.fc-cookie.knock { animation: fcKnock 0.32s ease; }
@keyframes fcKnock { 30% { transform: rotate(-6deg) scale(0.96); } 65% { transform: rotate(4deg) scale(1.02); } }
.fc-cookie:not(.cracked):not(.knock) { animation: fcBob 3.4s ease-in-out infinite; }
@keyframes fcBob { 50% { transform: translateY(-6px) rotate(-2deg); } }
.fc-cookie.cracked { transform: translateY(46px) scale(0.92); cursor: default; }
.fc-cookie.cracked .fc-l { transform: translate(-34px, 10px) rotate(-26deg); }
.fc-cookie.cracked .fc-r { transform: translate(34px, 10px) rotate(26deg); }
.fc-cookie.cracked .fc-crack { opacity: 0; }
.fc-cookie.cracked .fc-crumbs { opacity: 1; }
.fc-cookie.fresh { animation: fcIn 0.5s var(--ease-back); }
@keyframes fcIn { from { transform: scale(0.4) rotate(-20deg); opacity: 0; } }
.fc-taps { position: absolute; left: 50%; bottom: -14px; display: flex; gap: 6px; translate: -50% 0; }
.fc-taps i { width: 9px; height: 9px; border-radius: 50%; background: var(--sand-d); transition: background 0.2s, transform 0.2s var(--ease-back); }
.fc-cookie[data-taps='1'] .fc-taps i:nth-child(1), .fc-cookie[data-taps='2'] .fc-taps i:nth-child(-n + 2), .fc-cookie[data-taps='3'] .fc-taps i { background: var(--pink); transform: scale(1.25); }
.fc-cookie.cracked .fc-taps { opacity: 0; }
.fc-slip { position: absolute; left: 50%; top: 18px; z-index: 2; width: min(92%, 360px); padding: 18px 20px 14px; border-radius: 6px; text-align: center; color: var(--ink); background: repeating-linear-gradient(0deg, #fffdf8 0 27px, #fbefe4 27px 28px); box-shadow: 0 18px 40px -18px rgba(74, 40, 32, 0.45), inset 4px 0 0 var(--pink-l), inset -4px 0 0 var(--pink-l); translate: -50% 0; animation: fcSlip 0.7s var(--ease-back) both; }
.fc-slip[hidden] { display: none; }
@keyframes fcSlip { from { transform: translateY(110px) scaleX(0.15); opacity: 0; } 55% { transform: translateY(-6px) scaleX(1.03); opacity: 1; } }
.fc-text { margin: 0; font-family: var(--display); font-size: clamp(19px, 5vw, 22px); font-weight: 600; line-height: 1.3; }
.fc-lucky { display: block; margin-top: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; color: var(--pink-d); }
.fc-row { display: grid; gap: 10px; justify-items: center; }
.fc-count { font-size: 13px; font-weight: 800; color: var(--mocha); text-align: center; }
.fc-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fc-btns[hidden] { display: none; }
.fc-btns .btn { padding: 12px 18px; font-size: 14.5px; }
.fc-btns .btn:disabled { opacity: 0.6; cursor: default; }

/* ── Hope jar ── */
.hj-sec { position: relative; padding: 100px 18px; color: #fff; background: radial-gradient(130% 80% at 50% 0%, #6b3a6e 0%, #3b2047 42%, #1d1230 100%); overflow: hidden; }
.hj-sec > * { position: relative; max-width: 1140px; margin-left: auto; margin-right: auto; }
.hj-sec .sec-head p { color: rgba(255, 255, 255, 0.8); }
.hj-sec .kicker { color: #ffd98a; background: rgba(255, 217, 138, 0.14); }
.hj { max-width: 520px !important; display: grid; gap: 18px; }
.hj-scene { position: relative; display: grid; justify-items: center; gap: 10px; padding-top: 6px; }
.hj-sky { position: absolute; inset: -60px -40px 0; pointer-events: none; }
.hj-sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0.5; }
.hj.live .hj-sky i { animation: hjTw 3.2s ease-in-out var(--d) infinite; }
@keyframes hjTw { 50% { opacity: 0.1; transform: scale(0.6); } }
.hj-jar { position: relative; width: min(64vw, 250px); aspect-ratio: 240 / 300; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.hj-jar svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hj-jar::before { content: ''; position: absolute; inset: 22% 4% 0; border-radius: 40%; background: radial-gradient(closest-side, rgba(255, 190, 225, 0.45), transparent); filter: blur(10px); }
.hj.live .hj-jar::before { animation: hjGlow 4s ease-in-out infinite; }
@keyframes hjGlow { 50% { opacity: 0.55; transform: scale(0.94); } }
.hj-jar.wiggle { animation: wobble 0.55s ease; }
.hj-stars { position: absolute; inset: 0; }
.hj-star { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; background: var(--c, #ffd98a); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); rotate: var(--r, 0deg); filter: drop-shadow(0 0 4px var(--c, #ffd98a)); transition: transform 0.5s var(--ease-back), opacity 0.5s; }
.hj-star.new { animation: hjNew 0.7s var(--ease-back); }
@keyframes hjNew { from { scale: 2; } }
.hj-star.rise { transform: translateY(-160%) scale(1.6); }
.hj-star.free { transform: translateY(-420%) scale(0.4); opacity: 0; transition-duration: 1.2s; }
.hj-star.flying, .hj-paper { position: absolute; z-index: 3; pointer-events: none; }
.hj-star.flying { margin: -11px 0 0 -11px; }
.hj-paper { max-width: 240px; padding: 8px 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 700; color: var(--ink); background: #fffaf2; border-radius: 6px; transform: translate(-50%, -50%); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5); }
.hj-count { margin: 0; font-weight: 800; font-size: 13.5px; color: #ffd98a; }
.hj-form { display: grid; gap: 8px; padding: 16px; border-radius: 26px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.hj-form.nope { animation: wobble 0.45s ease; }
.hj-label { font-weight: 800; font-size: 14px; }
.hj-field { display: flex; flex-wrap: wrap; gap: 8px; }
.hj-field input { flex: 1 1 180px; min-width: 0; padding: 14px 16px; border: 0; border-radius: 16px; font: inherit; font-size: 16px; color: var(--ink); background: #fffaf6; outline: none; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow 0.2s; }
.hj-field input:focus-visible { box-shadow: inset 0 0 0 2px var(--pink-l), 0 0 0 4px rgba(255, 140, 192, 0.3); }
.hj-field .btn { flex: 1 0 auto; padding: 13px 18px; font-size: 15px; }
.hj-note { margin: 0; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.66); }
.hj-open { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 24px; background: rgba(20, 10, 30, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: hjFade 0.3s ease both; }
.hj-open[hidden] { display: none; }
@keyframes hjFade { from { opacity: 0; } }
.hj-card { position: relative; width: min(100%, 360px); padding: 34px 22px 18px; border-radius: 28px; text-align: center; color: var(--ink); background: #fffaf4; box-shadow: 0 0 0 5px var(--c), 0 0 60px -10px var(--c), 0 30px 60px -20px rgba(0, 0, 0, 0.6); animation: hjCard 0.55s var(--ease-back) both; }
@keyframes hjCard { from { transform: scale(0.2) rotate(-30deg); opacity: 0; } }
.hj-card-star { position: absolute; left: 50%; top: -22px; width: 44px; height: 44px; margin-left: -22px; background: var(--c); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); filter: drop-shadow(0 0 10px var(--c)); }
.hj-card p { margin: 0 0 8px; font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.hj-card small { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 700; color: var(--mute); }
.hj-card-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hj-card-btns .btn { padding: 11px 16px; font-size: 14px; }
