/* MyPhoto (website) */
.mp-page { padding-bottom: 100px; }
.mp-hero .kicker i { color: var(--pink); margin-right: 4px; }
.mp-h2 { font-size: 22px; margin: 0 0 16px; }
.mp-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.mp-album { position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--border); color: var(--ink); transition: transform .25s, box-shadow .25s; }
.mp-album:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mp-album-cover { aspect-ratio: 16 / 10; background: var(--grad-soft) center / cover no-repeat; }
.mp-album-body { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 18px; }
.mp-album-body strong { font-size: 17px; font-weight: 600; }
.mp-album-body small { color: var(--muted); }
.mp-album > i { position: absolute; right: 16px; bottom: 20px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--grad); }

.mp-selfie-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.mp-card { padding: 28px; }
.mp-card h2 { font-size: 26px; margin: 4px 0 8px; }
.mp-step { display: none; }
.mp-step.is-on { display: block; animation: fadeUp .35s ease; }
.mp-consent { margin: 18px 0; padding: 14px 16px; border-radius: 14px; background: var(--tint-1); font-size: 14.5px; }
.mp-start-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.mp-upload { cursor: pointer; }
.mp-upload.is-disabled { opacity: .5; pointer-events: none; }
.mp-small { margin-top: 16px; font-size: 14px; color: var(--muted); }
.mp-cam { position: relative; width: 100%; max-width: 560px; margin: 8px auto 0; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: #0b1020; }
.mp-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-cam video.is-mirror { transform: scaleX(-1); }
.mp-oval { position: absolute; left: 50%; top: 47%; width: 46%; aspect-ratio: 3 / 4; transform: translate(-50%, -50%); border-radius: 50%; border: 3px dashed rgba(255,255,255,.85); box-shadow: 0 0 0 999px rgba(5, 10, 30, .45); pointer-events: none; }
.mp-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .2s; }
.mp-hint.is-ok { background: rgba(5, 150, 105, .92); }
.mp-cam-btns { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; max-width: 560px; margin: 16px auto 0; }
.mp-cam-btns > :first-child { justify-self: start; }
.mp-cam-btns > :last-child { justify-self: end; }
.mp-shutter { width: 74px; height: 74px; border-radius: 50%; border: 4px solid #fff; background: var(--grad); box-shadow: 0 0 0 3px var(--blue), 0 12px 28px -10px rgba(236,72,153,.7); cursor: pointer; transition: transform .15s, opacity .2s; }
.mp-shutter:disabled { opacity: .35; cursor: not-allowed; box-shadow: 0 0 0 3px #cbd5e1; background: #94a3b8; }
.mp-shutter:not(:disabled):active { transform: scale(.94); }
.mp-busy { position: relative; width: 200px; height: 200px; margin: 10px auto 18px; border-radius: 50%; overflow: hidden; background: var(--tint-1); box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--blue); }
.mp-busy img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.mp-scanline { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(236,72,153,.45), transparent); animation: mpScan 1.4s ease-in-out infinite alternate; }
@keyframes mpScan { from { top: -30%; } to { top: 100%; } }
.mp-step[data-step=busy] { text-align: center; }
.mp-error { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff1f5; color: #be123c; font-size: 14.5px; }
.mp-how { padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--border); }
.mp-how h3 { font-size: 17px; margin-bottom: 14px; }
.mp-how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mp-how li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text); }
.mp-how li i { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--grad); }

.mp-results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.mp-results-head h2 { margin: 4px 0 0; }
.mp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mp-gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-gallery::after { content: ""; flex-grow: 999; }
.mp-tile { --r: 1.5; flex: calc(var(--r) * 1) 1 calc(var(--r) * 190px); aspect-ratio: var(--r); max-height: 320px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--tint-1); cursor: zoom-in; animation: fadeUp .45s ease both; animation-delay: var(--d); }
.mp-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.mp-tile:hover img { transform: scale(1.04); }
.mp-tile { position: relative; }
.mp-bib { margin-top: 18px; }
.mp-bib label { display: block; margin-bottom: 8px; font-size: .95rem; }
.mp-or { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--muted, #667); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.mp-or::before, .mp-or::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .25; }
.mp-bib-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mp-bib-row .input { flex: 1 1 140px; min-width: 0; }
.mp-bib-row .btn { flex: 0 0 auto; }
.mp-restore { margin: 0 0 14px; font-size: .92rem; color: var(--muted, #667); }
.mp-restore[hidden] { display: none; }
.mp-link-btn { border: 0; background: none; padding: 0; color: var(--pink, #e6007e); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.mp-score { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font: 600 12px/1.4 system-ui, sans-serif; }
.mp-none { padding: 26px; text-align: center; margin-bottom: 18px; }
.mp-none > i { font-size: 38px; color: var(--muted); }
.mp-none ul { display: inline-block; text-align: left; color: var(--muted); }
.mp-keep { display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; align-items: center; margin-top: 26px; padding: 20px 22px; }
.mp-keep strong { display: block; color: var(--ink); }
.mp-keep strong i { color: var(--blue); margin-right: 4px; }
.mp-keep span { font-size: 14px; color: var(--muted); }
.mp-copy { display: flex; gap: 8px; min-width: 0; }
.mp-copy input { width: 320px; max-width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-strong); font: 13px var(--font); color: var(--ink); background: #fff; }
.mp-keep form { grid-column: 1 / -1; }
.mp-forget { border: 0; background: none; padding: 0; color: #be123c; font: 500 13.5px var(--font); cursor: pointer; }
.mp-pages { margin-top: 20px; }

.mp-viewer { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(4, 7, 20, .94); }
.mp-viewer[hidden] { display: none; }
.mp-viewer img { max-width: calc(100vw - 120px); max-height: calc(100vh - 140px); object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.mp-v-close, .mp-v-nav { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 18px; cursor: pointer; }
.mp-v-close:hover, .mp-v-nav:hover { background: rgba(255,255,255,.28); }
.mp-v-close { top: 16px; right: 16px; }
.mp-v-nav { top: 50%; transform: translateY(-50%); }
.mp-v-nav.prev { left: 16px; } .mp-v-nav.next { right: 16px; }
.mp-v-bar { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; color: #fff; }
.mp-v-bar span { font-variant-numeric: tabular-nums; opacity: .8; }
.mp-v-bar { flex-wrap: wrap; justify-content: center; width: max-content; max-width: calc(100vw - 24px); }
.mp-v-bar [hidden] { display: none; }
.mp-v-bar .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
body.mp-lock { overflow: hidden; }

@media (max-width: 900px) {
  .mp-selfie-layout { grid-template-columns: 1fr; }
  .mp-keep { grid-template-columns: 1fr; }
  .mp-copy input { width: 100%; }
}
@media (max-width: 640px) {
  .mp-card { padding: 20px 16px; }
  .mp-cam { aspect-ratio: 3 / 4; border-radius: 18px; }
  .mp-oval { width: 62%; }
  .mp-tile { flex-basis: calc(var(--r) * 120px); max-height: 220px; }
  .mp-gallery { gap: 6px; }
  .mp-viewer img { max-width: 100vw; max-height: calc(100vh - 150px); border-radius: 0; }
  .mp-v-nav { display: none; }
  .mp-start-btns .btn { flex: 1 1 100%; justify-content: center; }
}
