Spaces:
Paused
Paused
File size: 27,678 Bytes
51e964a ee34154 51e964a 50eafe9 51e964a ee34154 135e328 ee34154 135e328 ee34154 135e328 ee34154 | 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 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 | /* ============================================================
Parlor — dark, classy, dusty-pink table for social deduction.
Hand-written. No framework.
============================================================ */
:root {
--bg: #0a0a0d;
--bg-2: #0d0c11;
--panel: #121016;
--panel-2: #17141c;
--line: #29232f;
--line-soft: #1e1a26;
--text: #ece8f0;
--muted: #a79fb4;
--faint: #91899d;
--pink: #e8a0b4;
--pink-2: #d1789a;
--pink-deep: #c96b8f;
--pink-soft: rgba(232, 160, 180, 0.13);
--teal: #7fd8cf;
--green: #6fcf97;
--rose: #e06c75;
--radius: 14px;
--shadow: 0 26px 64px -34px rgba(0, 0, 0, 0.95);
--ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
margin: 0;
min-height: 100dvh;
background: var(--bg);
color: var(--text);
font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
font-size: 15px;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
}
/* ambient dusty-pink glow */
body::before {
content: "";
position: fixed;
inset: -25% -10% auto -10%;
height: 75vh;
background:
radial-gradient(55% 55% at 28% 0%, rgba(232, 160, 180, 0.13), transparent 70%),
radial-gradient(45% 45% at 82% 8%, rgba(201, 107, 143, 0.10), transparent 70%);
pointer-events: none;
z-index: 0;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: 'Fraunces', ui-serif, Georgia, serif; font-weight: 400; letter-spacing: -0.012em; }
p { margin: 0; }
/* ---------- shell ---------- */
.shell { position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
/* ---------- top bar ---------- */
.topbar {
position: sticky; top: 0; z-index: 40;
border-bottom: 1px solid var(--line-soft);
background: rgba(10, 10, 13, 0.8);
backdrop-filter: blur(14px);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Fraunces', serif; font-size: 21px; letter-spacing: -0.01em; }
.brand .mark {
width: 32px; height: 32px; border-radius: 50%;
display: grid; place-items: center;
background: radial-gradient(circle at 32% 28%, rgba(232,160,180,0.20), rgba(232,160,180,0.03) 70%);
border: 1px solid rgba(232,160,180,0.28);
box-shadow: 0 0 22px -8px rgba(232,160,180,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}
.brand em { color: var(--pink); font-style: italic; }
.navlinks { display: flex; align-items: center; gap: 6px; }
.navlink { padding: 7px 12px; border-radius: 9px; font-size: 13.5px; color: var(--muted); transition: color 0.18s var(--ease), background 0.18s var(--ease); }
.navlink:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.me { display: flex; align-items: center; gap: 9px; padding: 4px 4px 4px 11px; border: 1px solid var(--line); border-radius: 999px; }
.me .name { font-size: 13px; color: var(--muted); }
.me img { width: 28px; height: 28px; border-radius: 50%; background: var(--panel-2); }
/* ---------- the flowing generated mark ---------- */
.mark-svg { display: block; overflow: visible; animation: markTurn 26s linear infinite; }
.mark-svg circle, .mark-svg path, .mark-svg ellipse {
stroke-dasharray: 5 4.5;
animation: markFlow 11s linear infinite;
}
.mark-svg circle[fill]:not([fill="none"]), .mark-svg circle[stroke="none"] {
animation: markPulse 3.4s ease-in-out infinite;
}
@keyframes markTurn { to { transform: rotate(360deg); } }
@keyframes markFlow { to { stroke-dashoffset: -38; } }
@keyframes markPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
.mark-svg, .mark-svg * { animation: none !important; }
}
/* ---------- type ---------- */
.display { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(34px, 5.2vw, 58px); line-height: 1.03; letter-spacing: -0.022em; }
.display em { font-style: italic; color: var(--pink); }
.eyebrow { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.lede { color: var(--muted); font-size: 16px; max-width: 54ch; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
/* ---------- panels ---------- */
.panel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); }
.panel-title { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.panel-body { padding: 18px; }
/* ---------- buttons ---------- */
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
padding: 10px 16px; border-radius: 10px; border: 1px solid transparent;
font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
transition: transform 0.15s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.2s var(--ease), color 0.18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn-primary { background: linear-gradient(160deg, #f0b6c7, var(--pink-2)); color: #1c0d13; box-shadow: 0 12px 30px -14px rgba(232, 160, 180, 0.75); }
.btn-primary:hover { box-shadow: 0 16px 38px -14px rgba(232, 160, 180, 0.95); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.03); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: #322b39; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
/* ---------- forms ---------- */
.field { width: 100%; background: rgba(255,255,255,0.025); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); font: inherit; font-size: 14px; outline: none; transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease); }
.field::placeholder { color: var(--faint); }
.field:focus { border-color: rgba(232, 160, 180, 0.55); box-shadow: 0 0 0 3px rgba(232, 160, 180, 0.13); background: rgba(255,255,255,0.04); }
.label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.row { display: flex; gap: 10px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--pink); }
/* ---------- status pill ---------- */
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,0.02); }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2.2s infinite; }
.status.playing .dot { background: var(--pink); animation-name: pulsePink; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111,207,151,0.45); } 70% { box-shadow: 0 0 0 8px rgba(111,207,151,0); } 100% { box-shadow: 0 0 0 0 rgba(111,207,151,0); } }
@keyframes pulsePink { 0% { box-shadow: 0 0 0 0 rgba(232,160,180,0.5); } 70% { box-shadow: 0 0 0 8px rgba(232,160,180,0); } 100% { box-shadow: 0 0 0 0 rgba(232,160,180,0); } }
/* ---------- avatars ---------- */
.avatar { border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); object-fit: cover; display: block; }
.avatar-sm { width: 34px; height: 34px; }
.avatar-md { width: 42px; height: 42px; }
.avatar-lg { width: 84px; height: 84px; border-radius: 18px; }
.avatar-xl { width: 106px; height: 106px; border-radius: 22px; }
.av-stack { display: flex; align-items: center; }
.av-stack img { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--panel); margin-left: -8px; background: var(--panel-2); }
.av-stack img:first-child { margin-left: 0; }
/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; }
.badge-pink { background: var(--pink-soft); color: var(--pink); }
.badge-teal { background: rgba(127,216,207,0.12); color: var(--teal); }
.badge-sim { background: rgba(214,183,109,.12); color: #e3c985; font: 10px 'IBM Plex Mono', monospace; letter-spacing: .08em; }
/* ---------- layout helpers ---------- */
.page { padding: 40px 0 64px; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 18px; align-items: start; }
.section-gap { margin-top: 36px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.stack-14 { display: flex; flex-direction: column; gap: 14px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* ---------- hero ---------- */
.hero { padding: 24px 0 32px; }
.hero .lede { margin-top: 14px; }
.hero .eyebrow { margin-bottom: 14px; }
/* ---------- table cards ---------- */
.table-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.015); transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease); }
.table-card:hover { transform: translateY(-2px); border-color: rgba(232,160,180,0.4); background: rgba(255,255,255,0.03); }
.table-card .meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.table-card .name { font-weight: 600; font-size: 14.5px; }
.table-card .sub { font-size: 12px; color: var(--faint); }
/* ---------- avatar studio ---------- */
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.style-tile { position: relative; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); padding: 4px; cursor: pointer; transition: transform 0.15s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.style-tile img { width: 100%; aspect-ratio: 1; border-radius: 9px; display: block; background: var(--panel-2); }
.style-tile:hover { transform: translateY(-2px); border-color: #322b39; }
.style-tile.selected { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(232,160,180,0.22); background: rgba(232,160,180,0.06); }
.style-tile input { position: absolute; opacity: 0; pointer-events: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 26px; height: 26px; border-radius: 9px; border: 1px solid var(--line); cursor: pointer; position: relative; transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease); }
.swatch:hover { transform: translateY(-2px); }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch.selected { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--pink); }
/* ---------- room: player rail ---------- */
.rail { display: flex; flex-direction: column; gap: 18px; }
.player { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; transition: background 0.18s var(--ease); }
.player:hover { background: rgba(255,255,255,0.03); }
.player .who { min-width: 0; flex: 1; }
.player .who .n { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.player .who .s { font-size: 11px; color: var(--faint); }
.player .live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(111,207,151,0.6); }
/* ---------- room: chat ---------- */
.room-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: stretch; }
.chat { display: flex; flex-direction: column; height: calc(100dvh - 166px); min-height: 460px; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.14) transparent; }
.chat-scroll::-webkit-scrollbar { width: 8px; }
.chat-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 8px; }
.chat-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
.msg { display: flex; gap: 10px; align-items: flex-start; animation: msgIn 0.3s var(--ease) both; }
.msg .body { min-width: 0; }
.msg .top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.msg .who { font-size: 12.5px; font-weight: 600; color: var(--teal); }
.msg.you .who { color: var(--pink); }
.msg .at { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--faint); }
.msg .text { font-size: 14px; color: #d9d5e0; word-wrap: break-word; }
.msg.system { justify-content: center; animation: none; }
.msg.system .text { font-size: 11.5px; color: var(--faint); font-family: 'IBM Plex Mono', monospace; }
@keyframes msgIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.composer { border-top: 1px solid var(--line-soft); padding: 12px; display: flex; gap: 10px; align-items: center; }
.composer .field { flex: 1; }
.chat-empty { margin: auto; text-align: center; color: var(--faint); font-size: 13px; }
/* ---------- misc ---------- */
.divider { height: 1px; background: var(--line-soft); border: 0; margin: 0; }
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat .k { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; font-family: 'IBM Plex Mono', monospace; }
.stat .v { font-size: 15px; font-weight: 600; }
.empty { padding: 26px; text-align: center; color: var(--faint); font-size: 13.5px; }
.fade-up { animation: fadeUp 0.5s var(--ease) both; }
.d1 { animation-delay: 0.04s; } .d2 { animation-delay: 0.09s; } .d3 { animation-delay: 0.14s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* ---------- responsive ---------- */
@media (max-width: 900px) {
.split, .room-grid { grid-template-columns: 1fr; }
.g-3 { grid-template-columns: 1fr 1fr; }
.chat { height: auto; min-height: 62vh; }
}
@media (max-width: 620px) {
.container { padding: 0 16px; }
.g-2, .g-3 { grid-template-columns: 1fr; }
.topbar-inner { height: 58px; }
.brand span.full { display: none; }
.navlink { padding: 7px 9px; }
}
/* ---------- lobby recovery + accessibility ---------- */
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: 8px; transform: translateY(-160%); padding: 10px 14px; border-radius: 8px; background: var(--pink); color: #1c0d13; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
main { flex: 1; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.status.offline .dot { background: var(--rose); animation: none; }
.status.connecting .dot { background: #d6b76d; animation: none; }
.status.polling .dot { background: #d6b76d; animation: none; }
.status.readonly .dot { background: var(--faint); animation: none; }
.fine-print { font-size: 12px; }
.queue-count { display: flex; align-items: baseline; gap: 9px; }
.queue-count strong { font-family: 'Fraunces', Georgia, serif; font-size: 38px; line-height: 1; color: var(--pink); font-weight: 400; }
.queue-count span { color: var(--muted); font-size: 13px; }
.queue-actions { flex-wrap: wrap; }
.lobby-activity { align-items: stretch; }
.minigame-prompt { font: 400 22px/1.25 'Fraunces', Georgia, serif; }
.choice-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
.choice-button { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease); }
.choice-button:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(232,160,180,.55); background: var(--pink-soft); }
.choice-button.selected { border-color: var(--pink); background: var(--pink-soft); }
.choice-button:disabled { opacity: 1; color: var(--text); cursor: default; }
.choice-tally { min-width: 24px; text-align: center; color: var(--pink); font: 12px 'IBM Plex Mono', monospace; }
.lobby-chat-panel { min-height: 390px; display: flex; flex-direction: column; }
.lobby-chat-scroll { min-height: 220px; max-height: 390px; }
.secondary-action { border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.015); }
.secondary-action summary { padding: 14px 16px; color: var(--muted); cursor: pointer; }
.table-browser { padding: 0 16px 16px; }
.create-table-form { padding: 0 16px 16px; max-width: 560px; }
.form-grow { flex: 1; min-width: 0; }
.avatar-option-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.chat-feedback { min-height: 18px; padding: 0 12px 8px; font-size: 12px; }
.avatar-row { gap: 16px; }
.avatar-details { flex: 1; gap: 8px; }
.section-heading { margin-bottom: 14px; }
.section-title { font-size: 20px; }
.section-count { font-size: 11px; }
.table-status { text-transform: uppercase; letter-spacing: .08em; }
.table-actions { gap: 14px; }
.room-heading { margin-bottom: 20px; }
.room-title { margin-top: 6px; font-size: 34px; }
.room-heading-actions { gap: 10px; }
.player-count { font-size: 11px; }
.players-body { padding: 10px; }
.players-list { gap: 2px; }
.inference-title { font-size: 40px; }
.model-limit { width: 90px; }
.room-main { display: grid; grid-template-rows: auto minmax(340px, 1fr); gap: 18px; min-width: 0; }
.gameplay-panel { overflow: hidden; }
.game-panel-head { min-height: 78px; }
.game-title { margin-top: 4px; font-size: 22px; color: var(--text); }
.gameplay-body { display: grid; gap: 18px; padding: 20px; }
.game-intro { display: grid; gap: 8px; }
.game-prompt { max-width: 62ch; color: var(--muted); font-size: 14px; }
.gameplay-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .85fr); gap: 14px; }
.role-card { padding: 16px 18px; border: 1px solid rgba(232,160,180,.35); border-radius: 13px; background: radial-gradient(130% 120% at 0% 0%, rgba(232,160,180,.16), transparent 65%), var(--panel); }
.role-card h3 { margin: 5px 0 8px; font-size: 25px; color: var(--pink); }
.role-card p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.role-instructions { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.game-players { padding: 14px; border: 1px solid var(--line-soft); border-radius: 13px; background: rgba(255,255,255,.018); }
.game-players h3 { margin-bottom: 10px; font-size: 17px; }
.game-player-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 7px; }
.game-player { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 9px; border: 1px solid var(--line-soft); border-radius: 9px; color: var(--text); font-size: 12px; }
.game-player .avatar { width: 26px; height: 26px; border-radius: 50%; }
.game-player .game-player-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.game-player .alive-indicator { color: var(--green); font: 10px 'IBM Plex Mono', monospace; }
.game-player.eliminated { opacity: .55; }
.game-player.eliminated .alive-indicator { color: var(--faint); }
.game-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.game-action-group { display: grid; gap: 7px; min-width: min(100%, 240px); }
.game-action-group .label { margin: 0; }
.game-action-button { min-height: 44px; }
.game-feedback { min-height: 20px; color: var(--muted); font-size: 12px; }
.game-result { padding: 14px 16px; border-left: 2px solid var(--pink); border-radius: 0 10px 10px 0; background: var(--pink-soft); color: var(--text); }
.game-result h3 { margin-bottom: 4px; font-size: 17px; }
.game-result p { color: var(--muted); font-size: 13px; }
.game-vote-totals { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 10px 0 0; padding-left: 18px; color: var(--faint); font-size: 12px; }
.game-private-notes { display: grid; gap: 6px; }
.private-clue { padding: 9px 12px; border: 1px solid rgba(127,216,207,.22); border-radius: 9px; color: var(--teal); background: rgba(127,216,207,.055); font-size: 12px; }
.game-waiting { display: grid; gap: 10px; max-width: 620px; }
.game-waiting h2 { font-size: 25px; }
.game-waiting p:not(.eyebrow) { color: var(--muted); }
.room-main .chat { height: min(48vh, 520px); min-height: 310px; }
/* First-visit ritual: a private, skippable conversation before the table. */
.onboarding-overlay { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(5,4,8,.78); backdrop-filter: blur(16px); }
body.onboarding-active { overflow: hidden; }
.onboarding-card { width: min(100%, 620px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: clamp(22px, 5vw, 46px); border: 1px solid rgba(232,160,180,.32); border-radius: 18px; background: radial-gradient(110% 95% at 100% 0%, rgba(209,120,154,.14), transparent 56%), linear-gradient(155deg, #1a151f, #100e14 72%); box-shadow: 0 32px 100px rgba(0,0,0,.58); }
.onboarding-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 28px; }
.onboarding-mark { width: 34px; height: 34px; }
.onboarding-step { color: var(--faint); font: 11px 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .15em; }
.onboarding-card h2 { max-width: 15ch; margin: 10px 0 14px; font-size: clamp(31px, 6vw, 48px); line-height: 1.05; }
.onboarding-card .onboarding-note { max-width: 55ch; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.onboarding-answer { min-height: 116px; resize: vertical; }
.onboarding-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.onboarding-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.onboarding-consent input { margin-top: 3px; accent-color: var(--pink); }
.onboarding-skip { border: 0; background: transparent; color: var(--faint); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.onboarding-feedback { min-height: 20px; margin-top: 9px; color: var(--pink); font-size: 12px; }
.onboarding-forget { margin-top: 12px; border: 0; padding: 0; background: none; color: var(--faint); font: inherit; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* GSAP + CSS fallback: parlor doors close between queue and table. */
.scene-transition { position: fixed; inset: 0; z-index: 200; overflow: hidden; pointer-events: none; background: #09080c; }
.scene-transition[data-active="true"] { pointer-events: auto; }
.scene-door { position: absolute; inset: 0 auto 0 0; width: 51%; background: linear-gradient(145deg, #211722, #110e15 68%); border-right: 1px solid rgba(232,160,180,.24); will-change: transform; }
.scene-door-right { inset: 0 0 0 auto; background: linear-gradient(215deg, #1d151e, #0d0b10 72%); border-right: 0; border-left: 1px solid rgba(232,160,180,.24); }
.scene-door-left { transform: translateX(-100%); }
.scene-door-right { transform: translateX(100%); }
.scene-transition.is-active .scene-door { transition: transform .72s cubic-bezier(.72,0,.24,1); }
.scene-transition.is-closing .scene-door { transform: translateX(0); }
.scene-transition.is-closed .scene-door { transform: translateX(0); transition: none; }
.scene-transition.is-opening .scene-door-left { transform: translateX(-100%); }
.scene-transition.is-opening .scene-door-right { transform: translateX(100%); }
.scene-transition.is-closing .scene-core { animation: sceneCoreIn .42s .3s both; }
.scene-transition.is-opening .scene-core { animation: sceneCoreOut .2s both; }
@keyframes sceneCoreIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes sceneCoreOut { to { opacity: 0; transform: translateY(-8px) scale(.98); } }
.scene-door::after { content: ""; position: absolute; inset: 0; opacity: .26; background: repeating-linear-gradient(90deg, transparent 0 42px, rgba(232,160,180,.05) 43px, transparent 44px 86px); }
.scene-core { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 12px; text-align: center; color: var(--text); }
.scene-symbol { width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid rgba(232,160,180,.34); border-radius: 50%; background: rgba(232,160,180,.07); box-shadow: 0 0 60px rgba(209,120,154,.18); }
.scene-symbol .mark-svg { width: 56px; height: 56px; }
.scene-caption { color: var(--faint); font: 11px 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .2em; }
.scene-title { margin: 0; padding: 0 20px; font: 400 clamp(28px, 5vw, 48px)/1.05 'Fraunces', Georgia, serif; }
.scene-rule { width: 72px; height: 1px; background: var(--pink); transform-origin: center; }
.gsap-ready .fade-up { animation: none; opacity: 1; transform: none; }
.member-marker { color: var(--teal); font: 10px 'IBM Plex Mono', monospace; }
.style-tile:has(input:focus-visible), .swatch:has(input:focus-visible), .style-tile:focus-within, .swatch:focus-within { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (max-width: 900px) {
.chat { height: min(72vh, 680px); min-height: 420px; }
.room-grid { grid-template-columns: 1fr; }
.room-main { order: 1; }
.room-grid > .rail { order: 2; }
.gameplay-columns { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
.page { padding-top: 26px; }
.topbar-inner { gap: 8px; }
.navlinks { gap: 2px; }
.me { padding-left: 7px; }
.me .name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { flex-wrap: wrap; }
.composer { align-items: stretch; }
.composer .btn { min-width: 72px; }
.chat { height: 68vh; min-height: 360px; }
.lobby-chat-panel { min-height: 360px; }
.lobby-chat-scroll { min-height: 190px; }
.minigame-prompt { font-size: 20px; }
.table-card { align-items: flex-start; flex-wrap: wrap; }
.table-card .meta { flex: 1 1 100%; }
.room-main .chat { height: 58vh; min-height: 300px; }
.gameplay-body { padding: 14px; }
.onboarding-overlay { padding: 12px; }
.scene-symbol { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
|