/* Build 286 — 📸 MDFAST Event Selfie (event.mdfast.in): its own look — deep violet, magenta and gold, Poppins / Baloo 2 */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url(/fonts/poppins-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(/fonts/poppins-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 400; font-display: swap; src: url(/fonts/baloo-2-devanagari-400-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Baloo 2"; font-weight: 700; font-display: swap; src: url(/fonts/baloo-2-devanagari-700-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Baloo 2"; font-weight: 700; font-display: swap; src: url(/fonts/baloo-2-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF; }
:root { --vi: #3b0764; --vi2: #6b21a8; --mg: #db2777; --gd: #fbbf24; --bg: #faf5ff; --ink: #1e1b2e; --mute: #6b6480; --line: #e9d5ff; --ev: #7c3aed; --ok: #16a34a; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { font-family: "Poppins", "Baloo 2", system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.45; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; }
.ev-wait { text-align: center; font-size: 46px; padding: 60px 0; }
.ev-page { max-width: 480px; margin: 0 auto; padding: 0 16px 40px; }
/* top bar */
.ev-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--vi); color: #fff; position: sticky; top: 0; z-index: 5; }
.ev-top .t { flex: 1; min-width: 0; font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-top .ib { background: rgba(255, 255, 255, .14); color: #fff; border-radius: 12px; min-width: 42px; height: 42px; padding: 0 10px; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ev-lang { display: flex; gap: 2px; background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 3px; }
.ev-lang button { background: none; color: #e9d5ff; border-radius: 9px; padding: 5px 8px; font-size: 13px; font-weight: 700; min-height: 34px; }
.ev-lang button.on { background: var(--gd); color: var(--vi); }
/* landing */
.ev-hero { background: radial-gradient(120% 90% at 85% 0%, #db2777 0%, transparent 55%), linear-gradient(160deg, #3b0764, #6b21a8 70%, #86198f); color: #fff; padding: 26px 20px 30px; border-radius: 0 0 28px 28px; text-align: center; }
.ev-hero h1 { margin: 6px 0 6px; font-size: 30px; line-height: 1.15; }
.ev-hero h1 b { color: var(--gd); }
.ev-hero p { margin: 0 auto; max-width: 340px; color: #f3e8ff; }
.ev-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 0; }
.ev-steps div { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 10px 4px; font-size: 13px; line-height: 1.25; }
.ev-steps i { display: block; font-style: normal; font-size: 26px; margin-bottom: 4px; }
.ev-h2 { font-size: 19px; margin: 22px 0 10px; }
.ev-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 6px 20px rgba(59, 7, 100, .06); }
.ev-list { display: flex; flex-direction: column; gap: 10px; }
.ev-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 2px solid var(--line); border-left: 8px solid var(--c, var(--ev)); border-radius: 16px; padding: 12px 14px; color: var(--ink); min-height: 70px; }
.ev-item img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: #f5f3ff; flex: none; }
.ev-item .n { font-weight: 700; font-size: 17px; line-height: 1.2; }
.ev-item .s { font-size: 13px; color: var(--mute); }
.ev-item .go { margin-left: auto; font-size: 22px; color: var(--c, var(--ev)); }
.ev-mute { color: var(--mute); }
.ev-small { font-size: 13px; }
.ev-org { margin-top: 26px; background: linear-gradient(135deg, #fff7ed, #fdf2f8); border: 1px solid #fbcfe8; border-radius: 18px; padding: 16px; }
.ev-foot { text-align: center; margin: 28px 0 0; font-size: 12px; color: var(--mute); }
.ev-foot a { color: var(--vi2); }
/* buttons */
.ev-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 16px; background: var(--ev); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; }
.ev-btn.full { width: 100%; }
.ev-btn.ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.ev-btn.wa { background: #16a34a; }
.ev-btn[disabled] { opacity: .5; }
/* the event's head */
.ev-head { background: linear-gradient(160deg, var(--ev), color-mix(in srgb, var(--ev) 60%, #000)); color: #fff; padding: 22px 18px 24px; border-radius: 0 0 26px 26px; text-align: center; }
.ev-head img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 18px; padding: 6px; }
.ev-head h1 { margin: 8px 0 2px; font-size: 25px; line-height: 1.2; }
.ev-head p { margin: 0; opacity: .9; font-size: 14px; }
/* register */
.ev-f { display: block; margin: 0 0 14px; font-weight: 700; }
.ev-f input[type=tel], .ev-f input[type=text] { display: block; width: 100%; margin-top: 6px; min-height: 56px; border: 2px solid var(--line); border-radius: 14px; padding: 0 14px; font-size: 20px; background: #fff; color: var(--ink); }
.ev-f input:focus { outline: none; border-color: var(--ev); }
.ev-f .ph { display: flex; align-items: stretch; gap: 8px; }
.ev-f .ph span { display: flex; align-items: center; margin-top: 6px; padding: 0 12px; border-radius: 14px; background: #f3e8ff; font-size: 18px; }
.ev-f .ph input { flex: 1; }
.ev-f small { display: block; font-weight: 400; color: var(--mute); margin-top: 4px; }
.ev-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 4px 0 18px; }
.ev-agree input { width: 24px; height: 24px; flex: none; accent-color: var(--ev); margin: 0; }
/* frames */
.ev-frames { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ev-fr { background: repeating-conic-gradient(#ede9fe 0 25%, #fff 0 50%) 0 0 / 18px 18px; border: 3px solid var(--line); border-radius: 16px; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ev-fr img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; display: block; }
.ev-fr span { background: #fff; padding: 8px; font-weight: 700; font-size: 14px; color: var(--ink); }
.ev-me { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 14px 0; font-size: 14px; color: var(--mute); }
.ev-me button { background: none; color: var(--vi2); text-decoration: underline; padding: 6px 0; }
/* the camera */
.ev-cam { position: fixed; inset: 0; background: #0b0614; color: #fff; display: flex; flex-direction: column; z-index: 20; }
.ev-cam .ev-top { background: transparent; position: static; }
.ev-view { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 10px; touch-action: pan-y; }
.ev-view canvas, .ev-view video.out, .ev-view img.out { max-width: 100%; max-height: 100%; border-radius: 14px; background: #000; display: block; }
.ev-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 120px; font-weight: 700; text-shadow: 0 6px 30px rgba(0, 0, 0, .6); pointer-events: none; }
.ev-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .35s; }
.ev-flash.on { opacity: .9; transition: none; }
.ev-recbar { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: #dc2626; border-radius: 99px; padding: 4px 12px; font-weight: 700; font-size: 14px; display: none; }
.ev-recbar.on { display: block; }
.ev-msg { position: absolute; inset: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; font-size: 16px; }
.ev-strip { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px 4px; scrollbar-width: none; }
.ev-strip::-webkit-scrollbar { display: none; }
.ev-strip button { flex: none; width: 58px; height: 74px; border-radius: 12px; padding: 0; background: linear-gradient(#c4b5fd, #f9a8d4); border: 3px solid transparent; overflow: hidden; }
.ev-strip button.on { border-color: var(--gd); }
.ev-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-modes { display: flex; justify-content: center; gap: 6px; padding: 6px 0 2px; }
.ev-modes button { background: none; color: #c4b5fd; font-weight: 700; padding: 6px 14px; border-radius: 99px; min-height: 36px; }
.ev-modes button.on { background: #fff; color: var(--vi); }
.ev-ctl { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 18px calc(14px + env(safe-area-inset-bottom)); gap: 10px; }
.ev-ctl .side { display: flex; justify-content: center; }
.ev-ctl .side button { background: rgba(255, 255, 255, .12); color: #fff; width: 54px; height: 54px; border-radius: 50%; font-size: 15px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.ev-ctl .side button small { font-size: 10px; font-weight: 400; opacity: .85; }
.ev-shot { width: 82px; height: 82px; border-radius: 50%; background: #fff; border: 6px solid rgba(255, 255, 255, .35); background-clip: padding-box; position: relative; }
.ev-shot.vid { background: #dc2626; background-clip: padding-box; }
.ev-shot.rec::after { content: ""; position: absolute; inset: 22px; border-radius: 6px; background: #fff; }
.ev-shot svg { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); transform: rotate(-90deg); pointer-events: none; }
/* after the shot */
.ev-res { padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.ev-share { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ev-share button { background: #fff; color: var(--ink); border-radius: 14px; min-height: 70px; padding: 8px 2px 6px; font-size: 12px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; line-height: 1.15; } /* the icons on one line, also when a name takes 2 lines */
.ev-share button i { flex: none; font-style: normal; width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; }
.ev-tip { font-size: 13px; color: #e9d5ff; text-align: center; min-height: 18px; }
.ev-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ev-row2 .ev-btn { min-height: 48px; font-size: 15px; }
.ev-cam .ev-btn.ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
/* my selfies */
.ev-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ev-gal button { padding: 0; border-radius: 12px; overflow: hidden; background: #ede9fe; position: relative; aspect-ratio: 9 / 14; }
.ev-gal img, .ev-gal video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-gal b { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .6); color: #fff; border-radius: 99px; font-size: 12px; padding: 1px 7px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 6px; width: min(92vw, 420px); pointer-events: none; }
#toast div { background: #1e1b2e; color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
#toast div.err { background: #b91c1c; }
/* build 287: 🌱 the Grow advert — "Grow with us · your social media branding partner" (Grow's own green and gold) */
.ev-grow { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 16px; border-radius: 20px; text-decoration: none; color: #fff; background: radial-gradient(120% 120% at 100% 0%, #22c55e 0%, transparent 55%), linear-gradient(150deg, #166534, #14532d); box-shadow: 0 10px 26px rgba(20, 83, 45, .25); }
.ev-grow img { width: 76px; height: 76px; border-radius: 18px; flex: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.ev-grow .gx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ev-grow b { font-size: 20px; line-height: 1.2; color: #fde68a; }
.ev-grow i { font-style: normal; font-weight: 700; font-size: 14px; color: #dcfce7; }
.ev-grow .gp { font-size: 13.5px; line-height: 1.4; color: #f0fdf4; }
.ev-grow .gc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.ev-grow .gc span { background: rgba(255, 255, 255, .14); border-radius: 99px; padding: 3px 10px; font-size: 12.5px; }
.ev-grow .gb { align-self: flex-start; margin-top: 6px; background: #fbbf24; color: #14532d; font-weight: 700; border-radius: 12px; padding: 9px 16px; font-size: 15px; }
