- A dead character, or a monster or NPC at 0 HP, is out of the fight: the server no longer sends it to players, target marks included, and it has no turn. Healing or reviving brings it straight back. - The DM's screen leaves the fallen out too until "Show dead" is ticked, which lists them in a group of their own, marked hidden. - Players see dead characters by name in a Fallen box. The player whose character is on turn in a battle gets "Try revive" there if that character is on their feet and knows a spell that revives, at a level they can cast. The dead come back at 1 HP. - Spells have a "Revives" tick in the campaign's spell list. Revivify and Raise Dead have it, in the library and in existing campaigns. - A dead character cannot be added to an encounter until revived. - All packages at version 1.8.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1293 lines
27 KiB
CSS
1293 lines
27 KiB
CSS
:root {
|
|
--bg: #131009;
|
|
--bg-elevated: #1b160e;
|
|
--bg-card: #221b12;
|
|
--bg-card-hover: #2a2116;
|
|
--bg-inset: #0e0b07;
|
|
--border: #4a3a24;
|
|
--border-soft: #362a1a;
|
|
--text: #ece1c8;
|
|
--text-muted: #b2a284;
|
|
--text-dim: #7c7159;
|
|
--accent: #c9a227;
|
|
--accent-strong: #e6c34a;
|
|
--accent-soft: rgba(201, 162, 39, 0.15);
|
|
--danger: #b23a3a;
|
|
--danger-strong: #d85454;
|
|
--danger-soft: rgba(178, 58, 58, 0.18);
|
|
--success: #5f8a4f;
|
|
--success-strong: #7ab266;
|
|
--arcane: #5c7fb0;
|
|
--arcane-strong: #7fa3d6;
|
|
--shadow-deep: 0 10px 30px rgba(0, 0, 0, 0.55);
|
|
--radius: 8px;
|
|
--font-display: 'Cinzel', Georgia, serif;
|
|
--font-body: 'Crimson Pro', Georgia, 'Times New Roman', serif;
|
|
}
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
:root {
|
|
/* This app is intentionally dark-themed only (D&D tavern-at-night aesthetic). */
|
|
}
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
background: radial-gradient(ellipse at top, #1a1510 0%, var(--bg) 55%, #0d0a06 100%);
|
|
color: var(--text);
|
|
font-family: var(--font-body);
|
|
font-size: 16px;
|
|
line-height: 1.5;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
#root {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
font-family: var(--font-display);
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
color: var(--accent-strong);
|
|
margin: 0 0 0.5em 0;
|
|
}
|
|
|
|
a {
|
|
color: var(--arcane-strong);
|
|
text-decoration: none;
|
|
}
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
p {
|
|
margin: 0 0 0.75em 0;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
select,
|
|
textarea {
|
|
font-family: var(--font-body);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg-inset);
|
|
}
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--border);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
/* ---------------------------------------------------------------------- */
|
|
/* Layout primitives */
|
|
/* ---------------------------------------------------------------------- */
|
|
|
|
.app-shell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
padding: 0.75rem 1.25rem;
|
|
background: linear-gradient(180deg, #1e1810 0%, #171209 100%);
|
|
border-bottom: 1px solid var(--border);
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 30;
|
|
}
|
|
|
|
.topbar-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
font-family: var(--font-display);
|
|
color: var(--accent-strong);
|
|
font-size: 1.15rem;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.topbar-brand .die {
|
|
font-size: 1.4rem;
|
|
filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.5));
|
|
}
|
|
|
|
.topbar-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.topbar-user {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
color: var(--text-muted);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.page {
|
|
flex: 1;
|
|
width: 100%;
|
|
max-width: 1080px;
|
|
margin: 0 auto;
|
|
padding: 1.5rem 1.25rem 4rem;
|
|
}
|
|
|
|
.page-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.page-header h1 {
|
|
margin-bottom: 0.15em;
|
|
}
|
|
|
|
.subtitle {
|
|
color: var(--text-muted);
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
/* ---------------------------------------------------------------------- */
|
|
/* Cards & ornamentation */
|
|
/* ---------------------------------------------------------------------- */
|
|
|
|
.card {
|
|
background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 1.25rem;
|
|
box-shadow: var(--shadow-deep);
|
|
position: relative;
|
|
}
|
|
|
|
.card::before,
|
|
.card::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 10px;
|
|
height: 10px;
|
|
border: 2px solid var(--accent);
|
|
opacity: 0.55;
|
|
}
|
|
.card::before {
|
|
top: -1px;
|
|
left: -1px;
|
|
border-right: none;
|
|
border-bottom: none;
|
|
}
|
|
.card::after {
|
|
bottom: -1px;
|
|
right: -1px;
|
|
border-left: none;
|
|
border-top: none;
|
|
}
|
|
|
|
.card + .card {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.card-title {
|
|
font-family: var(--font-display);
|
|
color: var(--accent);
|
|
font-size: 1rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
margin-bottom: 0.75rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
gap: 1rem;
|
|
}
|
|
.grid-cols-2 {
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
}
|
|
.grid-cols-3 {
|
|
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
|
|
}
|
|
|
|
/* ---------------------------------------------------------------------- */
|
|
/* Buttons */
|
|
/* ---------------------------------------------------------------------- */
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.4rem;
|
|
font-family: var(--font-display);
|
|
font-size: 0.85rem;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
padding: 0.6rem 1.1rem;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-elevated);
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
white-space: nowrap;
|
|
}
|
|
.btn:hover:not(:disabled) {
|
|
border-color: var(--accent);
|
|
color: var(--accent-strong);
|
|
transform: translateY(-1px);
|
|
}
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(160deg, var(--accent) 0%, #a8811c 100%);
|
|
border-color: var(--accent-strong);
|
|
color: #1a1410;
|
|
font-weight: 700;
|
|
}
|
|
.btn-primary:hover:not(:disabled) {
|
|
color: #1a1410;
|
|
box-shadow: 0 0 16px rgba(201, 162, 39, 0.45);
|
|
}
|
|
|
|
.btn-danger {
|
|
background: linear-gradient(160deg, var(--danger) 0%, #7a2626 100%);
|
|
border-color: var(--danger-strong);
|
|
color: #fbeaea;
|
|
}
|
|
|
|
.btn-ghost {
|
|
background: transparent;
|
|
border-color: transparent;
|
|
color: var(--text-muted);
|
|
}
|
|
.btn-ghost:hover:not(:disabled) {
|
|
border-color: var(--border);
|
|
}
|
|
|
|
.btn-block {
|
|
width: 100%;
|
|
}
|
|
|
|
.btn-lg {
|
|
padding: 0.9rem 1.5rem;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* Big dice-roll button for the character builder */
|
|
.btn-roll {
|
|
font-family: var(--font-display);
|
|
font-size: 1.3rem;
|
|
padding: 1.3rem 2rem;
|
|
border-radius: 12px;
|
|
background: radial-gradient(circle at 30% 20%, #3a2e18, #1c160c 70%);
|
|
border: 2px solid var(--accent);
|
|
color: var(--accent-strong);
|
|
box-shadow: 0 0 24px rgba(201, 162, 39, 0.25), inset 0 0 20px rgba(0, 0, 0, 0.5);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
.btn-roll:hover:not(:disabled) {
|
|
box-shadow: 0 0 32px rgba(201, 162, 39, 0.45), inset 0 0 20px rgba(0, 0, 0, 0.5);
|
|
transform: translateY(-2px);
|
|
}
|
|
.btn-roll:disabled {
|
|
opacity: 0.6;
|
|
cursor: wait;
|
|
}
|
|
|
|
/* ---------------------------------------------------------------------- */
|
|
/* Forms */
|
|
/* ---------------------------------------------------------------------- */
|
|
|
|
.field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.field label {
|
|
font-size: 0.8rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
input[type='text'],
|
|
input[type='email'],
|
|
input[type='password'],
|
|
input[type='number'],
|
|
select,
|
|
textarea {
|
|
background: var(--bg-inset);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
padding: 0.6rem 0.75rem;
|
|
color: var(--text);
|
|
}
|
|
input:focus,
|
|
select:focus,
|
|
textarea:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 3px var(--accent-soft);
|
|
}
|
|
|
|
select {
|
|
background: var(--bg-inset);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
padding: 0.6rem 0.75rem;
|
|
color: var(--text);
|
|
}
|
|
select option {
|
|
background: var(--bg-inset);
|
|
color: var(--text);
|
|
}
|
|
|
|
/* Native checkboxes/radios otherwise render as unstyled white boxes in most
|
|
browsers, breaking the dark theme — this keeps them small and on-brand
|
|
without a full custom-control rebuild. */
|
|
input[type='checkbox'],
|
|
input[type='radio'] {
|
|
accent-color: var(--accent);
|
|
width: 16px;
|
|
height: 16px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.checkbox-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* ---------------------------------------------------------------------- */
|
|
/* Badges / stat blocks */
|
|
/* ---------------------------------------------------------------------- */
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.3rem;
|
|
padding: 0.2rem 0.55rem;
|
|
border-radius: 999px;
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
border: 1px solid var(--border);
|
|
color: var(--text-muted);
|
|
}
|
|
.badge-dm {
|
|
border-color: var(--accent);
|
|
color: var(--accent-strong);
|
|
}
|
|
.badge-player {
|
|
border-color: var(--arcane);
|
|
color: var(--arcane-strong);
|
|
}
|
|
|
|
.stat-block {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.15rem;
|
|
background: var(--bg-inset);
|
|
border: 1px solid var(--border-soft);
|
|
border-radius: 8px;
|
|
padding: 0.6rem 0.4rem;
|
|
min-width: 64px;
|
|
}
|
|
.stat-block .stat-label {
|
|
font-size: 0.65rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--text-dim);
|
|
}
|
|
.stat-block .stat-value {
|
|
font-family: var(--font-display);
|
|
font-size: 1.4rem;
|
|
color: var(--accent-strong);
|
|
}
|
|
.stat-block .stat-sub {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.hp-bar-track {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 10px;
|
|
background: var(--bg-inset);
|
|
border: 1px solid var(--border-soft);
|
|
border-radius: 999px;
|
|
overflow: hidden;
|
|
}
|
|
.hp-bar-fill {
|
|
height: 100%;
|
|
background: var(--success-strong);
|
|
transition: width 0.3s ease, background-color 0.3s ease;
|
|
}
|
|
/* Color reflects the actual HP percentage instead of a fixed gradient, so a
|
|
combat tracker reads "healthy / bloodied / critical" at a glance. */
|
|
.hp-bar-fill.hp-bloodied {
|
|
background: var(--accent-strong);
|
|
}
|
|
.hp-bar-fill.hp-critical {
|
|
background: var(--danger-strong);
|
|
}
|
|
/* Temporary HP: a separate segment after the real HP. */
|
|
.hp-bar-fill.hp-temp {
|
|
background: var(--arcane-strong);
|
|
}
|
|
|
|
.divider {
|
|
border: none;
|
|
border-top: 1px solid var(--border-soft);
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
.error-text {
|
|
color: var(--danger-strong);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 2.5rem 1rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.spinner {
|
|
display: inline-block;
|
|
width: 1.4rem;
|
|
height: 1.4rem;
|
|
border: 3px solid var(--border);
|
|
border-top-color: var(--accent);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.roll-result {
|
|
font-family: var(--font-display);
|
|
font-size: 3rem;
|
|
color: var(--accent-strong);
|
|
text-shadow: 0 0 20px rgba(201, 162, 39, 0.5);
|
|
}
|
|
|
|
@keyframes rollPop {
|
|
0% {
|
|
transform: scale(0.4) rotate(-15deg);
|
|
opacity: 0;
|
|
}
|
|
60% {
|
|
transform: scale(1.1) rotate(5deg);
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
transform: scale(1) rotate(0deg);
|
|
}
|
|
}
|
|
.roll-result.animate {
|
|
animation: rollPop 0.4s ease-out;
|
|
}
|
|
|
|
/* Quick stats drawer */
|
|
.drawer-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
z-index: 90;
|
|
backdrop-filter: blur(2px);
|
|
}
|
|
.drawer {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: min(420px, 100vw);
|
|
background: linear-gradient(180deg, #1c160d 0%, #120e08 100%);
|
|
border-left: 1px solid var(--border);
|
|
box-shadow: -12px 0 40px rgba(0, 0, 0, 0.6);
|
|
z-index: 91;
|
|
overflow-y: auto;
|
|
padding: 1.25rem;
|
|
}
|
|
|
|
.fab-quickstats {
|
|
position: fixed;
|
|
bottom: 1.25rem;
|
|
right: 1.25rem;
|
|
z-index: 80;
|
|
border-radius: 999px;
|
|
width: 60px;
|
|
height: 60px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: radial-gradient(circle at 35% 30%, #3a2e18, #1c160c 70%);
|
|
border: 2px solid var(--accent);
|
|
color: var(--accent-strong);
|
|
font-size: 1.6rem;
|
|
cursor: pointer;
|
|
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(201, 162, 39, 0.3);
|
|
}
|
|
|
|
.mono {
|
|
font-family: 'Courier New', monospace;
|
|
}
|
|
|
|
.text-center {
|
|
text-align: center;
|
|
}
|
|
.flex-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
.flex-between {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.5rem;
|
|
}
|
|
.flex-wrap {
|
|
flex-wrap: wrap;
|
|
}
|
|
.gap-sm {
|
|
gap: 0.4rem;
|
|
}
|
|
.mt-sm {
|
|
margin-top: 0.5rem;
|
|
}
|
|
.mt-md {
|
|
margin-top: 1rem;
|
|
}
|
|
.mt-lg {
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
/* ---------------------------------------------------------------------- */
|
|
/* Info tooltips */
|
|
/* ---------------------------------------------------------------------- */
|
|
|
|
.info-tip {
|
|
position: relative;
|
|
display: inline-flex;
|
|
margin-left: 0.3rem;
|
|
}
|
|
.info-tip-trigger {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-dim);
|
|
cursor: help;
|
|
font-size: 0.85em;
|
|
padding: 0;
|
|
line-height: 1;
|
|
}
|
|
.info-tip-trigger:hover,
|
|
.info-tip-trigger:focus {
|
|
color: var(--accent-strong);
|
|
outline: none;
|
|
}
|
|
/* Placed by InfoTip.tsx against the viewport, so no scrolling container can clip it. */
|
|
.info-tip-bubble {
|
|
position: fixed;
|
|
transform: translateX(-50%);
|
|
width: max-content;
|
|
max-width: 260px;
|
|
background: var(--bg-inset);
|
|
border: 1px solid var(--accent);
|
|
border-radius: 6px;
|
|
padding: 0.6rem 0.75rem;
|
|
font-size: 0.8rem;
|
|
font-family: var(--font-body);
|
|
text-transform: none;
|
|
letter-spacing: normal;
|
|
color: var(--text);
|
|
box-shadow: var(--shadow-deep);
|
|
z-index: 200;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* ---------------------------------------------------------------------- */
|
|
/* Tables + pagination */
|
|
/* ---------------------------------------------------------------------- */
|
|
|
|
.table-wrap {
|
|
overflow-x: auto;
|
|
border: 1px solid var(--border-soft);
|
|
border-radius: var(--radius);
|
|
}
|
|
table.data-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.9rem;
|
|
}
|
|
table.data-table th,
|
|
table.data-table td {
|
|
padding: 0.55rem 0.75rem;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
}
|
|
table.data-table thead th {
|
|
background: var(--bg-inset);
|
|
color: var(--text-muted);
|
|
font-family: var(--font-display);
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
table.data-table tbody tr {
|
|
border-bottom: 1px solid var(--border-soft);
|
|
}
|
|
table.data-table tbody tr:last-child {
|
|
border-bottom: none;
|
|
}
|
|
table.data-table tbody tr:hover {
|
|
background: var(--bg-card-hover);
|
|
}
|
|
|
|
.pagination {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.75rem;
|
|
padding: 0.75rem 0;
|
|
}
|
|
.pagination-status {
|
|
color: var(--text-muted);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* ---------------------------------------------------------------------- */
|
|
/* Character builder live stats preview */
|
|
/* ---------------------------------------------------------------------- */
|
|
|
|
.build-layout {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 1rem;
|
|
}
|
|
@media (min-width: 900px) {
|
|
.build-layout {
|
|
grid-template-columns: 1fr 320px;
|
|
align-items: start;
|
|
}
|
|
.build-preview {
|
|
position: sticky;
|
|
top: 80px;
|
|
}
|
|
}
|
|
.preview-highlight {
|
|
color: var(--accent-strong);
|
|
font-weight: 700;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.page {
|
|
padding: 1rem 0.85rem 5rem;
|
|
}
|
|
.topbar {
|
|
padding: 0.6rem 0.85rem;
|
|
}
|
|
.roll-result {
|
|
font-size: 2.2rem;
|
|
}
|
|
}
|
|
|
|
/* ---------------------------------------------------------------------- */
|
|
/* Encounter screen */
|
|
/* ---------------------------------------------------------------------- */
|
|
|
|
.badge-friendly {
|
|
border-color: var(--success);
|
|
color: var(--success-strong);
|
|
}
|
|
.badge-neutral {
|
|
border-color: var(--border);
|
|
color: var(--text-muted);
|
|
}
|
|
.badge-hostile {
|
|
border-color: var(--danger);
|
|
color: var(--danger-strong);
|
|
}
|
|
.badge-live {
|
|
border-color: var(--success);
|
|
color: var(--success-strong);
|
|
}
|
|
|
|
.encounter-layout {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 1.25rem;
|
|
align-items: start;
|
|
}
|
|
@media (min-width: 960px) {
|
|
.encounter-layout {
|
|
grid-template-columns: minmax(0, 1fr) 330px;
|
|
}
|
|
}
|
|
|
|
.section-label {
|
|
font-family: var(--font-display);
|
|
color: var(--text-muted);
|
|
font-size: 0.8rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
margin: 0 0 0.5rem;
|
|
}
|
|
.card + .section-label,
|
|
.empty-state + .section-label {
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
/* One combatant. The left edge is colour-coded by who it is. */
|
|
.combatant {
|
|
border-left: 4px solid var(--border);
|
|
padding: 1rem 1.1rem;
|
|
}
|
|
.combatant-character {
|
|
border-left-color: var(--arcane);
|
|
}
|
|
.combatant-monster {
|
|
border-left-color: var(--danger);
|
|
}
|
|
.combatant-npc {
|
|
border-left-color: var(--success);
|
|
}
|
|
.combatant.is-active {
|
|
border-color: var(--accent-strong);
|
|
box-shadow: 0 0 0 1px var(--accent-strong), 0 0 22px rgba(201, 162, 39, 0.25), var(--shadow-deep);
|
|
}
|
|
.combatant.is-down {
|
|
opacity: 0.6;
|
|
}
|
|
/* The marked target stands out even when it is down or not on turn. */
|
|
.combatant.is-targeted {
|
|
opacity: 1;
|
|
border-color: var(--danger-strong);
|
|
box-shadow: 0 0 0 1px var(--danger-strong), 0 0 22px rgba(216, 84, 84, 0.3), var(--shadow-deep);
|
|
}
|
|
.target-marker {
|
|
color: var(--danger-strong);
|
|
font-family: var(--font-display);
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
.btn-target {
|
|
padding: 0.15rem 0.6rem;
|
|
font-size: 0.8rem;
|
|
}
|
|
.btn-target.is-on {
|
|
border-color: var(--danger-strong);
|
|
color: var(--danger-strong);
|
|
background: var(--danger-soft);
|
|
}
|
|
|
|
/* What players see of the dead: names, and a way to try to bring them back. */
|
|
.fallen-bar {
|
|
border-color: var(--danger);
|
|
}
|
|
|
|
/* The DM's attack bar stays in reach while scrolling the initiative order. */
|
|
.attack-bar {
|
|
position: sticky;
|
|
top: 4.5rem;
|
|
z-index: 20;
|
|
border-color: var(--danger-strong);
|
|
}
|
|
.attack-target {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.5rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
.attack-target-name {
|
|
font-family: var(--font-display);
|
|
}
|
|
.attack-bar-title {
|
|
font-family: var(--font-display);
|
|
font-size: 1.1rem;
|
|
color: var(--text);
|
|
}
|
|
.combatant-name {
|
|
font-family: var(--font-display);
|
|
font-size: 1.1rem;
|
|
color: var(--text);
|
|
}
|
|
.combatant-sub {
|
|
color: var(--text-muted);
|
|
font-size: 0.85rem;
|
|
}
|
|
.turn-marker {
|
|
color: var(--accent-strong);
|
|
font-family: var(--font-display);
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.stat-chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.4rem;
|
|
}
|
|
.stat-chip {
|
|
display: inline-flex;
|
|
align-items: baseline;
|
|
gap: 0.35rem;
|
|
background: var(--bg-inset);
|
|
border: 1px solid var(--border-soft);
|
|
border-radius: 6px;
|
|
padding: 0.2rem 0.55rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
.stat-chip span {
|
|
font-size: 0.65rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--text-dim);
|
|
}
|
|
.stat-chip b {
|
|
color: var(--accent-strong);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.condition-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
padding: 0.15rem 0.5rem;
|
|
border-radius: 999px;
|
|
font-size: 0.8rem;
|
|
border: 1px solid var(--danger);
|
|
color: var(--danger-strong);
|
|
background: var(--danger-soft);
|
|
}
|
|
.condition-chip button {
|
|
background: none;
|
|
border: none;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
padding: 0 0.1rem;
|
|
font-size: 0.85rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* At 0 HP: the death-save tallies and what can be done about them. */
|
|
.death-saves {
|
|
margin-top: 0.6rem;
|
|
padding: 0.6rem 0.75rem;
|
|
border: 1px solid var(--danger);
|
|
border-radius: 6px;
|
|
background: var(--danger-soft);
|
|
}
|
|
.death-saves.is-stable {
|
|
border-color: var(--border);
|
|
background: var(--bg-inset);
|
|
}
|
|
.death-tally {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: var(--text-muted);
|
|
}
|
|
.death-pips {
|
|
display: inline-flex;
|
|
gap: 0.25rem;
|
|
}
|
|
.death-pip {
|
|
width: 0.9rem;
|
|
height: 0.9rem;
|
|
padding: 0;
|
|
border-radius: 50%;
|
|
border: 2px solid var(--text-dim);
|
|
background: transparent;
|
|
}
|
|
button.death-pip {
|
|
cursor: pointer;
|
|
}
|
|
.death-pip.is-success {
|
|
border-color: var(--success-strong);
|
|
}
|
|
.death-pip.is-failure {
|
|
border-color: var(--danger-strong);
|
|
}
|
|
.death-pip.is-success.is-filled {
|
|
background: var(--success-strong);
|
|
}
|
|
.death-pip.is-failure.is-filled {
|
|
background: var(--danger-strong);
|
|
}
|
|
|
|
.combatant-details {
|
|
margin-top: 0.75rem;
|
|
padding-top: 0.75rem;
|
|
border-top: 1px solid var(--border-soft);
|
|
font-size: 0.92rem;
|
|
}
|
|
.combatant-details p {
|
|
margin: 0.3rem 0;
|
|
}
|
|
.detail-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 0.5rem;
|
|
padding: 0.2rem 0;
|
|
}
|
|
|
|
.reward-row {
|
|
padding: 0.55rem 0;
|
|
border-bottom: 1px solid var(--border-soft);
|
|
}
|
|
.reward-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
.reward-row.is-awarded {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.textarea-block {
|
|
display: block;
|
|
width: 100%;
|
|
resize: vertical;
|
|
}
|
|
|
|
/* ---------------------------------------------------------------------- */
|
|
/* Character builder: pick-then-confirm choices */
|
|
/* ---------------------------------------------------------------------- */
|
|
|
|
.step-intro {
|
|
color: var(--text-muted);
|
|
margin: 0 0 1rem;
|
|
}
|
|
|
|
.build-steps {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.4rem;
|
|
}
|
|
.build-steps .badge.is-done {
|
|
border-color: var(--accent);
|
|
color: var(--accent-strong);
|
|
}
|
|
.build-steps .badge.is-current {
|
|
border-color: var(--accent-strong);
|
|
background: var(--accent-soft);
|
|
color: var(--accent-strong);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.choice-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
|
|
gap: 0.75rem;
|
|
text-align: left;
|
|
}
|
|
.choice-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.4rem;
|
|
text-align: left;
|
|
font-family: var(--font-body);
|
|
font-size: 0.95rem;
|
|
color: var(--text);
|
|
background: var(--bg-inset);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 0.9rem 1rem;
|
|
cursor: pointer;
|
|
transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
|
|
}
|
|
.choice-card:hover {
|
|
border-color: var(--accent);
|
|
transform: translateY(-1px);
|
|
}
|
|
.choice-card:focus-visible {
|
|
outline: none;
|
|
box-shadow: 0 0 0 3px var(--accent-soft);
|
|
}
|
|
.choice-card.is-selected {
|
|
border-color: var(--accent-strong);
|
|
box-shadow: 0 0 0 1px var(--accent-strong), 0 0 18px rgba(201, 162, 39, 0.25);
|
|
background: linear-gradient(160deg, var(--bg-card-hover) 0%, var(--bg-inset) 100%);
|
|
}
|
|
.choice-card-title {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.5rem;
|
|
font-family: var(--font-display);
|
|
font-size: 1.1rem;
|
|
color: var(--accent-strong);
|
|
}
|
|
.choice-card-blurb {
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
}
|
|
.choice-card-facts {
|
|
color: var(--text-muted);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.step-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
margin-top: 1.25rem;
|
|
padding-top: 1rem;
|
|
border-top: 1px solid var(--border-soft);
|
|
text-align: left;
|
|
}
|
|
|
|
.stat-block.is-key {
|
|
border-color: var(--accent);
|
|
}
|
|
.key-marker {
|
|
color: var(--accent-strong);
|
|
font-size: 0.7rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
/* ---------------------------------------------------------------------- */
|
|
/* Dice roller — on every page, bottom-left (quick stats owns bottom-right) */
|
|
/* ---------------------------------------------------------------------- */
|
|
|
|
.fab-dice {
|
|
position: fixed;
|
|
bottom: 1.25rem;
|
|
left: 1.25rem;
|
|
z-index: 80;
|
|
border-radius: 999px;
|
|
width: 60px;
|
|
height: 60px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: radial-gradient(circle at 35% 30%, #3a2e18, #1c160c 70%);
|
|
border: 2px solid var(--accent);
|
|
color: var(--accent-strong);
|
|
font-size: 1.6rem;
|
|
cursor: pointer;
|
|
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(201, 162, 39, 0.3);
|
|
transition: transform 0.15s ease;
|
|
}
|
|
.fab-dice:hover {
|
|
transform: translateY(-2px) rotate(-8deg);
|
|
}
|
|
|
|
.dice-panel {
|
|
position: fixed;
|
|
bottom: calc(1.25rem + 60px + 0.75rem);
|
|
left: 1.25rem;
|
|
z-index: 85;
|
|
width: min(340px, calc(100vw - 2.5rem));
|
|
max-height: calc(100vh - 8rem);
|
|
overflow-y: auto;
|
|
background: linear-gradient(180deg, #1c160d 0%, #120e08 100%);
|
|
border: 1px solid var(--accent);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow-deep);
|
|
padding: 1rem;
|
|
}
|
|
|
|
.dice-choices {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 0.4rem;
|
|
}
|
|
.die-btn {
|
|
font-family: var(--font-display);
|
|
font-size: 0.95rem;
|
|
padding: 0.55rem 0;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-inset);
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
transition: border-color 0.15s ease, color 0.15s ease;
|
|
}
|
|
.die-btn:hover {
|
|
border-color: var(--accent);
|
|
color: var(--accent-strong);
|
|
}
|
|
.die-btn.is-selected {
|
|
border-color: var(--accent-strong);
|
|
background: var(--accent-soft);
|
|
color: var(--accent-strong);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.dice-label {
|
|
font-size: 0.7rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--text-dim);
|
|
}
|
|
|
|
.dice-result {
|
|
text-align: center;
|
|
min-height: 6.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0.75rem 0;
|
|
padding: 0.5rem;
|
|
background: var(--bg-inset);
|
|
border: 1px solid var(--border-soft);
|
|
border-radius: var(--radius);
|
|
}
|
|
.roll-result.is-crit {
|
|
color: var(--success-strong);
|
|
text-shadow: 0 0 20px rgba(122, 178, 102, 0.6);
|
|
}
|
|
.roll-result.is-fumble {
|
|
color: var(--danger-strong);
|
|
text-shadow: 0 0 20px rgba(216, 84, 84, 0.5);
|
|
}
|
|
.dice-callout {
|
|
font-family: var(--font-display);
|
|
font-size: 0.8rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
color: var(--success-strong);
|
|
}
|
|
.dice-callout.is-fumble {
|
|
color: var(--danger-strong);
|
|
}
|
|
.dice-breakdown {
|
|
color: var(--text-muted);
|
|
font-size: 0.85rem;
|
|
word-break: break-word;
|
|
}
|
|
.dice-history-row {
|
|
padding: 0.25rem 0;
|
|
border-top: 1px solid var(--border-soft);
|
|
font-size: 0.9rem;
|
|
}
|
|
.dice-history-dice {
|
|
color: var(--text-dim);
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
/* ---------------------------------------------------------------------- */
|
|
/* Character builder: story steps (motivation, abilities, background, look) */
|
|
/* ---------------------------------------------------------------------- */
|
|
|
|
.pick-group {
|
|
padding: 0.75rem 0;
|
|
border-top: 1px solid var(--border-soft);
|
|
}
|
|
.pick-group:first-of-type {
|
|
border-top: none;
|
|
}
|
|
.pick-group-label {
|
|
font-family: var(--font-display);
|
|
color: var(--accent);
|
|
font-size: 0.9rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
.pick-chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.4rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
.pick-chip {
|
|
font-family: var(--font-body);
|
|
font-size: 0.95rem;
|
|
padding: 0.35rem 0.8rem;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-inset);
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
transition: border-color 0.15s ease, color 0.15s ease;
|
|
}
|
|
.pick-chip:hover:not(:disabled) {
|
|
border-color: var(--accent);
|
|
}
|
|
.pick-chip.is-selected {
|
|
border-color: var(--accent-strong);
|
|
background: var(--accent-soft);
|
|
color: var(--accent-strong);
|
|
font-weight: 600;
|
|
}
|
|
.pick-chip:disabled {
|
|
opacity: 0.45;
|
|
cursor: not-allowed;
|
|
}
|
|
.pick-detail {
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
margin: 0.4rem 0 0;
|
|
}
|
|
|
|
.granted-ability {
|
|
padding: 0.4rem 0;
|
|
border-bottom: 1px solid var(--border-soft);
|
|
}
|
|
.granted-ability:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* Text the builder composed, shown read-only on the sheet. */
|
|
.composed-text {
|
|
margin: 0;
|
|
white-space: pre-wrap;
|
|
}
|