Files
sprintpadawan/static/styles/main.css
T
atridad 16bed1b8c0 First pass at basic functionality.
This PR introduces the beginnings of Sprint Padawan.

Reviewed-on: #1
2026-05-02 02:01:53 -06:00

1365 lines
27 KiB
CSS

/* reset */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* tokens */
:root {
--bg: #0d0d12;
--bg-surface: #15151e;
--bg-surface-hover: #1c1c28;
--border: #232332;
--border-accent: rgba(99, 102, 241, 0.4);
--text-primary: #f8fafc;
--text-secondary: #94a3b8;
--text-muted: #64748b;
--accent: #6366f1; /* Indigo */
--accent-hover: #4f46e5;
--accent-glow: rgba(99, 102, 241, 0.15);
--success-bg: rgba(16, 185, 129, 0.05);
--success-border: rgba(16, 185, 129, 0.2);
--success-text: #10b981;
--success-label: #34d399;
--radius-sm: 8px;
--radius-md: 14px;
--radius-lg: 24px;
--radius-full: 9999px;
--shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--shadow-btn: 0 0 30px var(--accent-glow);
--font: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
--font-heading: "Outfit", "Inter", sans-serif;
--font-mono: "JetBrains Mono", monospace;
}
/* base */
html {
color-scheme: dark;
}
body {
font-family: var(--font);
background-color: var(--bg);
color: var(--text-primary);
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 2rem;
line-height: 1.6;
}
/* card */
.card {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 3.5rem 3rem;
max-width: 480px;
width: 100%;
text-align: center;
position: relative;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
/* app shell body — reset centering, fill viewport */
body.app-body {
display: block;
padding: 0;
min-height: 100vh;
height: 100vh;
overflow: hidden;
}
/* top glow line */
.card::before {
content: "";
position: absolute;
top: 0;
left: 10%;
right: 10%;
height: 1px;
background: linear-gradient(90deg, transparent, var(--accent), transparent);
opacity: 0.6;
}
/* logo / wordmark */
.logo {
display: inline-flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 1.25rem;
}
.logo-icon {
width: 36px;
height: 36px;
border-radius: var(--radius-sm);
background: linear-gradient(135deg, var(--accent), #6366f1);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.1rem;
box-shadow: 0 0 16px var(--accent-glow);
}
/* heading */
h1 {
font-size: 1.875rem;
font-weight: 700;
letter-spacing: -0.03em;
color: var(--text-primary);
line-height: 1.2;
}
h1 span {
background: linear-gradient(135deg, #c4b5fd, var(--accent));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.subtitle {
font-size: 0.9rem;
color: var(--text-secondary);
margin-top: 0.4rem;
margin-bottom: 2.25rem;
}
/* divider */
.divider {
height: 1px;
background: var(--border);
margin: 2rem 0;
}
/* button */
.ping-btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: linear-gradient(135deg, var(--accent), #6366f1);
color: #fff;
font-family: var(--font);
font-size: 0.9rem;
font-weight: 600;
padding: 0.65rem 1.6rem;
border: none;
border-radius: var(--radius-md);
cursor: pointer;
letter-spacing: 0.01em;
transition:
opacity 0.2s ease,
transform 0.15s ease,
box-shadow 0.2s ease;
box-shadow: var(--shadow-btn);
position: relative;
overflow: hidden;
}
.ping-btn::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(rgba(255, 255, 255, 0.12), transparent);
pointer-events: none;
}
.ping-btn:hover {
opacity: 0.9;
box-shadow: 0 0 32px var(--accent-glow);
transform: translateY(-1px);
}
.ping-btn:active {
transform: scale(0.97) translateY(0);
}
.ping-btn.htmx-request {
opacity: 0.6;
cursor: wait;
transform: none;
box-shadow: none;
}
/* ping result area */
#ping-result {
margin-top: 1.75rem;
min-height: 3rem;
display: flex;
align-items: center;
justify-content: center;
}
/* result box */
.result-box {
background: var(--success-bg);
border: 1px solid var(--success-border);
border-radius: var(--radius-md);
padding: 0.85rem 1.5rem;
width: 100%;
text-align: left;
display: flex;
align-items: center;
gap: 1rem;
animation: fadeSlideIn 0.25s ease forwards;
}
.result-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--success-text);
box-shadow: 0 0 8px var(--success-text);
flex-shrink: 0;
animation: pulse 2s ease infinite;
}
.result-content {
display: flex;
flex-direction: column;
gap: 0.1rem;
}
.result-label {
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--success-label);
}
.result-message {
font-family: var(--font-mono);
font-size: 0.9rem;
color: var(--success-text);
}
/* stats row */
.stats {
display: flex;
gap: 1rem;
margin-top: 2rem;
}
.stat {
flex: 1;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 0.85rem 1rem;
transition:
background 0.2s ease,
border-color 0.2s ease;
}
.stat:hover {
background: var(--bg-surface-hover);
border-color: var(--border-accent);
}
.stat-value {
font-size: 1.25rem;
font-weight: 700;
color: var(--text-primary);
font-family: var(--font-mono);
}
.stat-label {
font-size: 0.75rem;
color: var(--text-muted);
margin-top: 0.1rem;
}
/* footer */
footer {
margin-top: 2.5rem;
font-size: 0.78rem;
color: var(--text-muted);
display: flex;
align-items: center;
gap: 0.4rem;
}
footer a {
color: var(--text-secondary);
text-decoration: none;
transition: color 0.2s;
}
footer a:hover {
color: var(--accent);
}
/* animations */
@keyframes fadeSlideIn {
from {
opacity: 0;
transform: translateY(6px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.4;
}
}
/* scrollbar */
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 99px;
}
/* Auth */
/* body variant — keeps the grid bg from body, just re-centers */
.auth-body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 2rem;
}
/* narrower card */
.auth-card {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-card);
padding: 2.5rem 2.25rem;
max-width: 420px;
width: 100%;
text-align: center;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
position: relative;
overflow: hidden;
}
.auth-card::before {
content: "";
position: absolute;
top: 0;
left: 10%;
right: 10%;
height: 1px;
background: linear-gradient(90deg, transparent, var(--accent), transparent);
opacity: 0.6;
}
/* logo row */
.auth-logo {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
margin-bottom: 1.25rem;
}
/* headings */
.auth-title {
font-size: 1.6rem;
font-weight: 700;
letter-spacing: -0.03em;
color: var(--text-primary);
line-height: 1.2;
margin-bottom: 0.35rem;
}
.auth-subtitle {
font-size: 0.875rem;
color: var(--text-secondary);
margin-bottom: 2rem;
}
/* form layout */
.auth-form {
display: flex;
flex-direction: column;
gap: 1.25rem;
text-align: left;
}
.form-group {
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.form-label {
font-size: 0.8rem;
font-weight: 600;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.07em;
}
.form-input {
width: 100%;
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 0.7rem 1rem;
color: var(--text-primary);
font-family: var(--font);
font-size: 0.95rem;
transition:
border-color 0.2s ease,
box-shadow 0.2s ease;
}
.form-input::placeholder {
color: var(--text-muted);
}
.form-input:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-glow);
}
/* error message box */
.form-error {
background: rgba(239, 68, 68, 0.08);
border: 1px solid rgba(239, 68, 68, 0.25);
border-radius: var(--radius-md);
padding: 0.7rem 1rem;
font-size: 0.85rem;
color: #f87171;
display: flex;
gap: 0.5rem;
align-items: center;
}
/* full-width primary button */
.btn-primary {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
background: var(--accent);
color: #fff;
font-family: var(--font);
font-size: 0.95rem;
font-weight: 600;
padding: 0.85rem;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: var(--radius-md);
cursor: pointer;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.btn-primary:hover {
background: var(--accent-hover);
transform: translateY(-1px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}
.btn-primary:active {
transform: translateY(0);
}
/* footer link line below the card */
.auth-footer {
margin-top: 1.5rem;
font-size: 0.85rem;
color: var(--text-muted);
text-align: center;
}
.auth-footer a {
color: var(--accent);
text-decoration: none;
transition: opacity 0.2s;
}
.auth-footer a:hover {
opacity: 0.8;
}
/* "or" divider */
.auth-divider {
display: flex;
align-items: center;
gap: 0.75rem;
color: var(--text-muted);
font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
content: "";
flex: 1;
height: 1px;
background: var(--border);
}
/* Dashboard */
.app-shell {
display: block;
height: 100vh;
width: 100%;
overflow: hidden;
background: #09090b;
}
.brand-mark {
display: flex;
align-items: center;
gap: 0.75rem;
text-decoration: none;
}
.brand-mark .logo-icon {
width: 32px;
height: 32px;
background: linear-gradient(135deg, var(--accent), #4f46e5);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.1rem;
font-weight: bold;
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
flex-shrink: 0;
}
.brand-mark .logo-text {
font-family: var(--font-heading);
font-size: 1.15rem;
font-weight: 600;
letter-spacing: -0.02em;
color: var(--text-primary);
}
.brand-mark .logo-text span {
color: var(--accent);
}
.user-row {
display: flex;
align-items: center;
gap: 0.65rem;
padding: 0.6rem 0.75rem;
border-radius: var(--radius-md);
}
.user-avatar {
width: 32px;
height: 32px;
border-radius: 8px;
background: #27272a;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-primary);
font-weight: 600;
font-size: 0.85rem;
flex-shrink: 0;
}
.user-info {
display: flex;
flex-direction: column;
gap: 0.1rem;
overflow: hidden;
flex: 1;
}
.user-name {
font-size: 0.85rem;
font-weight: 600;
color: var(--text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.user-role {
font-size: 0.72rem;
color: var(--text-muted);
}
.sign-out-btn {
width: 100%;
margin-top: 0.5rem;
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.55rem 0.75rem;
border-radius: var(--radius-md);
background: transparent;
border: 1px solid var(--border);
color: var(--text-secondary);
font-size: 0.85rem;
font-family: var(--font);
cursor: pointer;
transition: all 0.15s;
}
.sign-out-btn:hover {
border-color: rgba(239, 68, 68, 0.4);
color: #f87171;
background: rgba(239, 68, 68, 0.06);
}
/* main content area */
.main-content {
display: flex;
flex-direction: column;
overflow-y: auto;
background: #0d0d12;
min-height: 100vh;
}
.topbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 2.5rem;
border-bottom: 1px solid #18181b;
background: rgba(13, 13, 18, 0.94);
backdrop-filter: blur(16px);
flex-shrink: 0;
position: sticky;
top: 0;
z-index: 5;
gap: 1rem;
}
.topbar-brand,
.topbar-actions {
display: flex;
align-items: center;
gap: 0.75rem;
}
.topbar-brand {
min-width: 0;
}
.topbar-title {
font-size: 1rem;
font-weight: 600;
color: var(--text-primary);
}
.room-title {
max-width: 24rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.topbar-btn {
width: auto;
padding: 0.5rem 1rem;
}
.topbar-user {
display: inline-flex;
align-items: center;
gap: 0.7rem;
min-height: 44px;
padding: 0.3rem 0.85rem 0.3rem 0.3rem;
border-radius: var(--radius-full);
border: 1px solid var(--border);
background: rgba(255, 255, 255, 0.02);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.topbar-user-name {
font-size: 0.85rem;
font-weight: 600;
color: var(--text-secondary);
line-height: 1;
}
.topbar-user .user-avatar {
width: 38px;
height: 38px;
border-radius: 16px;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.04);
color: var(--text-primary);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.topbar-link-btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 40px;
padding: 0.55rem 0.9rem;
border-radius: var(--radius-full);
background: transparent;
border: 1px solid var(--border);
color: var(--text-secondary);
font-size: 0.85rem;
font-family: var(--font);
font-weight: 600;
cursor: pointer;
transition: all 0.15s;
}
.topbar-link-btn:hover {
border-color: rgba(239, 68, 68, 0.4);
color: #f87171;
background: rgba(239, 68, 68, 0.06);
}
.page-content {
padding: 2rem;
flex: 1;
max-width: 900px;
width: 100%;
margin: 0 auto;
}
/* welcome hero */
.welcome-hero {
padding: 2rem;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
margin-bottom: 2rem;
position: relative;
overflow: hidden;
}
.welcome-hero::before {
content: "";
position: absolute;
top: 0;
left: 10%;
right: 10%;
height: 1px;
background: linear-gradient(90deg, transparent, var(--accent), transparent);
opacity: 0.6;
}
.welcome-greeting {
font-size: 1.6rem;
font-weight: 700;
letter-spacing: -0.02em;
margin-bottom: 0.35rem;
}
.welcome-greeting span {
background: linear-gradient(135deg, #c4b5fd, var(--accent));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.welcome-sub {
color: var(--text-secondary);
font-size: 0.9rem;
}
/* dashboard stat cards grid */
.dashboard-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
margin-bottom: 2rem;
}
.dash-card {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-card);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
padding: 1.25rem 1.5rem;
text-align: left;
position: relative;
overflow: hidden;
transition:
background 0.2s ease,
border-color 0.2s ease;
}
.dash-card:hover {
background: var(--bg-surface-hover);
border-color: var(--border-accent);
}
.dash-card-label {
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-muted);
margin-bottom: 0.5rem;
}
.dash-card-value {
font-size: 1.5rem;
font-weight: 700;
font-family: var(--font-mono);
color: var(--text-primary);
}
/* rooms grid */
.rooms-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1rem;
}
.room-card {
display: block;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 1.25rem 1.5rem;
text-decoration: none;
transition: all 0.15s;
position: relative;
}
.room-card:hover {
background: var(--bg-surface-hover);
border-color: var(--border-accent);
transform: translateY(-2px);
}
.room-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 0.75rem;
}
.room-name {
font-size: 1.1rem;
font-weight: 600;
color: var(--text-primary);
}
.room-code {
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--accent);
background: rgba(139, 92, 246, 0.12);
padding: 0.2rem 0.5rem;
border-radius: var(--radius-sm);
}
.room-meta {
display: flex;
gap: 1rem;
font-size: 0.8rem;
color: var(--text-secondary);
}
.room-owner-badge {
position: absolute;
top: 1rem;
right: 1rem;
font-size: 0.65rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--accent);
background: rgba(139, 92, 246, 0.15);
padding: 0.2rem 0.5rem;
border-radius: var(--radius-sm);
}
.empty-state {
text-align: center;
padding: 3rem;
color: var(--text-secondary);
}
/* modal */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(9, 9, 11, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
}
.modal {
background: #18181b;
border: 1px solid #27272a;
border-radius: var(--radius-lg);
padding: 2.5rem;
max-width: 420px;
width: 90%;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.modal-header h2 {
font-size: 1.25rem;
font-weight: 600;
color: var(--text-primary);
}
.modal-close {
background: #27272a;
border: none;
color: var(--text-secondary);
width: 28px;
height: 28px;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s;
}
.modal-close:hover {
background: #3f3f46;
color: var(--text-primary);
}
/* room detail */
.back-btn {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: var(--radius-md);
background: var(--bg-surface);
border: 1px solid var(--border);
color: var(--text-secondary);
text-decoration: none;
transition: all 0.15s;
}
.back-btn:hover {
background: var(--bg-surface-hover);
color: var(--text-primary);
}
.room-code-badge {
font-family: var(--font-mono);
font-size: 0.8rem;
color: var(--accent);
background: rgba(139, 92, 246, 0.12);
padding: 0.25rem 0.75rem;
border-radius: var(--radius-md);
}
.scale-badge {
font-size: 0.75rem;
color: var(--text-secondary);
background: var(--bg-surface);
padding: 0.25rem 0.75rem;
border-radius: var(--radius-md);
border: 1px solid var(--border);
}
.room-layout {
display: grid;
grid-template-columns: 1fr 240px;
gap: 1.5rem;
min-height: 400px;
}
.room-stream {
display: none;
}
.stories-panel,
.members-panel {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 1.25rem;
}
.panel-title {
font-size: 0.8rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-muted);
margin-bottom: 1rem;
}
.stories-list,
.members-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.story-card {
background: #18181b;
border: 1px solid #27272a;
border-radius: var(--radius-md);
padding: 1.25rem;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
cursor: default;
}
.story-card:hover {
border-color: #3f3f46;
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}
.story-revealed {
border-color: rgba(99, 102, 241, 0.2);
background: rgba(99, 102, 241, 0.03);
}
.story-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 0.75rem;
margin-bottom: 0.75rem;
}
.story-title {
font-size: 0.95rem;
font-weight: 500;
color: var(--text-primary);
flex: 1 1 auto;
word-break: break-word;
margin-top: 0.15rem; /* align text baseline with buttons */
}
.story-actions {
display: flex;
gap: 0.4rem;
align-items: center;
flex-wrap: wrap;
flex: 0 0 auto;
}
.story-action-form {
margin: 0;
}
.story-btn {
display: inline-flex;
align-items: center;
justify-content: center;
height: 26px;
padding: 0 0.6rem;
font-size: 0.75rem;
font-weight: 500;
border-radius: var(--radius-sm);
cursor: pointer;
transition: all 0.15s;
border: 1px solid transparent;
}
.story-btn-primary {
background: var(--accent);
color: white;
border-color: var(--accent);
}
.story-btn-primary:hover {
background: var(--accent-hover);
border-color: var(--accent-hover);
}
.story-btn-secondary {
background: transparent;
color: var(--text-secondary);
border-color: var(--border);
}
.story-btn-secondary:hover {
background: var(--bg-surface-hover);
color: var(--text-primary);
}
.story-badge {
display: inline-flex;
align-items: center;
justify-content: center;
height: 26px;
padding: 0 0.6rem;
font-size: 0.75rem;
font-weight: 500;
border-radius: var(--radius-sm);
}
.story-badge-active {
color: var(--success-text);
border: 1px solid var(--success-border);
background: var(--success-bg);
}
.story-badge-revealed {
color: var(--accent);
border: 1px solid rgba(139, 92, 246, 0.4);
background: rgba(139, 92, 246, 0.1);
}
.story-points {
font-family: var(--font-mono);
font-size: 1rem;
font-weight: 700;
color: var(--accent);
background: rgba(139, 92, 246, 0.15);
padding: 0.25rem 0.75rem;
border-radius: var(--radius-md);
}
.vote-form {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.vote-option {
background: #1c1c28;
border: 1px solid #2d2d3d;
border-radius: var(--radius-md);
padding: 0.5rem 0.85rem;
font-family: var(--font-mono);
font-size: 0.85rem;
color: var(--text-secondary);
cursor: pointer;
transition: all 0.2s;
}
.vote-option:hover {
background: var(--bg-surface-hover);
border-color: var(--accent);
color: var(--text-primary);
}
.vote-option.vote-selected {
border-color: var(--accent);
background: var(--accent);
color: #fff;
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.story-active {
border-color: rgba(16, 185, 129, 0.2);
background: rgba(16, 185, 129, 0.02);
}
.story-action-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 42px;
height: 42px;
padding: 0;
border-radius: 14px;
background: rgba(255, 255, 255, 0.02);
border: 1px solid var(--border);
color: var(--text-muted);
cursor: pointer;
transition: all 0.15s;
flex-shrink: 0;
}
.story-action-btn svg {
width: 16px;
height: 16px;
}
.story-action-btn:hover {
background: var(--bg-surface-hover);
color: var(--text-primary);
border-color: var(--border-accent);
transform: translateY(-1px);
}
.story-action-btn-toggle {
color: var(--accent);
border-color: rgba(99, 102, 241, 0.35);
background: rgba(99, 102, 241, 0.08);
}
.story-action-btn-toggle:hover {
color: #c7d2fe;
border-color: rgba(99, 102, 241, 0.5);
background: rgba(99, 102, 241, 0.16);
}
.story-action-btn-activate {
color: #f8fafc;
border-color: rgba(148, 163, 184, 0.26);
background: rgba(148, 163, 184, 0.08);
}
.story-action-btn-activate:hover {
color: #ffffff;
border-color: rgba(148, 163, 184, 0.42);
background: rgba(148, 163, 184, 0.16);
}
.story-action-btn-reset {
color: var(--success-text);
border-color: rgba(16, 185, 129, 0.26);
background: rgba(16, 185, 129, 0.06);
}
.story-action-btn-reset:hover {
color: #6ee7b7;
border-color: rgba(16, 185, 129, 0.4);
background: rgba(16, 185, 129, 0.14);
}
.story-action-btn.story-action-delete:hover {
border-color: rgba(239, 68, 68, 0.4);
color: #f87171;
background: rgba(239, 68, 68, 0.06);
}
.revealed-votes {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 0.75rem;
padding-top: 0.75rem;
border-top: 1px solid var(--border);
}
.revealed-vote {
display: flex;
align-items: center;
gap: 0.4rem;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 0.3rem 0.6rem;
}
.revealed-vote-user {
font-size: 0.8rem;
color: var(--text-secondary);
}
.revealed-vote-value {
font-family: var(--font-mono);
font-size: 0.85rem;
font-weight: 700;
color: var(--accent);
background: rgba(139, 92, 246, 0.15);
padding: 0.1rem 0.4rem;
border-radius: var(--radius-sm);
}
.member-row {
display: flex;
align-items: center;
gap: 0.65rem;
padding: 0.5rem;
border-radius: var(--radius-md);
}
.member-name {
font-size: 0.9rem;
color: var(--text-secondary);
}
/* SSE indicator */
.sse-indicator {
display: inline-flex;
align-items: center;
gap: 0.375rem;
font-size: 0.75rem;
font-weight: 500;
color: var(--text-muted);
padding: 0.25rem 0.5rem;
border-radius: var(--radius-full);
background: var(--bg-surface-hover);
border: 1px solid var(--border);
}
.sse-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--text-muted);
}
.sse-connected .sse-indicator {
color: var(--success-text);
background: var(--success-bg);
border-color: var(--success-border);
}
.sse-connected .sse-dot {
background: var(--success-text);
animation: pulse 2s ease infinite;
}
@media (max-width: 768px) {
.topbar {
padding: 1rem 1.1rem;
align-items: flex-start;
flex-direction: column;
}
.topbar-brand,
.topbar-actions {
width: 100%;
flex-wrap: wrap;
}
.topbar-actions {
justify-content: flex-start;
}
.page-content {
padding: 1.1rem;
}
.room-title {
max-width: 100%;
}
.topbar-user {
order: 2;
}
}