Add support for up to 6 players.
This commit is contained in:
@@ -488,6 +488,43 @@ h3 {
|
||||
0 1px 3px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
|
||||
/* This round's opponent gets a cooler outline than your own gold one — enough
|
||||
to pick them out of five other seats without competing with it. */
|
||||
.topbar-player.is-rival {
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.1),
|
||||
0 0 0 2px rgba(255, 120, 120, 0.75),
|
||||
0 1px 3px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
|
||||
/* Whoever the shop is waiting on, so a six-seat rail still shows the turn. */
|
||||
.topbar-player.is-turn {
|
||||
background: linear-gradient(180deg, rgba(255, 214, 102, 0.22), rgba(0, 0, 0, 0.28));
|
||||
}
|
||||
|
||||
/* Four or six pins won't fit at full size, so the rail tightens as it fills.
|
||||
Names ellipsis rather than wrap, keeping the topbar one row deep. */
|
||||
.topbar-players.count-4 .topbar-player,
|
||||
.topbar-players.count-6 .topbar-player {
|
||||
padding: 4px 9px;
|
||||
font-size: 0.82rem;
|
||||
gap: 5px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* Names still have to fit, but not so tight that "Robo Rookie" and "Robo
|
||||
Rival" both collapse to "Robo R…" and the seats stop being tellable apart. */
|
||||
.topbar-players.count-6 .topbar-name {
|
||||
max-width: 12ch;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.chip-rival {
|
||||
filter: drop-shadow(0 0 3px rgba(255, 120, 120, 0.8));
|
||||
}
|
||||
|
||||
.topbar-name {
|
||||
font-weight: 800;
|
||||
}
|
||||
@@ -921,6 +958,14 @@ h3 {
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
|
||||
/* What's still standing between the host and a startable game. */
|
||||
.lobby-warn {
|
||||
text-align: center;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 700;
|
||||
color: #ffcf8f;
|
||||
}
|
||||
|
||||
/* ---------- pack picker ---------- */
|
||||
|
||||
.pack-grid {
|
||||
@@ -2054,6 +2099,56 @@ h3 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* With four or six players a round holds several battles at once; these tabs
|
||||
switch the arena between them. They read as folder tabs sitting on top of
|
||||
the battlefield, with your own fight marked. */
|
||||
.battle-tabs {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.battle-tab {
|
||||
border: 0;
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
font-size: 0.82rem;
|
||||
font-weight: 700;
|
||||
color: inherit;
|
||||
padding: 5px 14px;
|
||||
border-radius: 999px;
|
||||
background: rgba(0, 0, 0, 0.28);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
|
||||
opacity: 0.72;
|
||||
transition:
|
||||
opacity 0.15s ease,
|
||||
background 0.15s ease;
|
||||
}
|
||||
|
||||
.battle-tab:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.battle-tab.is-active {
|
||||
opacity: 1;
|
||||
background: rgba(255, 255, 255, 0.14);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.12),
|
||||
0 1px 3px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
|
||||
.battle-tab.is-mine {
|
||||
color: var(--gold);
|
||||
}
|
||||
|
||||
.battle-tab.is-mine.is-active {
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.12),
|
||||
0 0 0 2px var(--gold);
|
||||
}
|
||||
|
||||
.battle-names {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@@ -2844,6 +2939,33 @@ h3 {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* How the rest of the field did this round, under your own result. */
|
||||
.battle-result-others {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
padding-top: 12px;
|
||||
margin-top: 4px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.12);
|
||||
font-size: 0.88rem;
|
||||
}
|
||||
|
||||
.battle-result-others-title {
|
||||
font-size: 0.72rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.battle-result-other {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* The toolbar's "advance the round" button stands out from the ghost controls. */
|
||||
.battle-next {
|
||||
margin-left: 2px;
|
||||
@@ -2889,6 +3011,7 @@ h3 {
|
||||
|
||||
.score-line {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
font-size: 1.1rem;
|
||||
@@ -2901,6 +3024,26 @@ h3 {
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.score-line.is-winner {
|
||||
background: rgba(255, 214, 102, 0.1);
|
||||
border-radius: 8px;
|
||||
padding: 4px 8px;
|
||||
margin: 0 -8px;
|
||||
}
|
||||
|
||||
/* The rounds a player took — the countback that settles a tie, spelled out. */
|
||||
.score-rounds {
|
||||
font-size: 0.78rem;
|
||||
font-weight: 600;
|
||||
margin-left: auto;
|
||||
margin-right: 8px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.score-name {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* ---------- toasts & banners ---------- */
|
||||
|
||||
.toast {
|
||||
|
||||
Reference in New Issue
Block a user