More random UI fixes.

This commit is contained in:
Greyson Parrelli
2026-07-24 11:23:38 -04:00
parent 6558806ba0
commit add2218978
6 changed files with 92 additions and 38 deletions
+58 -10
View File
@@ -1246,6 +1246,24 @@ h3 {
animation: pulse 1.6s ease-in-out infinite;
}
/* The "it's your turn" prompt as a solid golden badge with light text, so it
reads as a call to action rather than bare pulsing text. */
.shop-status-pill {
display: inline-block;
font-family: var(--font-display);
font-size: 0.92em;
color: #fff8e6;
background: linear-gradient(180deg, var(--gold), var(--gold-deep));
padding: 0.22em 0.85em;
border-radius: 999px;
border: 2px solid rgba(255, 255, 255, 0.5);
text-shadow: 0 1px 3px rgba(120, 78, 8, 0.5);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.5),
inset 0 -4px 10px rgba(150, 100, 20, 0.3),
0 4px 14px rgba(0, 0, 0, 0.35);
}
@keyframes pulse {
0%,
100% {
@@ -2601,22 +2619,52 @@ h3 {
.deck-peek-cards {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
max-width: min(60vw, 560px);
/* Read right-to-left like the arrangement screen: the first (top) card sits
on the right and later pets flow left. */
direction: rtl;
}
/* Keep each card's own contents left-to-right despite the rtl row. */
/* first-right: the first pet sits on the right (matches your own arrangement).
first-left: the first pet sits on the left (a rival, who faces you from the
right of the board). The "⚔️ first" marker is the first DOM child, so it
lands next to the first card at whichever end. */
.deck-peek-cards.first-right {
direction: rtl;
}
.deck-peek-cards.first-left {
direction: ltr;
}
/* Keep each card's own contents left-to-right regardless of row direction. */
.deck-peek-cards > * {
direction: ltr;
}
/* Backdrop behind the toolbar deck-peek: any click outside dismisses it. Sits
below the popover (z 60) but above the board. */
.deck-peek-backdrop {
position: fixed;
inset: 0;
z-index: 55;
/* Compact echo of the arrangement phase's "⚔️ first" indicator. */
.deck-peek-first {
display: flex;
align-items: center;
align-self: stretch;
font-family: var(--font-display);
font-size: 0.68rem;
color: var(--gold);
white-space: nowrap;
padding: 0 2px;
}
/* Deck peek shown as a centered modal (shop-phase rival deck): cap the width so
a wide lineup wraps instead of running off-screen. */
.deck-peek-modal {
padding: 20px;
gap: 12px;
max-width: min(92vw, 720px);
}
.deck-peek-modal .deck-peek-cards {
max-width: 100%;
justify-content: flex-start;
}
.deck-peek-modal .deck-peek-label {
font-size: 0.85rem;
}