-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmyproofticket.css
More file actions
215 lines (198 loc) · 5.51 KB
/
myproofticket.css
File metadata and controls
215 lines (198 loc) · 5.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
:root {
--bg: #141414;
--text: #E5E7EB;
--ok: #06C270;
--accent: #FFF3B6;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html, body {
background: var(--bg);
color: var(--text);
font-family: Roboto, Inter, system-ui, -apple-system, Segoe UI, Noto Sans KR, sans-serif;
overflow: hidden;
}
#bg-canvas {
position: fixed;
inset: 0;
width: 100vw;
height: 100vh;
display: block;
z-index: 0;
pointer-events: none;
}
.page {
width: 100%;
max-width: 1080px;
min-height: 100vh;
margin: 0 auto;
padding: 48px 24px 96px;
display: flex;
flex-direction: column;
align-items: center;
position: relative;
z-index: 1;
}
.logo {
position: fixed;
top: 40px; left: 56px;
width: 90px; z-index: 100; cursor: pointer;
}
.title {
margin-top: 70px;
text-align: center;
color: #fff;
font: 700 56px/1 'Roboto', sans-serif;
letter-spacing: 1.5px;
}
/* ===== Ticket Wheel Styles ===== */
.wheel-wrap {
position: relative;
width: 1400px;
height: 560px;
margin: 0 auto;
user-select: none;
-webkit-user-select: none;
}
.wheel {
position: absolute; inset: 0; cursor: grab;
}
.wheel.dragging { cursor: grabbing; }
.card {
position:absolute; left:0; bottom:0;
width:230px; height:394px; transform-origin:center bottom;
background: var(--src) center/cover no-repeat;
-webkit-mask:url('./public/images/ticket-shape.svg') center/100% 100% no-repeat;
mask:url('./public/images/ticket-shape.svg') center/100% 100% no-repeat;
box-shadow:0 10px 20px rgba(0,0,0,.35);
filter:brightness(0.8);
appearance:none; border:0; padding:0;
cursor:pointer; transition:filter .15s, scale .15s;
}
.card:is(:hover, :focus-visible) { filter:brightness(1.7); scale:1.15; }
.card::before {
content:""; position:absolute; inset:0;
background:var(--accent); opacity:.95;
pointer-events:none;
--w:3px;
-webkit-mask:
url('./public/images/ticket-shape.svg') 0 0/100% 100% no-repeat,
url('./public/images/ticket-shape.svg') center/
calc(100% - (var(--w)*2)) calc(100% - (var(--w)*2)) no-repeat;
mask:
url('./public/images/ticket-shape.svg') 0 0/100% 100% no-repeat,
url('./public/images/ticket-shape.svg') center/
calc(100% - (var(--w)*2.5)) calc(100% - (var(--w)*2.5)) no-repeat;
-webkit-mask-composite:xor; mask-composite:exclude;
}
.card::after {
content:""; position:absolute; inset:10px;
background:url('./public/images/ticket-innerframe.svg') center/contain no-repeat;
mix-blend-mode:screen; opacity:.9; pointer-events:none;
}
.wheel-btn-bar {
position: fixed;
left: 52%; bottom: 10%; transform: translateX(-50%);
z-index: 1000; width: 360px;
}
.wheel-btn {
width: 100%; height: 52px; border-radius: 16px; border: 1.5px solid #fff;
background: #232323; color: #fff;
font: 700 20px/1 'Inter', sans-serif; cursor:pointer;
display: flex; align-items: center; justify-content: center; gap: 8px;
}
@media (max-width:640px) {
.card { width: 160px; height: 274px; }
.wheel-wrap { height: 480px; }
}
.ticket-modal::backdrop {
background: rgba(0, 0, 0, 0.6);
}
.ticket-modal {
top: 3%;
overflow: hidden;
justify-self: center;
border: 0;
padding: 0;
background: transparent;
}
.modal-box {
position: relative;
background: #0c0c0c;
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 20px;
padding: 28px 28px 24px;
max-width: 960px;
width: calc(100vw - 40px);
overflow: hidden;
margin: auto;
}
.modal-box .close {
position: absolute;
left: 12px;
top: 12px;
width: 36px;
height: 36px;
border: 0;
border-radius: 10px;
background: rgba(255, 255, 255, 0.08);
color: #fff;
cursor: pointer;
}
/* ===== Preview Tickets ===== */
.tickets {
display: flex;
justify-content: center;
align-items: flex-start;
margin-top: 10%;
gap: clamp(20px, 4vw, 48px);
position: relative;
z-index: 1;
}
.ticketContainer {
position: relative;
width: calc(460px * var(--ticket-scale));
height: calc(787px * var(--ticket-scale));
display: flex; /* 레이어 정렬 */
align-items: center; /* 세로 가운데 */
justify-content: center; /* 가로 가운데 */
border-radius: 0px;
box-shadow: 0 10px 30px rgba(0,0,0,.25);
overflow: hidden; /* 내부 넘침 방지 */
}
proof-ticket {
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
scale: 0.9; /* ticketContainer와 똑같이 */
z-index: 2;
background: transparent;
pointer-events: none; /* 클릭 이벤트 전달 */
}
.lightOverlay {
position: absolute;
top: 60px; left: 1%;
width: 88%; height: 75%;
border-radius: 14px;
z-index: 3;
pointer-events: none;
background: linear-gradient(105deg,
transparent 40%,
rgba(255,219,112,0.8) 45%,
rgba(132,50,255,0.50) 50%,
transparent 54%);
background-size: 300% 300%;
background-position: 52%;
transition: background-position .1s;
mix-blend-mode: color-dodge;
filter: brightness(1.6) opacity(0.88);
/* 티켓 모양 마스크를 container와 완벽히 일치시킴 */
-webkit-mask-image: url('./public/images/ticket-shape.svg');
mask-image: url('./public/images/ticket-shape.svg');
-webkit-mask-size: 100% 100%; mask-size: 100% 100%;
-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
-webkit-mask-position: center; mask-position: center;
}