big version with draft order and weather cards

This commit is contained in:
2026-04-08 17:46:42 -04:00
parent 4034ca55cf
commit a99a1f32e3
8 changed files with 966 additions and 59 deletions

View File

@@ -18,12 +18,14 @@ body {
}
button,
input {
input,
select {
font: inherit;
}
input[type="number"],
input[type="text"] {
input[type="text"],
select {
width: 100%;
min-height: 2.8rem;
padding: 0.7rem 0.85rem;
@@ -58,6 +60,8 @@ button {
.scoreboard--bottom {
align-items: end;
position: relative;
z-index: 25;
}
.score-card {
@@ -91,6 +95,12 @@ button {
justify-content: space-between;
}
.score-card__identity {
display: flex;
align-items: center;
gap: 0.6rem;
}
.score-card__head h2,
.panel h1,
.panel h2,
@@ -103,6 +113,14 @@ button {
gap: 1rem;
}
.score-card__footer {
margin-top: 0.65rem;
padding-top: 0.55rem;
border-top: 1px solid rgba(255, 255, 255, 0.08);
color: rgba(231, 238, 247, 0.72);
font-size: 0.82rem;
}
.score-card__numbers div {
display: grid;
gap: 0.15rem;
@@ -113,10 +131,16 @@ button {
label span,
.log-list p,
.status-panel p,
.active-turn p {
.active-turn p,
.effect-empty {
color: rgba(231, 238, 247, 0.72);
}
.score-card__meta {
font-size: 0.82rem;
color: rgba(231, 238, 247, 0.7);
}
.score-card__numbers strong {
font-size: 1.35rem;
}
@@ -139,6 +163,7 @@ label span,
.game-area {
flex: 1;
position: relative;
display: grid;
grid-template-columns: minmax(0, 1.9fr) minmax(320px, 0.85fr);
gap: 0.85rem;
@@ -415,6 +440,21 @@ label span,
overflow: auto;
}
.draft-panel {
position: fixed;
top: 1rem;
right: 1rem;
width: max(320px, calc(((100vw - 2rem) - 0.85rem) * 0.3091));
max-width: calc(100vw - 2rem);
max-height: calc(100vh - 9.5rem);
overflow: auto;
z-index: 24;
border-color: rgba(255, 255, 255, 0.12);
background: rgba(9, 16, 29, 0.5);
backdrop-filter: blur(18px);
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
}
.modal-setup-grid,
.modal-grid {
display: grid;
@@ -503,10 +543,180 @@ label span,
color: rgba(231, 238, 247, 0.72);
}
.initiative-order-row {
display: flex;
flex-wrap: wrap;
gap: 0.55rem;
}
.initiative-pill {
padding: 0.45rem 0.7rem;
border-radius: 999px;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.08);
color: rgba(231, 238, 247, 0.76);
}
.initiative-pill--active {
border-color: color-mix(in srgb, var(--player-color) 62%, white);
box-shadow: 0 0 18px color-mix(in srgb, var(--player-color) 40%, transparent);
color: #f4f7fb;
}
.initiative-seat-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 0.8rem;
margin-top: 0.9rem;
}
.initiative-seat {
min-height: 8rem;
padding: 0.9rem;
border-radius: 1rem;
display: grid;
gap: 0.35rem;
text-align: left;
background: rgba(255, 255, 255, 0.06);
color: #f4f7fb;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.initiative-seat--taken {
opacity: 0.68;
}
.weather-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 0.9rem;
margin-top: 0.9rem;
}
.weather-card {
display: grid;
gap: 0.8rem;
padding: 0.95rem;
border-radius: 1rem;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.weather-card h2,
.weather-card p {
margin: 0;
}
.weather-card--drafted {
border-color: rgba(130, 224, 182, 0.55);
}
.weather-card--banned {
border-color: rgba(255, 128, 128, 0.45);
opacity: 0.72;
}
.weather-card__actions {
display: flex;
gap: 0.6rem;
flex-wrap: wrap;
}
.weather-key {
display: grid;
gap: 0.25rem;
color: rgba(231, 238, 247, 0.78);
font-size: 0.86rem;
}
.active-effects {
display: grid;
gap: 0.55rem;
margin-top: 0.65rem;
}
.effect-chip {
display: flex;
align-items: center;
min-height: 3rem;
padding: 0.75rem 0.9rem;
border-radius: 1rem;
background: linear-gradient(180deg, rgba(255, 208, 96, 0.14), rgba(255, 208, 96, 0.04));
border: 1px solid rgba(255, 208, 96, 0.2);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.effect-chip__title {
font-size: 1rem;
font-weight: 700;
color: #f4f7fb;
}
.weather-action {
flex: 1;
min-width: 0;
display: flex;
align-items: center;
gap: 0.7rem;
padding: 0.75rem 0.85rem;
border-radius: 0.95rem;
color: #f4f7fb;
border: 1px solid rgba(255, 255, 255, 0.12);
background: rgba(255, 255, 255, 0.06);
text-align: left;
}
.weather-action span {
display: grid;
gap: 0.12rem;
}
.weather-action strong {
display: block;
}
.weather-action__icon {
width: 2rem;
height: 2rem;
display: grid;
place-items: center;
border-radius: 999px;
font-size: 1rem;
line-height: 1;
background: rgba(255, 255, 255, 0.12);
flex: 0 0 auto;
}
.weather-action--draft {
background: linear-gradient(180deg, rgba(255, 208, 96, 0.2), rgba(255, 208, 96, 0.08));
border-color: rgba(255, 208, 96, 0.4);
}
.weather-action--draft .weather-action__icon {
background: rgba(255, 208, 96, 0.22);
}
.weather-action--ban {
background: linear-gradient(180deg, rgba(255, 110, 110, 0.16), rgba(255, 110, 110, 0.06));
border-color: rgba(255, 110, 110, 0.32);
}
.weather-action--ban .weather-action__icon {
background: rgba(255, 110, 110, 0.18);
}
.weather-action:hover {
transform: translateY(-1px);
}
.randomize-button {
width: 100%;
}
.finish-game-button {
width: 100%;
}
input[type="range"] {
width: 100%;
}