Various UX improvements.
This commit is contained in:
+112
-4
@@ -1021,6 +1021,10 @@ h3 {
|
||||
clipped just under the name. */
|
||||
flex: 1 1 auto;
|
||||
display: flex;
|
||||
/* Stack multiple abilities (e.g. Squirrel's Buy and Sell) vertically rather
|
||||
than side by side. */
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
/* Center short text in the band, but fall back to top-aligned when the text
|
||||
is taller than the band, so the leading words are never the ones clipped. */
|
||||
align-items: safe center;
|
||||
@@ -1028,6 +1032,11 @@ h3 {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Each ability on its own line within the effect band. */
|
||||
.card-effect-line {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.card-lg .card-effect {
|
||||
font-size: 0.63rem;
|
||||
}
|
||||
@@ -1224,6 +1233,104 @@ h3 {
|
||||
inset 0 0 0 1px rgba(246, 201, 78, 0.06);
|
||||
}
|
||||
|
||||
/* Coins shown as big golden discs above the buy row. */
|
||||
.shop-coins {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 40px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.coin-disc {
|
||||
font-size: 1.9rem;
|
||||
line-height: 1;
|
||||
filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
|
||||
animation: coin-pop 0.25s ease;
|
||||
}
|
||||
|
||||
@keyframes coin-pop {
|
||||
from {
|
||||
transform: scale(0.4);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.coin-empty {
|
||||
font-style: italic;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* "Your turn" flourish across the shop. */
|
||||
.turn-banner {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
pointer-events: none;
|
||||
z-index: 50;
|
||||
font-family: var(--font-display);
|
||||
font-size: clamp(2.5rem, 9vw, 6rem);
|
||||
color: var(--gold);
|
||||
text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
|
||||
animation: turn-flash 1.4s ease forwards;
|
||||
}
|
||||
|
||||
@keyframes turn-flash {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: scale(0.6);
|
||||
}
|
||||
20% {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
75% {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
transform: scale(1.15);
|
||||
}
|
||||
}
|
||||
|
||||
/* Pass button nudge when there's nothing left to buy. */
|
||||
.btn-pass-hint {
|
||||
border-color: var(--gold);
|
||||
color: var(--gold);
|
||||
box-shadow: 0 0 0 1px var(--gold), 0 0 14px rgba(246, 201, 78, 0.5);
|
||||
animation: pass-pulse 1.4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes pass-pulse {
|
||||
50% {
|
||||
box-shadow: 0 0 0 1px var(--gold), 0 0 22px rgba(246, 201, 78, 0.8);
|
||||
}
|
||||
}
|
||||
|
||||
/* Trigger explainer under the hover magnifier. */
|
||||
.trigger-gloss {
|
||||
margin-top: 8px;
|
||||
max-width: 200px;
|
||||
background: rgba(0, 0, 0, 0.82);
|
||||
border: 1px solid rgba(246, 201, 78, 0.35);
|
||||
border-radius: 10px;
|
||||
padding: 8px 10px;
|
||||
font-size: 0.78rem;
|
||||
line-height: 1.35;
|
||||
color: var(--parchment, #eee);
|
||||
}
|
||||
|
||||
.trigger-gloss-line + .trigger-gloss-line {
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.trigger-gloss strong {
|
||||
color: var(--gold);
|
||||
}
|
||||
|
||||
/* Mid-battle decision panel (Golden pack: Nurse Shark). */
|
||||
.battle-decision-options {
|
||||
display: flex;
|
||||
@@ -1517,9 +1624,9 @@ h3 {
|
||||
border: 1px solid rgba(0, 0, 0, 0.3);
|
||||
border-radius: 20px;
|
||||
/* Roomy top/bottom padding: pets keep their central row while set-aside
|
||||
cards fan above and attached foods fan below. The bottom needs more room
|
||||
since a pet can carry several foods. */
|
||||
padding: 132px 14px 208px;
|
||||
cards fan above and attached foods fan below. The bottom needs plenty of
|
||||
room since a pet can carry a big stack of apples (Manatee, Fire Ant, …). */
|
||||
padding: 132px 14px 268px;
|
||||
min-height: 150px;
|
||||
overflow-x: auto;
|
||||
box-shadow:
|
||||
@@ -1776,7 +1883,8 @@ h3 {
|
||||
}
|
||||
|
||||
.food-fan-card:not(:first-child) {
|
||||
margin-top: -88px;
|
||||
/* Slightly tighter overlap so a tall apple stack fits the play area. */
|
||||
margin-top: -92px;
|
||||
}
|
||||
|
||||
/* Released cards (a spent set-aside pet, or a used-up food perk) shrink and
|
||||
|
||||
Reference in New Issue
Block a user