/* 📸 lelz Fotobox – iPad */
html, body.booth { height: 100%; margin: 0; overflow: hidden; background: #000; color: #fff; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
:root { --accent: #ff375f; }
.cam { position: fixed; inset: 0; display: grid; place-items: center; background: #000; }
.cam video, .cam img { width: 100%; height: 100%; object-fit: cover; }
.cam.mirror video { transform: scaleX(-1); }
.nocam-msg { text-align: center; font-size: 22px; color: #a1a1a6; } .nocam-msg small { font-size: 15px; }
.ui { position: fixed; inset: 0; z-index: 2; }
.flash { position: fixed; inset: 0; z-index: 9; background: #fff; opacity: 0; pointer-events: none; } .flash.go { animation: flash .6s ease-out; } @keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }

/* Start */
.idle { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding: calc(24px + env(safe-area-inset-top)) 32px calc(28px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(0,0,0,.55), transparent 28%, transparent 62%, rgba(0,0,0,.7)); cursor: pointer; }
.idle-top { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: -.03em; text-shadow: 0 2px 16px rgba(0,0,0,.5); } .brand img { height: 46px; }
.gear { width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 24px; opacity: .55; }
.idle-mid { display: grid; place-items: center; }
.tap { display: grid; justify-items: center; gap: 8px; padding: 34px 54px; border-radius: 40px; background: rgba(0,0,0,.38); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 70%, transparent), 0 20px 60px rgba(0,0,0,.4); animation: breathe 2.6s ease-in-out infinite; }
.tap span { font-size: 84px; line-height: 1; } .tap b { font-size: 44px; letter-spacing: -.03em; } .tap small { font-size: 19px; color: #d1d1d6; }
@keyframes breathe { 50% { transform: scale(1.04); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 80%, transparent), 0 20px 70px color-mix(in srgb, var(--accent) 40%, transparent); } }
.modes { display: flex; justify-content: center; gap: 12px; }
.mode { padding: 14px 26px; border: 0; border-radius: 99px; background: rgba(255,255,255,.14); color: #fff; font: 700 20px/1 var(--font, -apple-system, sans-serif); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mode.on { background: #fff; color: #000; }

/* Countdown */
#ov { position: fixed; inset: 0; z-index: 5; } #ov[hidden] { display: none; }
.cd { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: radial-gradient(circle, transparent 40%, rgba(0,0,0,.45)); pointer-events: none; }
.cd-n { font-size: 46vh; font-weight: 900; line-height: .9; color: #fff; text-shadow: 0 0 60px var(--accent), 0 10px 40px rgba(0,0,0,.5); animation: cdPop 1s ease-out both; }
@keyframes cdPop { 0% { transform: scale(1.8); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 85% { opacity: 1; } 100% { transform: scale(.75); opacity: 0; } }
.cd small { font-size: 28px; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.cd.smile { font-size: 30vh; animation: cdPop 1s ease-out both; }
.cd.between b { font-size: 90px; } .cd.work { background: rgba(0,0,0,.7); }
.spin { width: 70px; height: 70px; border-radius: 50%; border: 7px solid rgba(255,255,255,.2); border-top-color: var(--accent); animation: spin .9s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }

/* Vorschau & Teilen */
.review { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: calc(28px + env(safe-area-inset-top)) 32px calc(28px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.82); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); animation: fadeIn .4s both; }
@keyframes fadeIn { from { opacity: 0; } }
.rv-img { display: grid; place-items: center; min-height: 0; } .rv-img img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: dropIn .7s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes dropIn { from { transform: translateY(-40px) rotate(-3deg) scale(.9); opacity: 0; } }
.rv-side { display: flex; flex-direction: column; justify-content: center; gap: 14px; } .rv-side h2 { margin: 0 0 6px; font-size: 30px; letter-spacing: -.02em; }
.btn-big { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 12px; padding: 18px 20px; border: 0; border-radius: 24px; background: #fff; color: #000; font: 800 26px/1.1 -apple-system, sans-serif; text-align: left; transition: transform .15s; }
.btn-big span { grid-row: 1 / 3; font-size: 40px; text-align: center; } .btn-big small { font-size: 15px; font-weight: 500; color: #6e6e73; }
.btn-big.share { background: var(--accent); color: #fff; } .btn-big.share small { color: rgba(255,255,255,.85); }
.btn-big:active { transform: scale(.97); } .btn-big:disabled { opacity: .45; }
.rv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.btn-sm { padding: 16px; border: 0; border-radius: 18px; background: rgba(255,255,255,.14); color: #fff; font: 700 19px/1 -apple-system, sans-serif; } .btn-sm.primary { background: #fff; color: #000; }
.trash { align-self: center; margin-top: 6px; border: 0; background: none; color: #8e8e93; font-size: 15px; }
.qr-ov, .set-ov { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fadeIn .25s both; }
.qr-card, .set-card { width: min(460px, 90vw); padding: 30px; border-radius: 32px; background: #1c1c1e; text-align: center; display: grid; gap: 12px; animation: dropIn .5s cubic-bezier(.2,1.4,.4,1) both; }
.qr-box { width: 300px; height: 300px; margin: 0 auto; padding: 16px; background: #fff; border-radius: 24px; } .qr-box svg { width: 100%; height: 100%; display: block; }
.qr-card h2, .set-card h2 { margin: 6px 0 0; } .qr-card p { margin: 0; color: #a1a1a6; }
.set-card { text-align: left; width: min(560px, 92vw); } .set-card h3 { margin: 10px 0 0; font-size: 15px; color: #a1a1a6; text-transform: uppercase; letter-spacing: .08em; }
.set-card label { display: grid; gap: 6px; font-size: 14px; color: #a1a1a6; font-weight: 600; }
.set-card input, .set-card select { padding: 12px 14px; border: 0; border-radius: 12px; background: #2c2c2e; color: #fff; font: 500 17px -apple-system, sans-serif; } .set-card input[type=color] { padding: 4px; height: 46px; }
.set-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.center-card { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 30px; } .big-emoji { font-size: 80px; } .center-card p { max-width: 460px; color: #a1a1a6; font-size: 18px; }
@media (orientation: portrait) { .review { grid-template-columns: 1fr; grid-template-rows: 1fr auto; } .rv-side { justify-content: flex-start; } }
.review { grid-template-rows: minmax(0, 1fr); } .rv-img { height: 100%; } .rv-img img { max-height: calc(100vh - 70px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); object-fit: contain; }
