:root { color-scheme: dark; font-family: "Titillium Web", Inter, ui-sans-serif, system-ui, sans-serif; color: #EDEDEB; background: #1B1B1B; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #1B1B1B; }
a { color: inherit; }
.shell { max-width: 1080px; margin: 0 auto; padding: 28px 20px 60px; }
.top { background: #1B1B1B; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.top .shell { display: flex; justify-content: center; padding-top: 24px; padding-bottom: 24px; }
.brand { display: inline-flex; justify-content: center; align-items: center; width: min(390px, 84vw); padding: 16px 26px; background: #EDEDEB; border: 1px solid rgba(255, 77, 26, .72); border-radius: 18px; box-shadow: 0 12px 34px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(0, 0, 0, .05); text-decoration: none; }
.brand-logo { width: 100%; height: auto; max-height: 88px; display: block; }
.hero { padding: 70px 0 55px; background: radial-gradient(circle at 73% 12%, rgba(255, 77, 26, .30), transparent 28%), linear-gradient(140deg, #242424, #1B1B1B 68%); color: #EDEDEB; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.hero h1 { max-width: 800px; font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -.055em; line-height: .98; margin: 24px 0 20px; }
.hero p { color: #ABABAB; font-size: 1.15rem; max-width: 640px; line-height: 1.55; }
.button { border: 1px solid #FF4D1A; border-radius: 10px; background: #FF4D1A; color: #1B1B1B; padding: 13px 18px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-block; transition: transform .15s ease, background .15s ease; }
.button:hover { background: #ff6c42; transform: translateY(-1px); }
.button.secondary { border-color: rgba(255, 255, 255, .15); background: #242424; color: #EDEDEB; }
.button.secondary:hover { background: #303030; }
.card, form { background: #242424; border: 1px solid rgba(255, 255, 255, .09); border-radius: 18px; padding: 24px; box-shadow: 0 14px 42px rgba(0, 0, 0, .2); }
.setup { max-width: 740px; margin: -14px auto 0; }
.setup h1, .live-title { margin-top: 0; letter-spacing: -.035em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 7px; font-size: .9rem; font-weight: 700; }
input { width: 100%; font: inherit; border: 1px solid rgba(255, 255, 255, .14); border-radius: 9px; padding: 11px 12px; color: #EDEDEB; background: #1B1B1B; }
input:focus { outline: 2px solid rgba(255, 77, 26, .65); outline-offset: 1px; border-color: #FF4D1A; }
.checks { display: grid; gap: 10px; margin: 18px 0; }
.scan-box { display: grid; gap: 9px; padding: 14px; border: 1px dashed rgba(255, 77, 26, .65); border-radius: 11px; background: rgba(255, 77, 26, .07); }
.scan-box .button { justify-self: start; }
.selfie-box { display: grid; justify-items: start; gap: 9px; padding: 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 11px; background: rgba(255, 255, 255, .035); }
.selfie-picker { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid #FF4D1A; border-radius: 9px; background: #FF4D1A; color: #1B1B1B; font-weight: 800; cursor: pointer; }
.selfie-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.selfie-preview { width: 116px; height: 116px; object-fit: cover; border: 3px solid #1B1B1B; border-radius: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .32); }
.button:disabled { cursor: wait; opacity: .72; transform: none; }
.scan-loading { display: flex; align-items: center; gap: 10px; color: #EDEDEB; }
.scan-visual { position: relative; width: 54px; height: 38px; overflow: hidden; border: 1px solid rgba(237, 237, 235, .45); border-radius: 6px; background: linear-gradient(135deg, rgba(255, 77, 26, .20), rgba(255, 255, 255, .04)); }
.scan-visual::before { content: ""; position: absolute; inset: 8px 10px; border-top: 2px solid rgba(237, 237, 235, .52); border-bottom: 2px solid rgba(237, 237, 235, .28); }
.scan-visual::after { content: ""; position: absolute; left: 5px; right: 5px; top: 6px; height: 2px; background: #FF4D1A; box-shadow: 0 0 10px rgba(255, 77, 26, .85); animation: scan-line .95s ease-in-out infinite; }
.scan-dots::after { content: "•••"; display: inline-block; margin-left: 3px; letter-spacing: 2px; animation: scan-dots 1s ease-in-out infinite; }
@keyframes scan-line { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(24px); opacity: 1; } }
@keyframes scan-dots { 0%, 100% { opacity: .25; transform: translateY(1px); } 50% { opacity: 1; transform: translateY(0); } }
.checks label { display: flex; align-items: start; gap: 9px; font-weight: 500; line-height: 1.4; }
.checks input { width: auto; margin-top: 3px; accent-color: #FF4D1A; }
.hint, .status { color: #ABABAB; font-size: .9rem; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .scan-visual::after, .scan-dots::after, .board-infinite { animation: none; } }
.success { border-left: 4px solid #FF4D1A; padding-left: 16px; }
.board-viewport { overflow: hidden; }
.board { display: grid; gap: 12px; }
.board-infinite { width: max-content; grid-template-rows: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-auto-columns: var(--board-column-width); animation: board-infinite-scroll var(--board-scroll-seconds) linear infinite; will-change: transform; }
@keyframes board-infinite-scroll { to { transform: translateX(calc(-1 * var(--board-scroll-distance))); } }
.business-card { --card-accent: #E95420; min-height: 226px; padding: 18px; border-radius: 15px; background: linear-gradient(145deg, #2c2c2c, #202020); border: 1px solid var(--card-accent); box-shadow: inset 0 3px 0 var(--card-accent); display: flex; flex-direction: column; gap: 7px; }
.business-card.card-tone-0 { --card-accent: #E95420; }
.business-card.card-tone-1 { --card-accent: #B8860B; }
.business-card.card-tone-2 { --card-accent: #177E89; }
.business-card.card-tone-3 { --card-accent: #7651A6; }
.business-card.card-tone-4 { --card-accent: #2E8B57; }
.business-card.featured { --card-accent: #FF4D1A; border-color: #FF4D1A; box-shadow: inset 0 0 0 1px rgba(255, 77, 26, .22), inset 0 3px 0 #FF4D1A; }
.identity { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 96px; }
.business-card h2 { margin: 0; color: #EDEDEB; font-size: 1.8rem; line-height: .9; letter-spacing: -.045em; }
.business-card p { margin: 0; color: #ABABAB; overflow-wrap: anywhere; }
.business-card .company { margin-top: 5px; color: #FF8A5D; font-size: .78rem; font-weight: 800; letter-spacing: .08em; line-height: 1.15; text-transform: uppercase; }
.business-card a { color: #EDEDEB; }
.selfie, .avatar-placeholder { width: 96px; height: 96px; object-fit: cover; border-radius: 14px; border: 3px solid var(--card-accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .32); }
.avatar-placeholder { display: grid; place-items: center; background: var(--card-accent); color: #EDEDEB; font-size: 1.65rem; font-weight: 800; }
.business-card .special { margin-top: auto; color: #ff8a6b; font-weight: 750; }
.eyebrow { color: #FF8A5D; text-transform: uppercase; letter-spacing: .1em; font-size: .73rem; font-weight: 800; }
.powered { text-align: center; margin: 28px 0 0; color: #ABABAB; font-size: .85rem; }
.sass-note { margin: 30px auto 0; max-width: 740px; text-align: center; color: #ABABAB; line-height: 1.5; }
.sass-note a { color: #FF8A5D; font-weight: 750; }
.live-top { height: 20vh; min-height: 132px; max-height: 210px; display: grid; align-items: stretch; }
.live-topbar { width: 100%; margin: 0; padding: 16px 24px; display: grid; grid-template-columns: minmax(190px, 270px) minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.live-brand { width: 100%; max-width: 270px; padding: 11px 17px; border-radius: 13px; }
.live-brand .brand-logo { max-height: 58px; }
.live-event-title { min-width: 0; }
.live-event-title h1 { margin: 5px 0 0; font-size: clamp(1.65rem, 3.4vw, 3.25rem); line-height: .95; letter-spacing: -.045em; overflow-wrap: anywhere; }
.live-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.live-actions .button { white-space: nowrap; }
:fullscreen #fullscreen { display: none; }
.live-qr { width: 82px; height: 82px; padding: 6px; flex: 0 0 auto; cursor: zoom-in; background: #EDEDEB; border-radius: 10px; border: 1px solid rgba(255, 77, 26, .55); }
.live-qr img { display: block; width: 100%; height: 100%; }
.qr-overlay { position: fixed; z-index: 20; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 30px; background: rgba(27, 27, 27, .97); animation: qr-expand .18s ease-out; }
.qr-overlay[hidden] { display: none; }
.qr-overlay img { width: min(76vh, 76vw, 820px); max-height: 76vh; padding: 18px; background: #EDEDEB; border-radius: 18px; box-shadow: 0 22px 70px rgba(0, 0, 0, .48); }
.qr-overlay p { margin: 0; color: #EDEDEB; font-size: clamp(1rem, 2.4vw, 1.5rem); font-weight: 700; }
.qr-close { position: absolute; top: 20px; right: 24px; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: #242424; color: #EDEDEB; font: 2rem/1 sans-serif; cursor: pointer; }
@keyframes qr-expand { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 721px) {
  .live-main { width: 100%; max-width: none; margin: 0; padding: 12px 24px 10px; }
  .live-main .board-viewport { height: min(467px, calc(100dvh - max(20vh, 132px) - 56px)); }
  .live-main .board { height: 100%; }
  .live-main .business-card { min-height: 0; height: 100%; padding: 10px 12px; gap: 4px; }
  .live-main .identity { grid-template-columns: 72px minmax(0, 1fr); min-height: 72px; gap: 11px; }
  .live-main .selfie, .live-main .avatar-placeholder { width: 72px; height: 72px; border-radius: 12px; }
  .live-main .avatar-placeholder { font-size: 1.35rem; }
  .live-main .business-card h2 { font-size: clamp(1.3rem, 2.3vw, 1.7rem); }
  .live-main .business-card p { font-size: clamp(.75rem, 1.15vw, .9rem); line-height: 1.18; }
  .live-main .business-card .company { margin-top: 3px; font-size: clamp(.64rem, .93vw, .76rem); }
  .live-main .business-card .special { line-height: 1.2; }
  .live-main .powered { margin: 8px 0 0; line-height: 1.1; }
}
.event-logo { max-width: 150px; max-height: 58px; display: block; object-fit: contain; margin-bottom: 10px; padding: 6px; background: #EDEDEB; border-radius: 8px; }
.organizer { max-width: 840px; }
.link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.link-grid > div { border: 1px solid rgba(255, 255, 255, .10); border-radius: 10px; padding: 13px; overflow-wrap: anywhere; }
.link-grid span { display: block; margin-bottom: 4px; }
.qr-wrap { display: grid; justify-items: center; text-align: center; margin: 24px 0; }
.qr { width: 200px; max-width: 100%; padding: 10px; background: #EDEDEB; border: 1px solid rgba(255, 77, 26, .55); border-radius: 12px; }
.organizer hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .10); margin: 28px 0; }
.empty { grid-column: 1 / -1; padding: 48px; text-align: center; color: #ABABAB; border: 1px dashed rgba(255, 255, 255, .24); border-radius: 14px; }
@media (max-width: 900px) { .live-top { height: auto; max-height: none; } .live-topbar { grid-template-columns: 180px 1fr; gap: 14px; } .live-actions { grid-column: 1 / -1; justify-content: flex-start; } }
@media (max-width: 720px) { .form-grid, .board, .link-grid { grid-template-columns: 1fr; } .hero { padding-top: 42px; } .top .shell { padding-top: 17px; padding-bottom: 17px; } .brand { padding: 13px 18px; border-radius: 14px; } .live-topbar { padding: 14px 16px; grid-template-columns: 1fr; } .live-brand { max-width: 250px; } .live-actions { grid-column: auto; flex-wrap: wrap; } .live-qr { width: 68px; height: 68px; } .qr-overlay img { width: min(86vw, 640px); max-height: 70vh; } }
