Files
ltbxd-actorle/assets/styles/app.css
thibaud-leclere 2e65b2805a feat: add login hint on start page for unauthenticated users
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 21:49:41 +02:00

681 lines
13 KiB
CSS

/* ============================================================
SUNRISE — Lumineux, éditorial, chaleureux
============================================================ */
*, *::before, *::after { box-sizing: border-box; }
:root {
--bg: #fef6ee;
--surface: #ffffff;
--surface-warm: #fff7ed;
--surface-tint: #ffedd5;
--orange: #ea580c;
--orange-mid: #f97316;
--orange-light: #fed7aa;
--text: #1c1917;
--text-muted: #78716c;
--text-faint: #a8a29e;
--border: #e8d5c0;
--border-warm: #fdba74;
--shadow-warm: rgba(180, 100, 30, 0.08);
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 18px;
--cell: 38px;
--cell-font: 15px;
--trigger-h: 28px;
}
body {
background-color: var(--bg);
font-family: 'Inter', sans-serif;
color: var(--text);
min-height: 100vh;
margin: 0;
}
.page-body {
padding: 0 16px;
box-sizing: border-box;
}
/* ── Game grid ── */
#actors {
border-collapse: separate;
border-spacing: 5px;
margin: 56px auto;
}
#actors td {
width: var(--cell);
height: var(--cell);
padding: 0;
text-align: center;
vertical-align: middle;
}
.letter-input {
width: var(--cell);
height: var(--cell);
text-align: center;
font-family: 'Inter', sans-serif;
font-size: var(--cell-font);
font-weight: 700;
border: 2px solid var(--border);
border-radius: var(--radius-sm);
text-transform: uppercase;
padding: 0;
background: var(--surface);
color: var(--text);
transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
box-shadow: 0 1px 3px var(--shadow-warm);
}
.letter-input:focus {
outline: none;
border-color: var(--orange);
box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}
.letter-highlighted {
background-color: var(--orange-light);
border-color: var(--orange);
color: var(--orange);
}
.letter-static {
width: var(--cell);
height: var(--cell);
text-align: center;
font-family: 'Inter', sans-serif;
font-size: var(--cell-font);
font-weight: 700;
text-transform: uppercase;
color: var(--text);
vertical-align: middle;
}
.separator-row td {
height: 12px;
padding: 0;
}
.separator-char {
height: 12px;
}
/* ── Popover ── */
.popover-trigger {
width: var(--cell);
height: var(--trigger-h);
border-radius: 6px;
border: none;
background: var(--orange);
cursor: pointer;
font-size: 14px;
font-weight: 600;
color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.15s;
box-shadow: 0 1px 3px var(--shadow-warm);
}
.popover-trigger:hover {
background: var(--orange-mid);
}
.actor-popover {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 10px 16px;
box-shadow: 0 4px 20px var(--shadow-warm);
z-index: 100;
font-size: 13px;
color: var(--text);
overflow-wrap: break-word;
word-wrap: break-word;
}
/* ── Auth pages ── */
.auth-container {
max-width: 420px;
margin: 80px auto;
padding: 40px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: 0 4px 32px var(--shadow-warm);
}
.auth-container h1 {
font-family: 'Fraunces', serif;
font-size: 26px;
font-weight: 700;
text-align: center;
margin: 0 0 28px;
letter-spacing: -0.3px;
color: var(--text);
}
.auth-container label {
display: block;
margin-bottom: 6px;
font-size: 13px;
font-weight: 600;
color: var(--text);
}
.auth-container input[type="email"],
.auth-container input[type="password"] {
width: 100%;
padding: 11px 14px;
margin-bottom: 16px;
border: 1.5px solid var(--border);
border-radius: var(--radius-sm);
font-size: 15px;
font-family: 'Inter', sans-serif;
background: var(--surface-warm);
color: var(--text);
transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-container input[type="email"]:focus,
.auth-container input[type="password"]:focus {
outline: none;
border-color: var(--orange);
box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}
.auth-container button[type="submit"] {
width: 100%;
padding: 12px;
background: var(--orange);
color: white;
border: none;
border-radius: 100px;
font-family: 'Inter', sans-serif;
font-size: 15px;
font-weight: 700;
cursor: pointer;
transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.auth-container button[type="submit"]:hover {
background: var(--orange-mid);
transform: translateY(-1px);
box-shadow: 0 6px 20px rgba(234, 88, 12, 0.3);
}
.auth-error {
background: #fef2f2;
color: #dc2626;
padding: 12px;
border-radius: var(--radius-sm);
margin-bottom: 16px;
font-size: 14px;
}
.auth-link {
text-align: center;
margin-top: 20px;
font-size: 13px;
color: var(--text-muted);
}
.auth-link a {
color: var(--orange);
font-weight: 600;
text-decoration: none;
}
.auth-link a:hover {
text-decoration: underline;
}
/* ── Navbar ── */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 40px;
height: 64px;
background: var(--surface);
border-bottom: 1px solid var(--border);
box-shadow: 0 1px 0 var(--border), 0 2px 12px var(--shadow-warm);
}
.navbar-brand {
font-family: 'Fraunces', serif;
font-weight: 700;
font-size: 22px;
letter-spacing: -0.3px;
color: var(--orange);
text-decoration: none;
}
.brand-prefix {
color: var(--text-muted);
}
.navbar-left,
.navbar-right {
display: flex;
align-items: center;
gap: 6px;
}
.navbar-item {
position: relative;
}
.navbar-icon {
background: none;
border: none;
cursor: pointer;
padding: 8px;
border-radius: 50%;
color: var(--text-muted);
display: flex;
align-items: center;
position: relative;
transition: background 0.15s, color 0.15s;
}
.navbar-icon:hover {
background: var(--surface-tint);
color: var(--orange);
}
/* ── Badge ── */
.badge {
position: absolute;
top: 2px;
right: 2px;
background: var(--orange);
color: white;
font-size: 10px;
font-weight: 700;
min-width: 16px;
height: 16px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
padding: 0 4px;
}
/* ── Dropdown ── */
.dropdown-menu {
position: absolute;
top: calc(100% + 8px);
right: 0;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
box-shadow: 0 8px 32px var(--shadow-warm), 0 2px 8px rgba(0, 0, 0, 0.06);
min-width: 210px;
z-index: 200;
padding: 6px;
}
.dropdown-header {
padding: 8px 12px;
font-size: 11px;
font-weight: 600;
color: var(--text-faint);
text-transform: uppercase;
letter-spacing: 0.8px;
border-bottom: 1px solid var(--border);
margin-bottom: 4px;
}
.dropdown-item {
display: block;
width: 100%;
padding: 9px 12px;
text-align: left;
background: none;
border: none;
cursor: pointer;
font-family: 'Inter', sans-serif;
font-size: 14px;
color: var(--text);
text-decoration: none;
border-radius: var(--radius-sm);
transition: background 0.12s, color 0.12s;
}
.dropdown-item:hover {
background: var(--surface-tint);
color: var(--orange);
}
.dropdown-empty {
padding: 12px 16px;
color: var(--text-faint);
font-size: 13px;
margin: 0;
}
/* ── Import status ── */
.import-status-item {
display: flex;
flex-direction: column;
}
.import-status-text {
display: block;
padding: 0 12px 8px;
font-size: 11px;
font-weight: 500;
line-height: 1.3;
}
.import-status-active {
color: var(--orange);
}
.import-status-completed {
color: #16a34a;
}
.import-status-failed {
color: #dc2626;
}
/* ── Modal ── */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.4);
display: flex;
align-items: center;
justify-content: center;
z-index: 300;
}
.modal-overlay[hidden] {
display: none;
}
.modal {
background: var(--surface);
border-radius: var(--radius-lg);
width: 100%;
max-width: 480px;
box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 28px;
border-bottom: 1px solid var(--border);
}
.modal-header h2 {
margin: 0;
font-size: 18px;
font-weight: 700;
color: var(--text);
}
.modal-close {
background: none;
border: none;
font-size: 22px;
cursor: pointer;
color: var(--text-muted);
padding: 0;
line-height: 1;
transition: color 0.12s;
}
.modal-close:hover {
color: var(--text);
}
.modal-body {
padding: 24px 28px;
}
.modal-body p {
margin: 0 0 16px;
color: var(--text-muted);
font-size: 14px;
}
.modal-footer {
padding: 16px 28px;
border-top: 1px solid var(--border);
text-align: right;
}
/* ── Buttons ── */
.btn {
padding: 9px 20px;
border: none;
border-radius: 100px;
font-family: 'Inter', sans-serif;
font-size: 14px;
font-weight: 600;
cursor: pointer;
text-decoration: none;
display: inline-flex;
align-items: center;
transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
background: var(--orange);
color: white;
}
.btn-primary:hover {
background: var(--orange-mid);
transform: translateY(-1px);
box-shadow: 0 4px 16px rgba(234, 88, 12, 0.25);
}
.btn-primary:disabled {
background: var(--orange-light);
color: var(--text-muted);
cursor: not-allowed;
transform: none;
box-shadow: none;
}
/* ── Modal feedback ── */
.modal-feedback {
margin-top: 12px;
padding: 10px 14px;
border-radius: var(--radius-sm);
font-size: 13px;
}
.modal-feedback.error {
background: #fef2f2;
color: #dc2626;
}
.modal-feedback.success {
background: #f0fdf4;
color: #16a34a;
}
/* ── Game card ── */
.game-container {
width: fit-content;
max-width: 100%;
margin: 56px auto;
padding: 24px 32px 32px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: 0 4px 32px var(--shadow-warm);
}
.game-container #actors {
margin: 0;
}
.hint-cell {
padding: 0;
position: sticky;
left: 5px;
z-index: 1;
background: var(--surface);
box-shadow:
-5px 0 0 var(--surface),
5px 0 0 var(--surface),
0 -5px 0 var(--surface),
0 5px 0 var(--surface),
-5px -5px 0 var(--surface),
5px -5px 0 var(--surface),
-5px 5px 0 var(--surface),
5px 5px 0 var(--surface);
}
.game-grid-scroll {
overflow-x: auto;
margin-top: 16px;
}
/* ── Game actions ── */
.game-actions {
display: flex;
justify-content: flex-start;
}
.btn-abandon {
padding: 7px 16px;
background: none;
color: #dc2626;
border: 1.5px solid #dc2626;
border-radius: 100px;
font-family: 'Inter', sans-serif;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-abandon:hover {
border-color: #dc2626;
color: #dc2626;
background: #fef2f2;
}
.game-start-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: calc(100vh - 64px - 80px);
}
.start-login-hint {
margin-top: 16px;
color: var(--text-muted);
font-size: 0.85rem;
}
.start-login-hint a {
color: var(--orange);
font-weight: 600;
text-decoration: none;
}
.start-login-hint a:hover {
text-decoration: underline;
}
.btn-start {
padding: 14px 32px;
font-size: 16px;
}
.start-loader {
display: none;
width: 48px;
height: 48px;
border: 4px solid rgba(255, 255, 255, 0.15);
border-top-color: #ff6b81;
border-radius: 50%;
animation: spin 0.7s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* ── Game footer ── */
.game-footer {
display: flex;
justify-content: flex-end;
margin-top: 8px;
}
.btn-bug-report {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 5px 12px;
font-family: 'Inter', sans-serif;
font-size: 12px;
font-weight: 500;
color: var(--text-faint);
text-decoration: none;
border-radius: 100px;
transition: color 0.15s, background 0.15s;
}
.btn-bug-report:hover {
color: var(--orange);
background: var(--surface-tint);
}
/* ── Responsive grid ── */
@media (max-width: 600px) {
:root {
--cell: 30px;
--cell-font: 12px;
--trigger-h: 22px;
}
.game-container {
padding: 16px 16px 24px;
}
}
@media (max-width: 420px) {
:root {
--cell: 24px;
--cell-font: 10px;
--trigger-h: 18px;
}
#actors {
border-spacing: 3px;
}
}