/* ============================================================ 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; } body { background-color: var(--bg); font-family: 'Inter', sans-serif; color: var(--text); min-height: 100vh; margin: 0; } /* ── Game grid ── */ #actors { border-collapse: separate; border-spacing: 5px; margin: 56px auto; } #actors td { width: 38px; height: 38px; text-align: center; vertical-align: middle; } .letter-input { width: 38px; height: 38px; text-align: center; font-family: 'Inter', sans-serif; font-size: 15px; 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); } /* ── Popover ── */ .popover-trigger { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; justify-content: center; transition: border-color 0.15s, color 0.15s, background 0.15s; box-shadow: 0 1px 3px var(--shadow-warm); } .popover-trigger:hover { border-color: var(--orange); color: var(--orange); background: var(--surface-tint); } .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); } /* ── 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; } .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; } /* ── Notifications ── */ .notifications-list { max-height: 300px; overflow-y: auto; } .notification-item { padding: 10px 16px; border-bottom: 1px solid var(--surface-warm); } .notification-item:last-child { border-bottom: none; } .notification-item p { margin: 0 0 3px; font-size: 13px; color: var(--text); } .notification-item time { font-size: 11px; color: var(--text-faint); } .notification-unread { background: var(--surface-warm); } /* ── 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 { max-width: fit-content; 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: 16px auto 0; } /* ── 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; justify-content: center; align-items: center; min-height: calc(100vh - 64px - 80px); } .btn-start { padding: 14px 32px; font-size: 16px; } /* ── 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); }