Skip to content
Source
Sign inSign up
samwillis/neon-glow-demo
Open History to see the last commit

Glow.module.css

199 lines19.5 KB

1/* ---------- Brand and core controls ---------- */
2.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
3.logo > span:first-child { animation: twinkle 8s ease-in-out infinite; }
4/* The glow motif borrows Neon's heavy stroke: dark tiles inside a thick gradient ring. */
5.ring { border: 3px solid transparent; background: linear-gradient(#0d0d15, #0d0d15) padding-box, var(--glow-gradient) border-box; }
6.headerRight { display: flex; align-items: center; gap: 12px; }
7.muted { color: var(--muted); font-size: 14px; line-height: 1.6; }
8.avatar { width: 40px; height: 40px; border: 0; color: #07070c; background: var(--glow-gradient); border-radius: 50%; font-weight: 850; font-size: 16px; box-shadow: 0 0 0 2px var(--canvas), 0 0 0 3.5px rgba(255, 255, 255, 0.15); }
9.primary, .secondary { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; border: 1px solid transparent; padding: 10px 18px; border-radius: 13px; font-weight: 750; font-size: 14px; transition: transform 0.15s, filter 0.15s, border-color 0.15s, background 0.15s; }
10.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 28px -10px rgba(183, 255, 90, 0.7); }
11.secondary { background: rgba(255, 255, 255, 0.06); border-color: var(--border-strong); color: var(--text); }
12.primary:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
13.secondary:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.1); }
14.primary:disabled, .secondary:disabled { opacity: 0.45; }
15.iconButton { width: 40px; height: 40px; display: inline-grid; place-items: center; background: transparent; color: var(--muted); border: none; border-radius: 11px; flex: none; }
16.iconButton:hover { color: var(--text); background: var(--raised); }
17.iconButton:disabled { opacity: 0.35; }
18.textButton { background: none; border: 0; padding: 5px 0; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; font-weight: 600; }
19.textButton:hover:not(:disabled) { color: var(--accent); }
20.textButton:disabled { opacity: 0.5; }
21.error { color: var(--error); font-size: 13px; line-height: 1.6; }
22.centered { text-align: center; margin: auto; padding: 48px; color: var(--muted); }
23.centered h1 { color: var(--text); font-size: 24px; }
24​
25/* ---------- Composer ---------- */
26.composer { position: relative; border: 1px solid var(--border-strong); border-radius: 20px; background: rgba(17, 17, 26, 0.85); backdrop-filter: blur(12px); padding: 14px 14px 12px 16px; text-align: left; transition: border-color 0.15s, box-shadow 0.2s; }
27.composer:focus-within { border-color: transparent; box-shadow: 0 0 0 1.5px var(--pink), 0 0 0 1.5px var(--cyan) inset, 0 18px 50px -18px rgba(255, 79, 216, 0.55); }
28.composer textarea { width: 100%; min-height: 52px; max-height: 180px; outline: none; border: 0; background: transparent; color: var(--text); font-size: 15px; line-height: 1.6; }
29.composer textarea::placeholder { color: var(--faint); }
30.largeComposer { padding: 22px 22px 16px; border-radius: 26px; box-shadow: 0 24px 70px -30px rgba(139, 92, 255, 0.6); }
31.largeComposer textarea { font-size: 18px; min-height: 84px; }
32.composerFooter { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
33.composerHint { color: var(--faint); font-size: 12px; font-weight: 600; }
34.sendButton { min-width: 40px; min-height: 40px; border-radius: 12px; background: var(--glow-gradient); color: #07070c; border: 0; padding: 10px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 850; box-shadow: var(--glow-shadow); transition: transform 0.15s, filter 0.15s; }
35.sendButton:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
36.sendButton:disabled { opacity: 0.35; box-shadow: none; }
37​
38/* ---------- Dialogs and menus ---------- */
39.backdrop { position: fixed; inset: 0; background: rgba(3, 3, 8, 0.72); z-index: 40; backdrop-filter: blur(8px); }
40.dialog { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); background: linear-gradient(180deg, #16161f, #101018); width: min(480px, calc(100vw - 32px)); border: 1px solid var(--border-strong); border-radius: 26px; padding: 26px; max-height: 88dvh; overflow-y: auto; outline: none; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9); }
41.dialogHeading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
42.dialogHeading h2 { margin: 0; font-size: 24px; font-weight: 850; letter-spacing: -0.7px; }
43.dialogActions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
44.authForm { display: grid; gap: 18px; margin-top: 24px; }
45.authForm label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
46.authForm input { width: 100%; background: var(--canvas); border: 1px solid var(--border); border-radius: 12px; padding: 12px; color: var(--text); font-size: 16px; }
47.positioner { z-index: 60; }
48.accountButton { padding: 0; border: 0; background: none; border-radius: 50%; }
49.accountRow { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px 8px 8px; border: 0; border-radius: 16px; background: none; color: var(--text); text-align: left; transition: background 0.15s; }
50.accountRow:hover, .accountRow[data-popup-open] { background: var(--raised); }
51.accountRow .avatar { width: 42px; height: 42px; flex: none; }
52.accountText { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
53.accountText strong { font-size: 14.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
54.accountText small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
55.accountMore { color: var(--muted); flex: none; }
56.avatar { display: inline-grid; place-items: center; }
57.avatarImage { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
58.avatar { overflow: hidden; padding: 0; }
59.menu { background: var(--raised); border: 1px solid var(--border-strong); border-radius: 14px; padding: 6px; min-width: 190px; z-index: 45; box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6); }
60.menuLabel { display: block; color: var(--muted); font-size: 12px; padding: 10px; }
61.menuItem { display: flex; align-items: center; gap: 9px; padding: 11px; font-size: 14px; border-radius: 9px; cursor: pointer; }
62.menuItem[data-highlighted] { background: rgba(255, 255, 255, 0.08); outline: none; }
63.menuDanger { color: var(--error); }
64.menuDanger[data-highlighted] { background: rgba(255, 138, 138, 0.12); }
65.visibilityChoices { display: grid; gap: 16px; margin: 4px 0; }
66.visibilityChoices > label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 12px; border-radius: 14px; border: 1px solid var(--border); transition: border-color 0.15s, background 0.15s; }
67.visibilityChoices > label:has([data-checked]) { border-color: var(--accent); background: rgba(183, 255, 90, 0.06); }
68.visibilityChoices strong { font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
69.visibilityChoices small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
70.radio { display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--muted); background: none; flex: none; }
71.radio[data-checked] { border-color: var(--accent); }
72.radioIndicator { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
73.linkField { background: var(--canvas); padding: 14px; width: 100%; border: 1px solid var(--border); border-radius: 12px; overflow-wrap: anywhere; font-size: 13px; user-select: all; text-align: left; }
74.historyList { display: grid; margin-top: 16px; }
75.historyItem { background: none; color: var(--text); border: 0; border-bottom: 1px solid var(--border); padding: 12px 0; text-align: left; display: flex; align-items: center; gap: 14px; }
76.historyItem > span:nth-child(2) { flex: 1; }
77.historyItem strong { font-size: 14px; font-weight: 500; line-height: 1.45; }
78.historyItem small { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
79.historyThumb { width: 36px; height: 62px; border-radius: 8px; object-fit: cover; background: var(--raised); flex: none; }
80​
81.markdown { display: grid; gap: 9px; }
82.markdown p { margin: 0; white-space: pre-wrap; }
83.markdown h4 { margin: 4px 0 0; font-size: 16px; font-weight: 800; letter-spacing: -0.2px; }
84.markdown h4[data-level='1'] { font-size: 18px; }
85.markdown ul, .markdown ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
86.markdown li::marker { color: var(--accent); }
87.markdown blockquote { margin: 0; padding: 6px 12px; border-left: 3px solid var(--pink); color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.04); border-radius: 0 10px 10px 0; white-space: pre-wrap; }
88.markdown code, .progressMessage code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); }
89.markdown pre { margin: 0; padding: 12px; border-radius: 12px; background: #0b0b12; border: 1px solid var(--border); overflow-x: auto; }
90.markdown pre code { padding: 0; background: none; white-space: pre; }
91.markdown a, .progressMessage a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
92.markdown strong { font-weight: 800; color: #fff; }
93​
94/* ---------- Builder ---------- */
95.builder { height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
96.builderHeader { min-height: 72px; border-bottom: 1px solid var(--border); padding: 12px 22px 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: none; background: rgba(7, 7, 12, 0.7); backdrop-filter: blur(16px); position: relative; z-index: 5; }
97.builderTitle { display: flex; align-items: center; gap: 10px; min-width: 0; }
98.builderTitle > div { display: grid; gap: 4px; min-width: 0; }
99.builderTitle strong { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
100.builderTitle span { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
101.builderEmoji { width: 40px; height: 40px; border-radius: 12px; display: grid !important; place-items: center; font-size: 22px !important; flex: none; }
102.builderBody { min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(360px, 430px) 1fr; }
103.chatPane { display: flex; flex-direction: column; border-right: 1px solid var(--border); min-height: 0; background: rgba(7, 7, 12, 0.55); }
104.conversation { flex: 1; min-height: 0; overflow-y: auto; padding: 26px 22px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
105.conversationContent { display: flow-root; min-width: 0; }
106.chatIntroduction { display: flex; gap: 12px; align-items: center; margin-bottom: 30px; }
107.glowAvatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; flex: none; border: 3px solid transparent; background: linear-gradient(#0d0d15, #0d0d15) padding-box, var(--glow-gradient) border-box; box-shadow: 0 0 18px -4px rgba(183, 255, 90, 0.5); }
108.chatIntroduction p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }
109.userMessage, .assistantMessage { margin-bottom: 22px; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
110.userMessage { background: linear-gradient(135deg, rgba(139, 92, 255, 0.28), rgba(255, 79, 216, 0.2)); border: 1px solid rgba(255, 79, 216, 0.25); border-radius: 18px 18px 6px 18px; padding: 12px 16px; margin-left: 36px; }
111.userMessage p, .assistantMessage p { white-space: pre-wrap; margin: 0; }
112.messageAuthor { color: var(--accent); font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
113.assistantMessage { margin-right: 12px; }
114.composerDock { padding: 12px 16px 16px; flex: none; }
115.dockHint { display: block; color: var(--faint); text-align: center; font-size: 11px; padding-top: 9px; }
116.workStatus { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); margin: 16px 0; }
117.workStatus > button { margin-left: auto; }
118.workActive { padding: 10px 14px; border-radius: 14px; background: rgba(183, 255, 90, 0.07); border: 1px solid rgba(183, 255, 90, 0.2); color: var(--text); }
119.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 12px var(--accent); animation: pulse 1.4s ease-in-out infinite; }
120.queueItem { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
121.progressMessage { display: flex; gap: 9px; align-items: flex-start; color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 12px; overflow-wrap: anywhere; }
122.progressMessage svg { flex: none; margin-top: 4px; color: var(--accent); }
123.progressMessage p { margin: 0; white-space: pre-wrap; }
124.questionMessage { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 16px; padding: 16px; margin-bottom: 22px; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
125.questionMessage p { margin: 0; white-space: pre-wrap; }
126.questionMessage .messageAuthor { display: flex; align-items: center; gap: 7px; }
127.answerOptions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
128.answerOption { border: 1px solid var(--border-strong); color: var(--text); background: rgba(255, 255, 255, 0.04); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
129.answerOption:hover { border-color: var(--pink); background: rgba(255, 79, 216, 0.08); }
130.answerOption:disabled { opacity: 0.5; cursor: default; }
131.questionHint { display: block; margin-top: 12px; color: var(--muted); font-size: 12px; }
132.resultButton { border: 0; background: var(--glow-gradient); color: #07070c; border-radius: 12px; padding: 9px 15px; display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 800; box-shadow: var(--glow-shadow); }
133.resultButton:hover { filter: brightness(1.08); }
134.flipArrow { transform: rotate(180deg); }
135.previewPane { min-height: 0; display: flex; flex-direction: column; position: relative; overflow: hidden; isolation: isolate; }
136.previewToolbar, .phoneStage, .previewFooter, .changeButton { position: relative; z-index: 1; }
137.previewToolbar { height: 54px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; flex: none; }
138.previewToolbar > span { font-size: 10px; font-weight: 750; letter-spacing: 1.6px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
139.previewToolbar > div { display: flex; gap: 4px; }
140.capturing { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 79, 216, 0.16); color: #ffc2f2; letter-spacing: 0.2px; text-transform: none; font-size: 11px; }
141.liveDot { display: inline-block; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); }
142.phoneStage { min-height: 0; flex: 1; display: flex; align-items: center; justify-content: center; padding: 8px 24px; }
143.phone { position: relative; height: 100%; aspect-ratio: 390 / 844; max-width: 100%; border-radius: 32px; overflow: hidden; background: #000; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 7px rgba(10, 10, 18, 0.9), 0 0 0 8px rgba(255, 255, 255, 0.08); }
144.phoneBuilding::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(183, 255, 90, 0.6), inset 0 0 40px rgba(183, 255, 90, 0.25); animation: pulse 1.6s ease-in-out infinite; }
145.playerFrame { width: 100%; height: 100%; border: none; display: block; background: #07070c; }
146.previewEmpty { max-width: 320px; text-align: center; margin: auto; color: var(--muted); }
147.previewEmpty h1, .previewEmpty h2 { color: var(--text); font-weight: 800; letter-spacing: -0.7px; font-size: 24px; line-height: 1.3; }
148.previewEmpty p { font-size: 14px; line-height: 1.7; }
149.emptyOrb { border-radius: 30px; width: 108px; height: 108px; display: grid; place-items: center; margin: 0 auto 26px; transform: rotate(-9deg); border: 5px solid transparent; background: linear-gradient(#0d0d15, #0d0d15) padding-box, var(--glow-gradient) border-box; box-shadow: 0 0 40px -8px rgba(183, 255, 90, 0.55); }
150.orbBuilding { animation: spin 3s linear infinite; }
151.previewFooter { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; color: var(--muted); font-size: 12px; flex: none; }
152.previewFooter span:first-child { font-size: 10px; letter-spacing: 1.5px; font-weight: 700; }
153.previewFooter a { color: var(--accent); font-weight: 700; }
154.changeButton { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 0 16px 16px; padding: 14px; border: 0; background: var(--glow-gradient); color: #07070c; border-radius: 15px; font-weight: 850; }
155.mobileTabs { display: none; }
156.expanded { position: fixed; inset: 0; z-index: 30; grid-template-columns: 1fr; background: var(--canvas); }
157.expanded .chatPane { display: none; }
158.expanded .phone { width: auto; height: 100%; }
159​
160@keyframes pulse { 50% { opacity: 0.35; } }
161@keyframes spin { to { transform: rotate(351deg); } }
162@keyframes twinkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(45deg) scale(1.08); } }
163​
164@media (max-width: 1023px) {
165 .builderBody { display: flex; }
166 .chatPane, .previewPane { width: 100%; height: 100%; border: none; }
167 .builderBody[data-view='chat'] .previewPane, .builderBody[data-view='play'] .chatPane { display: none; }
168 .mobileTabs { display: block; border-bottom: 1px solid var(--border); padding: 8px 14px; }
169 .tabList { display: flex; padding: 3px; background: var(--surface); border-radius: 12px; }
170 .tab { flex: 1; background: transparent; color: var(--muted); border: none; border-radius: 9px; min-height: 38px; font-size: 14px; font-weight: 700; }
171 .tab[data-selected] { background: var(--raised); color: var(--text); }
172 .conversation { max-width: 680px; width: 100%; margin: auto; }
173 .composerDock { max-width: 680px; width: 100%; margin: auto; }
174 .phoneStage { padding: 8px 16px; }
175 .previewFooter { padding: 12px 18px; }
176 .expanded .previewPane { display: flex !important; }
177 .expanded .chatPane { display: none !important; }
179@media (max-width: 639px) {
180 .logo { font-size: 22px; }
181 .largeComposer { padding: 18px 18px 14px; }
182 .largeComposer textarea { font-size: 16px; min-height: 84px; }
183 .builderHeader { min-height: 64px; padding: 8px 10px 8px 4px; gap: 6px; }
184 .builderHeader .headerRight { gap: 4px; }
185 .builderHeader .headerRight > a { display: none; }
186 .builderTitle { gap: 6px; }
187 .builderEmoji { width: 34px; height: 34px; font-size: 19px !important; }
188 .builderTitle strong { max-width: 150px; font-size: 14px; }
189 .builderTitle span { font-size: 11px; max-width: 170px; }
190 .builderHeader .primary { min-height: 38px; padding: 8px 12px; }
191 .conversation { padding: 22px 16px; }
192 .composer textarea { font-size: 16px; }
193 .composerDock { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
194 .dockHint { display: none; }
195 .previewToolbar { height: 44px; padding: 0 14px; }
196 .phone { border-radius: 20px; width: 100%; max-width: 420px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
197 .phoneStage { padding: 0 10px; }
198 .dialog { top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-height: 92dvh; border-radius: 26px 26px 0 0; padding-bottom: max(26px, env(safe-area-inset-bottom)); }