feat: New features (research, invest, gambling, new game+, trophies)
This commit is contained in:
@@ -423,3 +423,222 @@ select,
|
||||
background: var(--danger);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------- resource bar */
|
||||
|
||||
.res {
|
||||
display: flex;
|
||||
flex: 1 1 0;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.res .icon {
|
||||
--icon-size: 1.75rem;
|
||||
}
|
||||
|
||||
.res > div {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.res__label {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.7rem;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.res strong {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
font-size: 1.05rem;
|
||||
font-variant-numeric: tabular-nums;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.res--primary strong {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
@media (max-width: 519px) {
|
||||
.resourcebar {
|
||||
gap: 0.5rem;
|
||||
padding: 0.35rem 0.75rem;
|
||||
}
|
||||
|
||||
.res .icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.res strong {
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------- tabs */
|
||||
|
||||
.tab {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
min-height: 44px;
|
||||
padding: 0.4rem 1rem;
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
touch-action: manipulation;
|
||||
}
|
||||
|
||||
.tab[aria-current='page'] {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: var(--accent-contrast);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@media (min-width: 760px) {
|
||||
.tab {
|
||||
width: auto;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
/* A dot: something new (newly unlocked) or waiting (an opportunity to seize). */
|
||||
.tab--new .tab::after,
|
||||
.tab--alert .tab::after {
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
right: 6px;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background: var(--danger);
|
||||
border: 2px solid var(--surface);
|
||||
border-radius: 50%;
|
||||
content: '';
|
||||
}
|
||||
|
||||
.tab--alert .tab::after {
|
||||
animation: pulse 1s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
50% {
|
||||
transform: scale(1.5);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.tab--alert .tab::after {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ gains/losses */
|
||||
|
||||
.pos {
|
||||
color: var(--good);
|
||||
}
|
||||
|
||||
.neg {
|
||||
color: var(--bad);
|
||||
}
|
||||
|
||||
.badge.pos,
|
||||
.badge.neg {
|
||||
background: transparent;
|
||||
border: 1px solid currentColor;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------- cards with actions */
|
||||
|
||||
.card--stack {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.card__row {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: var(--gap);
|
||||
}
|
||||
|
||||
.card__actions {
|
||||
display: flex;
|
||||
gap: var(--gap);
|
||||
}
|
||||
|
||||
.card__actions .btn {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.card--done {
|
||||
border-left: 4px solid var(--good);
|
||||
}
|
||||
|
||||
.card--locked {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.cards--grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
|
||||
}
|
||||
|
||||
.panel--low .panel__title { color: var(--good); }
|
||||
.panel--high .panel__title { color: var(--bad); }
|
||||
|
||||
/* ---------------------------------------------- contracts, gamble, legacy */
|
||||
|
||||
.callout {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.35rem;
|
||||
padding: 0.75rem;
|
||||
background: var(--surface-2);
|
||||
border: 2px solid var(--accent);
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
.progress {
|
||||
width: 100%;
|
||||
height: 14px;
|
||||
accent-color: var(--accent);
|
||||
}
|
||||
|
||||
.log {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.log__entry {
|
||||
padding: 0.3rem 0.6rem;
|
||||
background: var(--surface-2);
|
||||
border-left: 4px solid var(--border);
|
||||
border-radius: 4px;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.log__entry--win,
|
||||
.log__entry--jackpot {
|
||||
border-left-color: var(--good);
|
||||
}
|
||||
|
||||
.log__entry--lose,
|
||||
.log__entry--crash {
|
||||
border-left-color: var(--bad);
|
||||
}
|
||||
|
||||
.log__entry--jackpot,
|
||||
.log__entry--crash {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* A hint under a big figure goes on its own line (rate under research points, bonus under chips). */
|
||||
.tile .hint {
|
||||
display: block;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user