| :root { |
| --bg: #1a0b2e; |
| --bg-soft: #261245; |
| --bg-card: #2d1654; |
| --accent: #ff5b8a; |
| --accent-soft: #ff8fb1; |
| --text: #f4ecff; |
| --text-dim: #b8a9d9; |
| --border: #3d1f6b; |
| --error: #ff7676; |
|
|
| color-scheme: dark; |
| } |
|
|
| * { |
| box-sizing: border-box; |
| } |
|
|
| html, |
| body, |
| #root { |
| height: 100%; |
| margin: 0; |
| } |
|
|
| body { |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", |
| Arial, sans-serif; |
| background: radial-gradient(circle at 20% 0%, #3a1668 0%, var(--bg) 55%); |
| color: var(--text); |
| line-height: 1.45; |
| } |
|
|
| .screen { |
| display: flex; |
| flex-direction: column; |
| min-height: 100%; |
| padding: 24px; |
| gap: 16px; |
| } |
|
|
| .screen--center { |
| align-items: center; |
| justify-content: center; |
| } |
|
|
| .card { |
| width: min(420px, 100%); |
| background: var(--bg-card); |
| border: 1px solid var(--border); |
| border-radius: 16px; |
| padding: 28px; |
| box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); |
| } |
|
|
| .title { |
| font-size: 32px; |
| margin: 0 0 8px; |
| letter-spacing: -0.02em; |
| } |
|
|
| .title--small { |
| font-size: 20px; |
| margin: 0; |
| } |
|
|
| .subtitle { |
| margin: 0 0 20px; |
| color: var(--text-dim); |
| } |
|
|
| .subtitle--small { |
| font-size: 13px; |
| margin: 4px 0 0; |
| } |
|
|
| .label { |
| display: block; |
| font-size: 13px; |
| color: var(--text-dim); |
| margin-bottom: 6px; |
| } |
|
|
| .input { |
| width: 100%; |
| padding: 12px 14px; |
| border-radius: 10px; |
| border: 1px solid var(--border); |
| background: var(--bg-soft); |
| color: var(--text); |
| font-size: 15px; |
| outline: none; |
| transition: border-color 120ms ease, box-shadow 120ms ease; |
| } |
|
|
| .input:focus { |
| border-color: var(--accent); |
| box-shadow: 0 0 0 3px rgba(255, 91, 138, 0.2); |
| } |
|
|
| .input:disabled { |
| opacity: 0.6; |
| cursor: not-allowed; |
| } |
|
|
| .button { |
| display: inline-flex; |
| align-items: center; |
| justify-content: center; |
| padding: 11px 18px; |
| border-radius: 10px; |
| border: none; |
| background: var(--accent); |
| color: #1a0b2e; |
| font-weight: 600; |
| font-size: 14px; |
| cursor: pointer; |
| transition: transform 80ms ease, background 120ms ease; |
| } |
|
|
| .button:hover:not(:disabled) { |
| background: var(--accent-soft); |
| } |
|
|
| .button:active:not(:disabled) { |
| transform: translateY(1px); |
| } |
|
|
| .button:disabled { |
| opacity: 0.5; |
| cursor: not-allowed; |
| } |
|
|
| .button--ghost { |
| background: transparent; |
| color: var(--text-dim); |
| border: 1px solid var(--border); |
| } |
|
|
| .button--ghost:hover:not(:disabled) { |
| background: var(--bg-soft); |
| color: var(--text); |
| } |
|
|
| .join { |
| display: flex; |
| flex-direction: column; |
| gap: 12px; |
| } |
|
|
| .error { |
| color: var(--error); |
| font-size: 13px; |
| margin: 0; |
| } |
|
|
| .topbar { |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| gap: 16px; |
| padding: 16px 20px; |
| border-radius: 14px; |
| background: var(--bg-card); |
| border: 1px solid var(--border); |
| } |
|
|
| .layout { |
| display: grid; |
| grid-template-columns: 220px 1fr; |
| gap: 16px; |
| flex: 1; |
| min-height: 0; |
| } |
|
|
| .roster { |
| background: var(--bg-card); |
| border: 1px solid var(--border); |
| border-radius: 14px; |
| padding: 16px; |
| display: flex; |
| flex-direction: column; |
| gap: 12px; |
| min-height: 0; |
| } |
|
|
| .roster__title { |
| font-size: 13px; |
| font-weight: 600; |
| text-transform: uppercase; |
| letter-spacing: 0.06em; |
| color: var(--text-dim); |
| margin: 0; |
| } |
|
|
| .roster__list { |
| list-style: none; |
| margin: 0; |
| padding: 0; |
| display: flex; |
| flex-direction: column; |
| gap: 4px; |
| overflow-y: auto; |
| } |
|
|
| .roster__item { |
| padding: 6px 10px; |
| border-radius: 8px; |
| font-size: 14px; |
| color: var(--text); |
| } |
|
|
| .roster__item--me { |
| background: rgba(255, 91, 138, 0.18); |
| color: var(--accent-soft); |
| font-weight: 600; |
| } |
|
|
| .chat { |
| display: flex; |
| flex-direction: column; |
| background: var(--bg-card); |
| border: 1px solid var(--border); |
| border-radius: 14px; |
| min-height: 0; |
| overflow: hidden; |
| } |
|
|
| .chat__log { |
| list-style: none; |
| margin: 0; |
| padding: 16px; |
| display: flex; |
| flex-direction: column; |
| gap: 10px; |
| overflow-y: auto; |
| flex: 1; |
| } |
|
|
| .chat__system { |
| align-self: center; |
| font-size: 12px; |
| color: var(--text-dim); |
| font-style: italic; |
| } |
|
|
| .chat__message { |
| display: flex; |
| flex-direction: column; |
| gap: 2px; |
| padding: 8px 12px; |
| border-radius: 10px; |
| background: var(--bg-soft); |
| max-width: 80%; |
| word-wrap: break-word; |
| } |
|
|
| .chat__message--me { |
| background: rgba(255, 91, 138, 0.15); |
| align-self: flex-end; |
| } |
|
|
| .chat__author { |
| font-size: 12px; |
| color: var(--text-dim); |
| font-weight: 600; |
| } |
|
|
| .chat__text { |
| font-size: 15px; |
| white-space: pre-wrap; |
| } |
|
|
| .composer { |
| display: flex; |
| gap: 8px; |
| padding: 12px; |
| border-top: 1px solid var(--border); |
| background: var(--bg-soft); |
| } |
|
|
| .composer .input { |
| flex: 1; |
| } |
|
|
| @media (max-width: 720px) { |
| .layout { |
| grid-template-columns: 1fr; |
| } |
| .roster { |
| order: 2; |
| } |
| } |
|
|