A gold count now sits on the Sokko TCG menu icon while the opening reserve is full, so players notice it from any page. A light reserve route keeps it up to date outside the game, and the game page updates it with every state it gets. The opening stage also lists the remaining openings, apart for the automatic recharge and for openings bought one at a time, since the sidebar reserve is hidden there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
487 lines
9.9 KiB
SCSS
487 lines
9.9 KiB
SCSS
// Rôle : définit le layout principal, la sidebar et la navigation.
|
|
@use "mixins";
|
|
|
|
.app-shell {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: grid;
|
|
grid-template-columns: 248px minmax(0, 1fr);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.app-shell.sidebar-compact {
|
|
grid-template-columns: 72px minmax(0, 1fr);
|
|
}
|
|
|
|
.sidebar {
|
|
position: fixed;
|
|
inset: 0 auto 0 0;
|
|
display: flex;
|
|
width: 248px;
|
|
height: auto;
|
|
flex-direction: column;
|
|
gap: var(--space-4);
|
|
padding: var(--space-5);
|
|
border-right: 2px solid var(--color-border);
|
|
background: rgba(11, 14, 27, 0.82);
|
|
backdrop-filter: blur(10px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
font-size: var(--font-size-lg);
|
|
font-weight: 800;
|
|
}
|
|
|
|
.brand-name {
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.brand-name-main {
|
|
background: linear-gradient(
|
|
90deg,
|
|
var(--color-text-primary) 0%,
|
|
var(--color-text-primary) 46%,
|
|
var(--color-accent-gold) 58%,
|
|
var(--color-accent-gold) 100%
|
|
);
|
|
background-clip: text;
|
|
-webkit-background-clip: text;
|
|
background-position: 0 0;
|
|
background-size: 220% 100%;
|
|
color: transparent;
|
|
transition: background-position 620ms var(--ease-standard);
|
|
}
|
|
|
|
.brand-name-accent {
|
|
color: var(--color-accent-gold);
|
|
}
|
|
|
|
.brand:hover .brand-name-main {
|
|
background-position: 100% 0;
|
|
}
|
|
|
|
.brand-name-accent {
|
|
background: none;
|
|
}
|
|
|
|
.brand-mark {
|
|
display: block;
|
|
width: 34px;
|
|
height: 34px;
|
|
flex: 0 0 auto;
|
|
background: var(--gradient-brand);
|
|
filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.28));
|
|
mask: url("/static/icons/controller.svg") center / contain no-repeat;
|
|
-webkit-mask: url("/static/icons/controller.svg") center / contain no-repeat;
|
|
transition: transform 0.8s var(--ease-standard), filter var(--duration-normal) var(--ease-standard);
|
|
}
|
|
|
|
.brand:hover .brand-mark {
|
|
filter: drop-shadow(0 0 22px rgba(139, 92, 246, 0.42));
|
|
transform: rotate(360deg);
|
|
}
|
|
|
|
.nav {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
min-height: 42px;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px 12px;
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-md);
|
|
color: var(--color-text-secondary);
|
|
transition: var(--duration-normal) var(--ease-standard);
|
|
}
|
|
|
|
.nav-icon {
|
|
display: block;
|
|
width: 24px;
|
|
height: 24px;
|
|
flex: 0 0 auto;
|
|
background: var(--color-accent-gold);
|
|
mask-position: center;
|
|
mask-repeat: no-repeat;
|
|
mask-size: 20px 20px;
|
|
-webkit-mask-position: center;
|
|
-webkit-mask-repeat: no-repeat;
|
|
-webkit-mask-size: 20px 20px;
|
|
}
|
|
|
|
/* Le pictogramme est un masque : la pastille vit à côté de lui, dans un conteneur positionné. */
|
|
.nav-icon-slot {
|
|
position: relative;
|
|
display: block;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.nav-icon-count {
|
|
position: absolute;
|
|
top: -6px;
|
|
right: -8px;
|
|
min-width: 17px;
|
|
height: 17px;
|
|
padding: 0 4px;
|
|
border-radius: 999px;
|
|
background: var(--color-accent-gold);
|
|
box-shadow: 0 0 0 2px var(--color-bg-sidebar);
|
|
color: var(--color-text-inverse);
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
line-height: 17px;
|
|
text-align: center;
|
|
}
|
|
|
|
.nav-icon-home {
|
|
mask-image: url("/static/icons/home.svg");
|
|
-webkit-mask-image: url("/static/icons/home.svg");
|
|
}
|
|
|
|
.nav-icon-toolbox {
|
|
mask-image: url("/static/icons/toolbox.svg");
|
|
-webkit-mask-image: url("/static/icons/toolbox.svg");
|
|
}
|
|
|
|
.nav-icon-controller {
|
|
mask-image: url("/static/icons/controller.svg");
|
|
-webkit-mask-image: url("/static/icons/controller.svg");
|
|
}
|
|
|
|
.nav-item strong {
|
|
color: inherit;
|
|
font-size: var(--font-size-sm);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background: var(--color-bg-hover);
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.nav-item.active {
|
|
border-color: var(--color-primary-border);
|
|
background: var(--color-primary-soft);
|
|
box-shadow: inset 3px 0 0 var(--color-primary);
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.sidebar-mascot {
|
|
position: absolute;
|
|
top: 47%;
|
|
right: 0;
|
|
z-index: 0;
|
|
display: block;
|
|
pointer-events: none;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.sidebar-mascot img {
|
|
display: block;
|
|
width: 134px;
|
|
object-fit: contain;
|
|
opacity: 0.86;
|
|
filter:
|
|
saturate(1.04)
|
|
brightness(1.02)
|
|
drop-shadow(0 24px 34px rgba(0, 0, 0, 0.32));
|
|
}
|
|
|
|
.sidebar-secondary-links {
|
|
display: grid;
|
|
gap: 4px;
|
|
margin-top: auto;
|
|
}
|
|
|
|
.sidebar-about-link {
|
|
display: flex;
|
|
min-height: 34px;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 7px 12px;
|
|
border: 0;
|
|
border-radius: var(--radius-md);
|
|
color: var(--color-text-muted);
|
|
font-size: var(--font-size-xs);
|
|
font-weight: 700;
|
|
transition: var(--duration-normal) var(--ease-standard);
|
|
}
|
|
|
|
.sidebar-about-link strong {
|
|
color: inherit;
|
|
font-size: var(--font-size-xs);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.sidebar-about-icon {
|
|
display: inline-grid;
|
|
width: 18px;
|
|
height: 18px;
|
|
flex: 0 0 auto;
|
|
place-items: center;
|
|
color: var(--color-accent-gold);
|
|
font-size: 12px;
|
|
font-weight: 900;
|
|
line-height: 1;
|
|
transition:
|
|
color var(--duration-fast) var(--ease-standard),
|
|
filter var(--duration-fast) var(--ease-standard);
|
|
}
|
|
|
|
.sidebar-about-icon .ui-icon {
|
|
width: 14px;
|
|
height: 14px;
|
|
color: inherit;
|
|
}
|
|
|
|
.sidebar-about-link:hover {
|
|
background: var(--color-bg-hover);
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
.sidebar-about-link:hover .sidebar-about-icon {
|
|
color: #ffd66b;
|
|
filter: drop-shadow(0 0 6px rgba(246, 196, 83, 0.24));
|
|
}
|
|
|
|
.sidebar-about-link.active {
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.sidebar-note {
|
|
position: relative;
|
|
isolation: isolate;
|
|
padding: var(--space-4);
|
|
overflow: hidden;
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-lg);
|
|
background: rgba(16, 20, 38, 0.58);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.sidebar-note::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: -1;
|
|
background:
|
|
radial-gradient(circle at 92% 12%, rgba(246, 196, 83, 0.009), transparent 34%),
|
|
radial-gradient(circle at 0% 100%, rgba(139, 92, 246, 0.011), transparent 42%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.sidebar-note::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 0;
|
|
padding: 1px;
|
|
border-radius: inherit;
|
|
background:
|
|
radial-gradient(circle at 100% 0%, rgba(246, 196, 83, 0.42), transparent 34%),
|
|
linear-gradient(135deg, rgba(246, 196, 83, 0.42), rgba(139, 92, 246, 0.32) 54%, rgba(196, 181, 253, 0.24));
|
|
@include mixins.border-mask;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.sidebar-note > * {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.sidebar-note .badge {
|
|
border: 1px solid rgba(246, 196, 83, 0.24);
|
|
background:
|
|
linear-gradient(135deg, rgba(246, 196, 83, 0.12), rgba(139, 92, 246, 0.16));
|
|
color: var(--color-accent-gold);
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.sidebar-note p {
|
|
margin: 12px 0 0;
|
|
font-size: var(--font-size-sm);
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.sidebar-storage-actions {
|
|
display: flex;
|
|
width: max-content;
|
|
max-width: 100%;
|
|
gap: var(--space-2);
|
|
margin: var(--space-4) auto 0;
|
|
}
|
|
|
|
.sidebar-action-button {
|
|
display: inline-flex;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.sidebar-storage-actions .sidebar-backup-button.nds-button {
|
|
padding-inline: var(--space-2);
|
|
}
|
|
|
|
.sidebar-storage-action-label {
|
|
color: inherit;
|
|
}
|
|
|
|
.sidebar[data-variant="compact"] {
|
|
width: 72px;
|
|
gap: var(--space-4);
|
|
padding: var(--space-4) 10px;
|
|
}
|
|
|
|
.sidebar[data-variant="compact"] .brand-name,
|
|
.sidebar[data-variant="compact"] .nav-item strong,
|
|
.sidebar[data-variant="compact"] .sidebar-about-link strong,
|
|
.sidebar[data-variant="compact"] .sidebar-mascot,
|
|
.sidebar[data-variant="compact"] .sidebar-note > .badge,
|
|
.sidebar[data-variant="compact"] .sidebar-note > p {
|
|
display: none;
|
|
}
|
|
|
|
.sidebar[data-variant="compact"] .brand,
|
|
.sidebar[data-variant="compact"] .nav-item,
|
|
.sidebar[data-variant="compact"] .sidebar-about-link {
|
|
justify-content: center;
|
|
}
|
|
|
|
.sidebar[data-variant="compact"] .nav-item {
|
|
width: 100%;
|
|
padding-inline: 10px;
|
|
}
|
|
|
|
.sidebar[data-variant="compact"] .sidebar-secondary-links {
|
|
margin-top: auto;
|
|
}
|
|
|
|
.sidebar[data-variant="compact"] .sidebar-about-link {
|
|
width: 100%;
|
|
padding-inline: 8px;
|
|
}
|
|
|
|
.sidebar[data-variant="compact"] .sidebar-note {
|
|
display: block;
|
|
margin-top: 0;
|
|
padding: 6px;
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
.sidebar[data-variant="compact"] .sidebar-storage-actions {
|
|
width: auto;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.sidebar[data-variant="compact"] .sidebar-action-button {
|
|
width: 36px;
|
|
height: 36px;
|
|
flex: 0 0 36px;
|
|
padding: 0;
|
|
}
|
|
|
|
.sidebar[data-variant="compact"] .sidebar-storage-action-label {
|
|
display: none;
|
|
}
|
|
|
|
.content-shell {
|
|
grid-column: 2;
|
|
display: flex;
|
|
min-height: 100vh;
|
|
min-width: 0;
|
|
flex-direction: column;
|
|
}
|
|
|
|
@media (min-width: 1440px) {
|
|
.app-shell.toolbox-drawer-open .content-shell {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 700px;
|
|
grid-template-rows: auto minmax(0, 1fr);
|
|
}
|
|
|
|
.app-shell.toolbox-drawer-open .topbar {
|
|
grid-column: 1 / -1;
|
|
grid-row: 1;
|
|
}
|
|
|
|
.app-shell.toolbox-drawer-open main {
|
|
grid-column: 1;
|
|
grid-row: 2;
|
|
min-width: 0;
|
|
width: min(1600px, max(0px, calc(100% - 64px)));
|
|
}
|
|
}
|
|
|
|
.topbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 80;
|
|
display: flex;
|
|
min-height: 68px;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-4);
|
|
padding: 0 var(--space-8);
|
|
border-bottom: 1px solid var(--color-border);
|
|
background: rgba(7, 9, 19, 0.78);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.topbar strong {
|
|
font-size: var(--font-size-lg);
|
|
}
|
|
|
|
.topbar .eyebrow {
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.topbar-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
.compact-game-view-switch {
|
|
display: inline-flex;
|
|
min-width: 184px;
|
|
}
|
|
|
|
.compact-game-view-switch > button {
|
|
flex: 1 1 0;
|
|
}
|
|
|
|
.toolbox-button {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.toolbox-button img {
|
|
width: 21px;
|
|
height: 21px;
|
|
flex: 0 0 auto;
|
|
object-fit: contain;
|
|
}
|
|
|
|
main {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
width: min(1600px, calc(100% - 64px));
|
|
margin: 0 auto;
|
|
padding: var(--space-8) 0 var(--space-12);
|
|
}
|
|
|
|
.route-content-view {
|
|
display: contents;
|
|
}
|
|
|
|
.app-shell.compact-toolbox-visible .route-content-view {
|
|
display: none;
|
|
}
|