File size: 14,364 Bytes
76ecfee ea874ba 76ecfee | 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 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 | /* Birdie mobile app. Values follow design/mobile/README.md (high fidelity). */
:root {
--cream: #F6F1E7;
--mist: #DCE9F2;
--indigo: #4B3BFF;
--ink: #16172E;
--slate: #4A4D63;
--free: #2FB86A;
--taken: #EF4E4E;
--held: #F2A93B;
--white: #FFFFFF;
--safe-top: env(safe-area-inset-top, 0px);
--safe-bottom: env(safe-area-inset-bottom, 0px);
--frame: 402px;
--font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
--ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
margin: 0;
background: var(--cream);
color: var(--ink);
font-family: var(--font);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
button { font-family: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
::-webkit-scrollbar { display: none; }
.app {
position: relative;
max-width: var(--frame);
min-height: 100vh;
min-height: 100dvh;
margin: 0 auto;
background: var(--cream);
overflow-x: hidden;
}
/* On a laptop, show the app as a phone-width column. */
@media (min-width: 520px) {
body { background: #E8E2D5; }
.app { box-shadow: 0 0 0 1px rgba(22, 23, 46, 0.06), 0 30px 80px rgba(22, 23, 46, 0.12); }
}
.rail { display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 20px; }
.dot { display: inline-block; flex-shrink: 0; width: 8px; height: 8px; border-radius: 999px; }
.live { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--slate); }
.live .dot { background: var(--free); }
.live.is-offline .dot { background: var(--slate); }
.live.is-sim .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--slate); }
.sec-title { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.chip {
display: inline-flex; align-items: center;
font-size: 12px; font-weight: 700; line-height: 1.2;
background: var(--mist); color: var(--ink);
border-radius: 999px; padding: 5px 11px;
}
.chip-sim { background: transparent; color: var(--slate); box-shadow: inset 0 0 0 1.5px var(--slate); }
/* ---------- Browse ---------- */
.browse {
display: flex; flex-direction: column; gap: 22px;
padding: calc(var(--safe-top) + 16px) 0 48px;
}
.browse-top { display: flex; flex-direction: column; gap: 14px; padding: 8px 20px 0; }
.loc { display: flex; flex-direction: column; gap: 2px; }
.loc-k { font-size: 13px; font-weight: 600; color: var(--slate); }
.loc-v { display: flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 800; letter-spacing: -0.035em; }
.search {
display: flex; align-items: center; gap: 10px;
height: 50px; padding: 0 16px;
background: var(--mist); border-radius: 16px;
}
.search svg { flex-shrink: 0; }
.search input {
flex: 1; min-width: 0; height: 100%;
border: none; background: transparent; outline: none;
font: 500 15px var(--font); color: var(--ink);
-webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--slate); opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }
.cats { gap: 14px; }
.cat {
display: flex; flex-direction: column; align-items: center; gap: 8px;
flex-shrink: 0; width: 64px; padding: 0;
border: none; background: transparent; cursor: pointer;
}
.cat-tile {
display: flex; align-items: center; justify-content: center;
width: 64px; height: 64px; border-radius: 20px;
background: var(--mist); color: var(--ink);
transition: background-color 160ms ease, color 160ms ease;
}
.cat.is-on .cat-tile { background: var(--indigo); color: var(--white); }
.cat-label { font-size: 12px; font-weight: 700; white-space: nowrap; }
.featured { display: flex; flex-direction: column; gap: 12px; }
.featured[hidden] { display: none; }
.featured-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 20px; }
.featured-head .live .dot { width: 7px; height: 7px; }
.cards { gap: 12px; }
.card {
display: flex; flex-direction: column; gap: 12px;
flex-shrink: 0; width: 148px; padding: 16px;
border: none; border-radius: 22px;
background: var(--indigo); color: var(--white);
text-align: left; cursor: pointer;
}
.card-num { display: flex; flex-direction: column; }
.card-free { font-size: 38px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.card-k { font-size: 13px; font-weight: 600; }
.card-place { display: flex; flex-direction: column; gap: 2px; }
.card-name { font-size: 15px; font-weight: 700; line-height: 1.2; }
.card-drive { font-size: 12px; font-weight: 500; color: var(--mist); }
.list { display: flex; flex-direction: column; gap: 14px; padding: 0 20px; }
.sorts { display: flex; flex-wrap: wrap; gap: 8px; }
.sort {
height: 34px; padding: 0 14px;
border: 1.5px solid var(--ink); border-radius: 999px;
background: transparent; color: var(--ink);
font-size: 13px; font-weight: 700; cursor: pointer;
}
.sort.is-on { background: var(--ink); color: var(--cream); }
.rows { display: flex; flex-direction: column; gap: 18px; }
.row {
display: flex; align-items: center; gap: 14px;
padding: 0; border: none; background: transparent;
text-align: left; cursor: pointer; color: var(--ink);
}
.thumb {
display: flex; align-items: center; justify-content: center;
flex-shrink: 0; width: 92px; height: 92px;
border-radius: 20px; background: var(--mist); color: var(--slate);
}
.row.is-full .thumb { opacity: 0.55; }
.row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.row-name { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; font-weight: 500; color: var(--slate); }
.row-meta .chip-sim { font-size: 11px; padding: 2px 8px; }
.row-free { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.row-drive { font-weight: 500; color: var(--slate); }
.bar { display: flex; gap: 2px; height: 5px; margin-top: 2px; border-radius: 999px; overflow: hidden; }
.bar i { display: block; }
.bar .b-free { background: var(--free); }
.bar .b-held { background: var(--held); }
.bar .b-taken { flex: 1; background: var(--taken); }
.bar .b-unknown { background: #7C8190; }
.empty { padding: 24px 0; text-align: center; font-size: 15px; font-weight: 500; color: var(--slate); }
.note { margin: 0; padding: 0 20px; text-align: center; font-size: 12px; font-weight: 600; color: var(--slate); }
/* ---------- Place ---------- */
.place { display: flex; flex-direction: column; padding-bottom: 48px; }
.place.has-sheet { padding-bottom: 240px; }
.hero {
position: relative; flex-shrink: 0;
display: flex; align-items: center; justify-content: center;
width: 100%; height: 250px;
background: var(--mist); color: var(--slate);
}
.hero > svg { opacity: 0.5; }
.back {
position: absolute; top: calc(var(--safe-top) + 16px); left: 16px;
display: flex; align-items: center; justify-content: center;
width: 42px; height: 42px; padding: 0;
border: none; border-radius: 999px;
background: var(--cream); cursor: pointer;
box-shadow: 0 4px 14px rgba(22, 23, 46, 0.18);
}
.place-body {
position: relative; margin-top: -28px;
display: flex; flex-direction: column; gap: 18px;
padding: 22px 20px 0;
background: var(--cream); border-radius: 28px 28px 0 0;
}
.place-head { display: flex; flex-direction: column; gap: 6px; }
.place-head h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.place-meta { font-size: 14px; font-weight: 500; color: var(--slate); }
.amenities { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.divider { height: 1px; background: var(--mist); }
.headline-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.headline { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.headline-row .live { padding-bottom: 4px; white-space: nowrap; }
.headline-row .live .dot { box-shadow: 0 0 0 4px rgba(47, 184, 106, 0.18); }
.headline-row .live.is-offline .dot, .headline-row .live.is-sim .dot { box-shadow: inset 0 0 0 1.5px var(--slate); background: transparent; }
.seg {
display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px;
padding: 3px; background: var(--mist); border-radius: 12px;
}
.seg button {
height: 34px; border: none; border-radius: 9px;
background: transparent; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer;
transition: background-color 160ms ease, box-shadow 160ms ease;
}
.seg button.is-on { background: var(--cream); box-shadow: 0 1px 3px rgba(22, 23, 46, 0.14); }
.plan-wrap { position: relative; width: 100%; }
.plan {
position: absolute; top: 0; left: 0;
background: var(--mist); border-radius: 28px; overflow: hidden;
transform-origin: 0 0;
}
.window-strip { position: absolute; top: 0; left: 28px; right: 28px; height: 5px; border-radius: 0 0 4px 4px; background: var(--cream); }
.fixture {
position: absolute; display: flex; align-items: center; justify-content: center;
border: 1.5px dashed var(--slate); border-radius: 10px; opacity: 0.7;
font-size: 12px; font-weight: 600; color: var(--slate);
}
.table {
position: absolute; display: flex; align-items: center; justify-content: center;
background: var(--cream); box-shadow: 0 1px 2px rgba(22, 23, 46, 0.08);
font-size: 13px; font-weight: 700; color: var(--slate);
}
.chair {
--c: var(--taken);
position: absolute; width: 34px; height: 34px; padding: 0;
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
border: none; background: transparent; cursor: default;
transition: opacity 200ms ease;
}
.chair.is-free { --c: var(--free); cursor: pointer; }
.chair.is-held { --c: var(--held); cursor: pointer; }
.chair.is-unknown, .chair.is-unavailable { --c: #8A8C98; }
.chair.is-dim { opacity: 0.22; cursor: default; }
.chair-back { width: 18px; height: 5px; border-radius: 3px; background: var(--c); transition: background-color 200ms ease; }
.chair-seat { width: 22px; height: 16px; border-radius: 6px; background: var(--c); transition: background-color 200ms ease; }
.chair-id { position: absolute; top: 29px; font-size: 10px; font-weight: 800; color: var(--ink); transform: rotate(0deg); }
.chair.is-sel .chair-seat { box-shadow: 0 0 0 2.5px var(--mist), 0 0 0 5px var(--indigo); }
.plan-caption { color: var(--slate); font-size: 12px; text-align: center; margin: 8px 0; }
.entrance {
position: absolute; left: 0; right: 0; bottom: 10px;
display: flex; align-items: center; justify-content: center; gap: 5px;
font-size: 12px; font-weight: 600; color: var(--slate);
}
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--slate); }
.legend span { display: flex; align-items: center; gap: 6px; }
.seat-status-list { display: grid; gap: 9px; padding: 12px 0; }
.seat-status { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 13px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.seat-status-id { min-width: 42px; font-weight: 800; }
.seat-status-label { flex: 1; font-size: 14px; font-weight: 700; }
.seat-free .seat-status-label, .seat-available .seat-status-label { color: var(--free); }
.seat-held .seat-status-label, .seat-review_required .seat-status-label { color: #9A6500; }
.seat-unknown .seat-status-label, .seat-unavailable .seat-status-label { color: var(--slate); }
.legend i { width: 12px; height: 10px; border-radius: 3px; }
/* ---------- Seat sheet ---------- */
.sheet {
position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
max-width: var(--frame); margin: 0 auto;
display: flex; flex-direction: column; gap: 16px;
padding: 10px 20px calc(var(--safe-bottom) + 32px);
background: var(--cream); border-radius: 32px 32px 0 0;
box-shadow: 0 -14px 40px rgba(22, 23, 46, 0.16);
animation: sheet-up 320ms var(--ease-out);
}
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet-handle { align-self: center; width: 36px; height: 5px; border-radius: 999px; background: var(--mist); }
.sheet-row { display: flex; align-items: center; gap: 14px; }
.sheet-tile {
display: flex; align-items: center; justify-content: center; flex-shrink: 0;
width: 56px; height: 56px; border-radius: 18px;
font-size: 19px; font-weight: 800; color: var(--ink);
transition: background-color 200ms ease;
}
.sheet-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sheet-title { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.sheet-sub { font-size: 14px; font-weight: 500; color: var(--slate); }
.sheet-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet-chips .chip { padding: 4px 10px; }
.sheet-close {
display: flex; align-items: center; justify-content: center; flex-shrink: 0; align-self: flex-start;
width: 32px; height: 32px; padding: 0;
border: none; border-radius: 999px; background: var(--mist); cursor: pointer;
}
/* ---------- Splash ---------- */
.splash {
position: fixed; inset: 0; z-index: 100;
max-width: var(--frame); margin: 0 auto;
display: flex; align-items: center; justify-content: center;
background: var(--indigo); cursor: pointer;
transition: opacity 450ms ease;
}
.splash-mark {
display: flex; align-items: center; gap: 16px;
opacity: 0; transform: scale(0.86);
transition: transform 700ms var(--ease-out), opacity 500ms ease;
}
.splash-word { font-size: 56px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--white); }
.splash.is-in .splash-mark { opacity: 1; transform: scale(1); }
.splash.is-out { opacity: 0; }
.splash.is-out .splash-mark { opacity: 1; transform: scale(1.06); }
/* ---------- Loading ---------- */
.loading { padding: calc(var(--safe-top) + 120px) 20px; text-align: center; font-size: 15px; font-weight: 600; color: var(--slate); }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
|