* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; } :root { --bg: #f0f2f6; --phone-bg: #ffffff; --surface: #ffffff; --surface-2: #f4f5f9; --line: #e4e6ee; --text: #423c3c; --muted: #8a8484; --accent: #d50000; --accent-2: #20b2aa; --accent-soft: rgba(213,0,0,.08); --cyan: #20b2aa; --amber: #f59e0b; --green: #059669; --red: #d50000; } html, body, #root { height: 100%; } body { background: radial-gradient(1100px 700px at 75% -10%, rgba(213,0,0,.06) 0%, var(--bg) 55%); font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); } /* ---------- App shell (phone frame on desktop, full-bleed on mobile) ---------- */ .app { position: relative; width: 100%; height: 100dvh; max-width: 480px; margin: 0 auto; background: var(--phone-bg); overflow: hidden; display: flex; flex-direction: column; } @media (min-width: 520px) { .app { height: min(920px, 96dvh); border-radius: 34px; border: 10px solid #1f1b1b; box-shadow: 0 0 0 2px #3a3333, 0 40px 90px rgba(66,60,60,.28); margin-top: 2vh; } } .screen { flex: 1; overflow-y: auto; padding: 22px 20px 100px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: none; } .screen::-webkit-scrollbar { display: none; } .screen.no-tab { padding-bottom: 28px; } /* ---------- Primitives ---------- */ .card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 8px 24px rgba(66,60,60,.07); } .muted { color: var(--muted); } .small { font-size: 12.5px; } .h1 { font-size: 23px; font-weight: 800; letter-spacing: -.5px; } .h2 { font-size: 17px; font-weight: 700; } .row { display: flex; align-items: center; gap: 10px; } .row.between { justify-content: space-between; } .grow { flex: 1; min-width: 0; } .btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .08s ease, opacity .15s; font-family: inherit; } .btn:active { transform: scale(.98); } .btn.primary { background: var(--accent); border: none; color: #fff; box-shadow: 0 8px 20px rgba(213,0,0,.25); } .btn.ghost { background: transparent; } .btn.danger { background: rgba(213,0,0,.08); border-color: rgba(213,0,0,.35); color: var(--red); } .btn.small { width: auto; padding: 9px 14px; font-size: 13px; border-radius: 10px; } .btn:disabled { opacity: .45; cursor: not-allowed; } .pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); } .pill.amber { background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.4); color: #b45309; } .pill.green { background: rgba(5,150,105,.12); border-color: rgba(5,150,105,.35); color: var(--green); } .pill.violet { background: var(--accent-soft); border-color: rgba(213,0,0,.35); color: var(--accent); } .pill.cyan { background: rgba(32,178,170,.13); border-color: rgba(32,178,170,.4); color: #0f766e; } .pill.admin { background: var(--accent-soft); border-color: rgba(213,0,0,.35); color: var(--accent); } /* registration types */ .pill.reg-attendee { background: rgba(148,163,184,.14); border-color: rgba(148,163,184,.4); color: #64748b; } .pill.reg-speaker { background: rgba(124,58,237,.12); border-color: rgba(124,58,237,.4); color: #6d28d9; } .pill.reg-staff { background: rgba(32,178,170,.13); border-color: rgba(32,178,170,.4); color: #0f766e; } .pill.reg-sponsor { background: rgba(234,88,12,.13); border-color: rgba(234,88,12,.4); color: #c2410c; } /* slot types */ .pill.slot-type-session { background: rgba(14,165,233,.12); border-color: rgba(14,165,233,.4); color: #0369a1; } .pill.slot-type-lunch_break { background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.4); color: #b45309; } .pill.slot-type-coffee_break { background: rgba(120,113,108,.14); border-color: rgba(120,113,108,.4); color: #57534e; } .pill.slot-type-keynote { background: var(--accent-soft); border-color: rgba(213,0,0,.35); color: var(--accent); } .pill.slot-type-close_up { background: rgba(5,150,105,.12); border-color: rgba(5,150,105,.35); color: var(--green); } .pill.speaker-tag { background: rgba(124,58,237,.12); border-color: rgba(124,58,237,.4); color: #6d28d9; padding: 2px 8px; font-size: 11px; } /* pending-connection red dot on the Connect tab */ .tab .ico { position: relative; display: inline-flex; } .dot { position: absolute; top: -3px; right: -6px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(213,0,0,.3); } /* speaker material upload notice (non-dismissible) */ .material-notice { background: rgba(32,178,170,.08); border: 1px solid rgba(32,178,170,.4); border-left: 3px solid var(--accent-2); border-radius: 12px; padding: 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; } .material-notice .mn-title { font-weight: 800; font-size: 14px; } .avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; color: #fff; flex-shrink: 0; } .input { width: 100%; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 15px; outline: none; font-family: inherit; } .input:focus { border-color: var(--accent); } textarea.input { resize: none; min-height: 96px; } .divider { height: 1px; background: var(--line); margin: 4px 0; } /* ---------- Tab bar ---------- */ .tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-around; padding: 10px 8px 0; } .tab { background: none; border: none; color: var(--muted); font-size: 10.5px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; width: 64px; padding-top: 4px; font-family: inherit; } .tab .ico { font-size: 21px; line-height: 1; filter: grayscale(.4); } .tab.active { color: var(--accent); } .tab.active .ico { filter: none; } .tab-scan { position: relative; top: -18px; } .tab-scan .scan-btn { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; background: linear-gradient(135deg, var(--accent), #ff5a4e); box-shadow: 0 8px 20px rgba(213,0,0,.4); border: 4px solid var(--phone-bg); } .tab-scan.active { color: var(--accent); } /* ---------- Splash ---------- */ .splash { align-items: center; justify-content: center; text-align: center; gap: 18px; } .logo { width: 96px; height: 96px; border-radius: 26px; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 900; background: linear-gradient(135deg, var(--accent), #ff5a4e); box-shadow: 0 16px 40px rgba(213,0,0,.35); color: #fff; } .splash-title { font-size: 30px; font-weight: 900; letter-spacing: -.5px; } .splash-tag { color: var(--muted); font-size: 15px; } .tap-hint { margin-top: 26px; color: var(--muted); font-size: 13px; animation: pulse 1.6s infinite; } @keyframes pulse { 0%,100% { opacity: .45 } 50% { opacity: 1 } } /* ---------- Camera / scan ---------- */ .viewfinder { position: relative; height: 300px; border-radius: 20px; overflow: hidden; background: radial-gradient(220px 160px at 50% 45%, rgba(213,0,0,.14), transparent 70%), linear-gradient(160deg,#26211f 0%, #171312 100%); border: 1px solid var(--line); } .vf-corner { position: absolute; width: 34px; height: 34px; border: 3px solid #ff6b5e; } .vf-corner.tl { top: 18px; left: 18px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; } .vf-corner.tr { top: 18px; right: 18px; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; } .vf-corner.bl { bottom: 18px; left: 18px; border-right: none; border-top: none; border-radius: 0 0 0 8px; } .vf-corner.br { bottom: 18px; right: 18px; border-left: none; border-top: none; border-radius: 0 0 8px 0; } .vf-line { position: absolute; left: 26px; right: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: scan 2.2s ease-in-out infinite; } @keyframes scan { 0%,100% { top: 34px; } 50% { top: 258px; } } .vf-qr { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 120px; height: 120px; opacity: .5; } #qr-reader, #qr-reader video { width: 100% !important; height: 300px !important; object-fit: cover; border-radius: 20px; } /* ---------- Home ---------- */ .points-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.4); color: #b45309; font-weight: 800; font-size: 14px; cursor: pointer; flex-shrink: 0; white-space: nowrap; } .now-card { background: linear-gradient(135deg, rgba(213,0,0,.1), rgba(32,178,170,.08)); border: 1px solid rgba(213,0,0,.35); } .qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .qa { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; cursor: pointer; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(66,60,60,.06); transition: transform .08s; } .qa:active { transform: scale(.97); } .qa .ico { font-size: 22px; } .qa .lbl { font-weight: 700; font-size: 14px; } .pick-chip { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); color: var(--text); cursor: pointer; font-size: 13.5px; font-family: inherit; } .pick-chip + .pick-chip { margin-top: 8px; } .pick-chip .t { color: var(--muted); font-weight: 800; font-size: 12px; min-width: 74px; } /* ---------- Agenda ---------- */ .slot-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 8px 24px rgba(66,60,60,.07); } .slot-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); } .slot-head .name { font-weight: 800; font-size: 14.5px; } .slot-head .time { color: var(--muted); font-size: 12.5px; font-weight: 600; } .sess { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 16px; background: none; border: none; border-bottom: 1px solid var(--line); color: var(--text); cursor: pointer; font-family: inherit; } .sess:last-child { border-bottom: none; } .sess.picked { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); } .sess .title { font-weight: 700; font-size: 14px; } .sess .meta { color: var(--muted); font-size: 12px; margin-top: 2px; } .sess .check { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 13px; color: transparent; } .sess.picked .check { background: var(--accent); border-color: var(--accent); color: #fff; } /* ---------- Modal (bottom sheet) ---------- */ .backdrop { position: absolute; inset: 0; background: rgba(5,5,10,.66); backdrop-filter: blur(3px); z-index: 70; display: flex; align-items: flex-end; } .sheet { width: 100%; background: var(--surface); border-radius: 26px 26px 0 0; border-top: 1px solid var(--line); padding: 14px 20px 26px; max-height: 82%; overflow-y: auto; animation: up .22s ease; } @keyframes up { from { transform: translateY(40px); opacity: .4 } to { transform: none; opacity: 1 } } .sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; } .sheet h3 { font-size: 19px; font-weight: 800; letter-spacing: -.3px; } .sheet .sub { color: var(--muted); font-size: 13px; margin-top: 3px; } /* ---------- Connections ---------- */ .seg { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 4px; } .seg button { flex: 1; padding: 10px; border: none; border-radius: 10px; background: none; color: var(--muted); font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: inherit; } .seg button.active { background: var(--accent-soft); color: var(--accent); } .conn { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(66,60,60,.06); } .conn + .conn { margin-top: 9px; } .conn .name { font-weight: 700; font-size: 14.5px; } .conn .meta { color: var(--muted); font-size: 12px; margin-top: 2px; } .empty { text-align: center; padding: 38px 20px; color: var(--muted); font-size: 14px; border: 1.5px dashed var(--line); border-radius: 16px; } .empty .big { font-size: 34px; margin-bottom: 10px; } /* ---------- Feedback ---------- */ .stars { display: flex; gap: 10px; justify-content: center; padding: 6px 0 2px; } .star { font-size: 40px; cursor: pointer; color: #d5d8e2; transition: transform .1s, color .1s; user-select: none; background: none; border: none; } .star.on { color: var(--amber); text-shadow: 0 0 18px rgba(245,158,11,.4); } .star:active { transform: scale(1.2); } .success-box { text-align: center; padding: 30px 16px; } .success-box .emoji { font-size: 56px; } .success-box h3 { font-size: 22px; margin-top: 12px; } .success-box p { color: var(--muted); margin-top: 6px; font-size: 14px; } /* ---------- Leaderboard ---------- */ .podium { display: flex; align-items: flex-end; justify-content: center; gap: 12px; padding: 18px 6px 6px; } .pod { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 96px; } .pod .bar { width: 100%; border-radius: 12px 12px 0 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; font-weight: 900; font-size: 15px; } .pod .bar.b1 { height: 86px; background: linear-gradient(180deg, rgba(245,158,11,.32), rgba(245,158,11,.08)); border: 1px solid rgba(245,158,11,.5); border-bottom: none; color: #b45309; } .pod .bar.b2 { height: 62px; background: linear-gradient(180deg, rgba(148,163,184,.32), rgba(148,163,184,.08)); border: 1px solid rgba(148,163,184,.5); border-bottom: none; color: #64748b; } .pod .bar.b3 { height: 48px; background: linear-gradient(180deg, rgba(217,119,6,.3), rgba(217,119,6,.1)); border: 1px solid rgba(217,119,6,.5); border-bottom: none; color: #c2620a; } .pod .pname { font-size: 12px; font-weight: 700; } .pod .ppoints { font-size: 11.5px; color: var(--muted); font-weight: 700; } .lb-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(66,60,60,.06); } .lb-row + .lb-row { margin-top: 8px; } .lb-row.me { border-color: rgba(213,0,0,.5); background: var(--accent-soft); } .lb-row .rank { width: 26px; font-weight: 900; color: var(--muted); font-size: 14px; text-align: center; } .lb-row .pts { margin-left: auto; font-weight: 800; color: #b45309; font-size: 14px; } /* ---------- Profile ---------- */ .qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px; } .qr-frame { background: #fff; border-radius: 12px; padding: 10px; border: 1px solid var(--line); } .break-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .break-row:last-child { border-bottom: none; } .break-row .v { font-weight: 800; color: var(--amber); } /* ---------- Toast ---------- */ .toast { position: absolute; left: 16px; right: 16px; bottom: 104px; z-index: 90; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; font-size: 13.5px; font-weight: 600; text-align: center; box-shadow: 0 12px 30px rgba(66,60,60,.22); opacity: 0; transform: translateY(12px); transition: all .25s ease; pointer-events: none; } .toast.show { opacity: 1; transform: none; } .toast.ok { border-color: rgba(5,150,105,.5); } .toast.err { border-color: rgba(213,0,0,.55); } /* ---------- Misc ---------- */ .spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .center { display: flex; align-items: center; justify-content: center; } .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }