/* ==========================================================================
   2000sGaming Dashboard (Xbox 360 style). Tile colours follow the theme.
   ========================================================================== */
.dsh { --dsh-a: #b6ee3a; --dsh-b: #5aae08; --dsh-c: #2f6e00; --dsh-ink: #fff; --dsh-glow: rgba(170,255,50,.55); --dsh-ring: #c8ff5a;
	position: relative; max-width: 1240px; margin: clamp(18px, 3vw, 40px) auto 0; padding: 0 clamp(14px, 2vw, 28px) 30px; color: #fff; overflow-x: clip; }
html[data-sg-theme="xp"] .dsh { --dsh-a: #8fc2ff; --dsh-b: #2f6ae8; --dsh-c: #163fa8; --dsh-glow: rgba(90,160,255,.6); --dsh-ring: #b8dcff; }
html[data-sg-theme="playstation"] .dsh { --dsh-a: #6fa8ff; --dsh-b: #1d55d6; --dsh-c: #0a2a86; --dsh-glow: rgba(60,140,255,.65); --dsh-ring: #9cc6ff; }
html[data-sg-theme="wii"] .dsh { --dsh-a: #ffffff; --dsh-b: #dff2fc; --dsh-c: #9fd6f2; --dsh-ink: #2d4b66; --dsh-glow: rgba(110,200,245,.6); --dsh-ring: #74c9f2; }
html[data-sg-theme="xbox-og"] .dsh { --dsh-a: #8fe63a; --dsh-b: #2f8f0a; --dsh-c: #0f4a03; --dsh-glow: rgba(120,255,40,.6); --dsh-ring: #a6ff5a; }

.dsh-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dsh-title { margin: 0; font-size: clamp(28px, 3vw, 44px); font-weight: 900; letter-spacing: -.01em; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
html[data-sg-theme="wii"] .dsh-title, html[data-sg-theme="xbox"] .dsh-title { color: #1e2a36; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.dsh-user { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.dsh-user__text { display: grid; justify-items: end; line-height: 1.05; text-shadow: 0 2px 6px rgba(0,0,0,.45); }
html[data-sg-theme="wii"] .dsh-user__text, html[data-sg-theme="xbox"] .dsh-user__text { color: #1e2a36; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.dsh-user__name { font-size: clamp(20px, 2vw, 28px); font-weight: 800; }
.dsh-user__score { font-size: 18px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.dsh-g { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; font-weight: 900; color: #222; background: #fff; box-shadow: inset 0 0 0 2px #bbb; text-shadow: none; }
.dsh-user__pic { width: clamp(58px, 5vw, 74px); padding: 3px; border-radius: 6px; background: rgba(255,255,255,.85); box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 4px 10px rgba(0,0,0,.35); }
.dsh-user__pic .sg-gamerpic, .dsh-tile__pic .sg-gamerpic { width: 100%; height: auto; border-radius: 3px; box-shadow: none !important; }

/* ---------- Tiles ---------- */
.dsh-stage { position: relative; margin-top: clamp(10px, 2vw, 26px); padding-bottom: clamp(70px, 9vw, 130px); perspective: 1600px; perspective-origin: 30% 40%; }
.dsh-tiles { display: grid; grid-template-columns: 1.35fr 1fr 1fr; align-items: center; gap: 0; margin: 0 auto; padding: 0; list-style: none; max-width: 1060px; transform-style: preserve-3d; }
.dsh-tiles__item { position: relative; transform-style: preserve-3d; }
.dsh-tiles__item--profile { z-index: 3; }
.dsh-tiles__item--shop { z-index: 2; transform: translateX(-2%) rotateY(-12deg) translateZ(-40px); }
.dsh-tiles__item--games { z-index: 1; transform: translateX(-5%) rotateY(-16deg) translateZ(-90px); }
.dsh-tile { position: relative; display: grid; align-content: end; aspect-ratio: 1.08; padding: clamp(14px, 1.8vw, 26px); border-radius: clamp(14px, 1.4vw, 22px); overflow: hidden; color: var(--dsh-ink); text-decoration: none;
	background: radial-gradient(120% 90% at 20% 0%, var(--dsh-a) 0%, var(--dsh-b) 55%, var(--dsh-c) 100%);
	box-shadow: inset 0 2px 0 rgba(255,255,255,.75), inset 0 -10px 24px rgba(0,0,0,.25), 0 0 0 2px rgba(255,255,255,.55), 0 0 22px var(--dsh-glow), 0 18px 34px rgba(0,0,0,.35);
	transition: transform 260ms cubic-bezier(.22,.8,.24,1), box-shadow 260ms ease, filter 260ms ease; }
.dsh-tiles__item--shop .dsh-tile, .dsh-tiles__item--games .dsh-tile { aspect-ratio: .92; transform: scale(.86); transform-origin: left center; filter: brightness(.94); }
.dsh-tile__shine { position: absolute; inset: 0 0 auto 0; height: 46%; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0)); pointer-events: none; }
.dsh-tile__text { position: relative; z-index: 2; display: grid; gap: 2px; text-shadow: 0 2px 4px rgba(0,0,0,.35); }
html[data-sg-theme="wii"] .dsh-tile__text { text-shadow: 0 1px 0 #fff; }
.dsh-tile__name { font-size: clamp(22px, 2.3vw, 36px); font-weight: 900; line-height: 1; }
.dsh-tile__sub { font-size: clamp(12px, 1.05vw, 16px); font-weight: 700; opacity: .92; }
.dsh-tile__icon { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-size: clamp(56px, 7vw, 110px); color: rgba(255,255,255,.95); filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
html[data-sg-theme="wii"] .dsh-tile__icon { color: #3fb2ee; }
.dsh-tile--profile { align-content: start; }
.dsh-tile__pic { position: absolute; left: clamp(14px, 1.8vw, 26px); bottom: clamp(14px, 1.8vw, 26px); width: 42%; padding: 4px; border-radius: 8px; background: rgba(255,255,255,.9); box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.dsh-tile:hover, .dsh-tile:focus-visible { outline: none; filter: brightness(1.08); box-shadow: inset 0 2px 0 rgba(255,255,255,.85), inset 0 -10px 24px rgba(0,0,0,.2), 0 0 0 3px var(--dsh-ring), 0 0 36px 6px var(--dsh-glow), 0 22px 38px rgba(0,0,0,.4); }
.dsh-tiles__item--profile .dsh-tile:hover, .dsh-tiles__item--profile .dsh-tile:focus-visible { transform: translateY(-4px); }
.dsh-tiles__item--shop .dsh-tile:hover, .dsh-tiles__item--shop .dsh-tile:focus-visible,
.dsh-tiles__item--games .dsh-tile:hover, .dsh-tiles__item--games .dsh-tile:focus-visible { transform: scale(.9) translateY(-4px); filter: brightness(1.08); }
/* reflection on the floor */
.dsh-tile__refl { position: absolute; left: 0; right: 0; top: calc(100% + 6px); height: 40%; border-radius: inherit; pointer-events: none; transform: scaleY(-1); opacity: .14;
	background: radial-gradient(120% 90% at 20% 100%, var(--dsh-a), var(--dsh-b) 55%, transparent);
	-webkit-mask-image: linear-gradient(to top, #000, transparent 85%); mask-image: linear-gradient(to top, #000, transparent 85%); display: grid; align-content: start; padding: 0 22px; color: rgba(255,255,255,.6); font-size: 26px; }
.dsh-tiles__item--shop .dsh-tile__refl, .dsh-tiles__item--games .dsh-tile__refl { transform: scale(.86) scaleY(-1); transform-origin: left top; top: calc(93% + 6px); }
.dsh-tile__refl .dsh-tile__name { font-size: clamp(18px, 2vw, 30px); filter: blur(.6px); }

/* floor + orb */
.dsh-floor { position: absolute; left: -6%; right: -6%; bottom: 0; height: 46%; z-index: -1; pointer-events: none;
	background: radial-gradient(60% 55% at 50% 0%, rgba(255,255,255,.22), rgba(255,255,255,0) 70%), linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.28)); border-radius: 50% 50% 0 0 / 30% 30% 0 0; }
html[data-sg-theme="wii"] .dsh-floor, html[data-sg-theme="xbox"] .dsh-floor { background: radial-gradient(60% 55% at 50% 0%, rgba(255,255,255,.6), rgba(255,255,255,0) 70%); }
.dsh-orb { position: absolute; right: 6%; bottom: 4%; width: clamp(60px, 6.4vw, 96px); aspect-ratio: 1; }
.dsh-orb__ball { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 35% 30%, #fff, #e6e9ee 45%, #9aa3ad 100%);
	box-shadow: 0 0 0 2px rgba(255,255,255,.7), 0 0 26px var(--dsh-glow), 0 10px 18px rgba(0,0,0,.35); animation: dsh-bob 6s cubic-bezier(.45,0,.55,1) infinite alternate; }
.dsh-orb__ball img { position: absolute; inset: 14%; width: 72%; height: 72%; border-radius: 50%; }
.dsh-orb__ball::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.9), rgba(255,255,255,0) 40%); }
.dsh-orb__ring { position: absolute; left: 50%; top: 88%; width: 260%; aspect-ratio: 3.2; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); animation: dsh-ripple 4.8s ease-out infinite; }
.dsh-orb__ring--2 { animation-delay: -2.4s; }
@keyframes dsh-bob { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
@keyframes dsh-ripple { from { opacity: .7; transform: translate(-50%, -50%) scale(.45); } to { opacity: 0; transform: translate(-50%, -50%) scale(1.15); } }

.dsh-hints { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; margin-top: 4px; font-size: 16px; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.dsh-hints > * { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.dsh-hints a:hover { text-decoration: underline; }
html[data-sg-theme="wii"] .dsh-hints, html[data-sg-theme="xbox"] .dsh-hints { color: #1e2a36; text-shadow: 0 1px 0 rgba(255,255,255,.8); }

/* ---------- Tablets / phones: flat, stacked ---------- */
@media (max-width: 760px) {
	.dsh-stage { perspective: none; padding-bottom: 56px; }
	.dsh-tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
	.dsh-tiles__item--profile { grid-column: 1 / -1; }
	.dsh-tiles__item--shop, .dsh-tiles__item--games { transform: none; }
	.dsh-tile { aspect-ratio: 2.1; }
	.dsh-tiles__item--shop .dsh-tile, .dsh-tiles__item--games .dsh-tile { aspect-ratio: 1.15; transform: none; filter: none; }
	.dsh-tiles__item--shop .dsh-tile:hover, .dsh-tiles__item--games .dsh-tile:hover { transform: translateY(-2px); }
	.dsh-tile__pic { left: auto; right: 14px; top: 50%; bottom: auto; transform: translateY(-50%); width: 34%; }
	.dsh-tile--profile { align-content: center; }
	.dsh-tile__refl { display: none; }
	.dsh-tile__icon { font-size: 52px; top: 38%; }
	.dsh-orb { right: 10px; bottom: 0; width: 52px; }
	.dsh-hints { font-size: 14px; gap: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) { .dsh-orb__ball, .dsh-orb__ring { animation: none; } .dsh-tile { transition: none; } }
html.sg-calm .dsh-orb__ball, html.sg-calm .dsh-orb__ring { animation: none; }

/* ---------- Dashboard button in the top menu ---------- */
.dsh-tile__avatar { position: absolute; right: 9%; bottom: 7%; height: 80%; width: auto; color: #050805; filter: drop-shadow(0 0 1px rgba(255,255,255,.35)) drop-shadow(0 10px 14px rgba(0,0,0,.45)); z-index: 1; }
html[data-sg-theme="wii"] .dsh-tile__avatar { color: #10202c; }
/* dark stage: light text everywhere on the dashboard */
.sg-dashview .dsh-title, .sg-dashview .dsh-user__text, .sg-dashview .dsh-hints { color: #fff !important; text-shadow: 0 2px 6px rgba(0,0,0,.6) !important; }
.sg-dashview .dsh-floor { background: radial-gradient(60% 55% at 50% 0%, color-mix(in srgb, var(--stg-c) 26%, transparent), transparent 70%) !important; }
@media (max-width: 760px) { .dsh-tile__avatar { height: 78%; right: 40%; } .dsh-tile__pic { width: 30%; } }

/* ==========================================================================
   v2.12 — simpler, crisper Dashboard: flat slanted tiles (click anywhere,
   first time), bigger readable text, two-tone icons, theme background only.
   ========================================================================== */
.dsh-stage { perspective: none; }
.dsh-tiles { transform-style: flat; gap: clamp(12px, 1.4vw, 22px); align-items: stretch; }
.dsh-tiles__item, .dsh-tiles__item--shop, .dsh-tiles__item--games { transform: none; z-index: auto; }
.dsh-tile { aspect-ratio: 1.05; transform: none; filter: none; border-radius: clamp(14px, 1.3vw, 20px); cursor: pointer;
	transition: transform 160ms ease, box-shadow 200ms ease; }
.dsh-tiles__item--shop .dsh-tile, .dsh-tiles__item--games .dsh-tile { aspect-ratio: auto; height: 100%; transform: none; filter: none; }
.dsh-tile:hover, .dsh-tile:focus-visible,
.dsh-tiles__item--profile .dsh-tile:hover, .dsh-tiles__item--profile .dsh-tile:focus-visible,
.dsh-tiles__item--shop .dsh-tile:hover, .dsh-tiles__item--shop .dsh-tile:focus-visible,
.dsh-tiles__item--games .dsh-tile:hover, .dsh-tiles__item--games .dsh-tile:focus-visible { transform: translateY(-3px); filter: none; }
.dsh-tile:active { transform: translateY(0) scale(.99); }
.dsh-tile > * { pointer-events: none; } /* the whole tile is one click target */
.dsh-tile__refl { display: none; }
.dsh-floor { display: none; }
/* text */
.dsh-tile__name { font-size: clamp(26px, 2.7vw, 42px); letter-spacing: -.01em; }
.dsh-tile__sub { font-size: clamp(14px, 1.15vw, 18px); font-weight: 800; opacity: 1; }
.dsh-tile__text { text-shadow: 0 2px 3px rgba(0,0,0,.45), 0 0 12px rgba(0,0,0,.25); }
html[data-sg-theme="wii"] .dsh-tile__text { text-shadow: 0 1px 0 #fff; }
/* icons */
.dsh-ico { position: absolute; left: 50%; top: 42%; width: clamp(84px, 9vw, 140px); height: auto; transform: translate(-50%, -50%); font-size: 0; color: #fff; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.dsh-ico__main { fill: #fff; }
.dsh-ico__soft { fill: rgba(0,0,0,.22); }
.dsh-ico__dot { fill: var(--dsh-c); }
.dsh-ico__line { stroke: var(--dsh-c); }
.dsh-tiles__item--shop .dsh-ico__line { stroke: #fff; }
.dsh-ico__shine { fill: rgba(255,255,255,.0); }
html[data-sg-theme="wii"] .dsh-ico__main { fill: #3fb2ee; }
html[data-sg-theme="wii"] .dsh-ico__dot { fill: #fff; } html[data-sg-theme="wii"] .dsh-ico__line { stroke: #fff; }
html[data-sg-theme="wii"] .dsh-tiles__item--shop .dsh-ico__line { stroke: #3fb2ee; }
/* readable header on any theme background */
.dsh-title, .dsh-user__text { padding: 4px 14px; border-radius: 14px; background: rgba(0,0,0,.38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff !important; text-shadow: 0 1px 3px rgba(0,0,0,.5) !important; }
.dsh-user__text { padding: 6px 12px; }
.dsh-orb { bottom: 0; }
@media (max-width: 760px) {
	.dsh-tile { aspect-ratio: 2.1; }
	.dsh-tiles__item--shop .dsh-tile, .dsh-tiles__item--games .dsh-tile { aspect-ratio: 1.1; }
	.dsh-ico { width: 64px; top: 38%; }
	.dsh-tile__name { font-size: 24px; } .dsh-tile__sub { font-size: 13px; }
}
/* "Player avatars – Coming soon" badge over the silhouette */
.dsh-tile__soon { position: absolute; z-index: 2; right: 5%; bottom: 5%; display: grid; justify-items: center; gap: 1px; padding: 6px 12px; border-radius: 12px; font-size: clamp(11px, .9vw, 13px); font-weight: 800; line-height: 1.15; text-align: center; color: #fff;
	background: rgba(0,0,0,.62); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35), 0 4px 10px rgba(0,0,0,.3); text-shadow: none; }
.dsh-tile__soon strong { font-size: 1.15em; font-weight: 900; color: var(--dsh-ring); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 760px) { .dsh-tile__soon { right: auto; left: 52%; bottom: 8%; transform: translateX(-50%); padding: 4px 9px; } }
/* silhouette + its "coming soon" label move together */
.dsh-tile__av { position: absolute; right: 9%; bottom: 7%; height: 80%; aspect-ratio: 687 / 1797; z-index: 1; }
.dsh-tile__av .dsh-tile__avatar { position: absolute; inset: 0; right: auto; bottom: auto; width: 100%; height: 100%; }
.dsh-tile__av .dsh-tile__soon { right: auto; bottom: auto; left: 50%; top: 52%; transform: translate(-50%, -50%); white-space: nowrap; }
@media (max-width: 760px) { .dsh-tile__av { right: 40%; height: 78%; } .dsh-tile__av .dsh-tile__soon { left: 50%; top: 52%; bottom: auto; transform: translate(-50%, -50%); } }
@media (max-width: 760px) {
	.dsh-tile__av { right: 34%; }
	.dsh-tile__av .dsh-tile__soon { top: auto; bottom: -4%; transform: translateX(-50%); padding: 3px 8px; font-size: 10px; }
	.dsh-tile__av .dsh-tile__soon { font-size: 0; } .dsh-tile__av .dsh-tile__soon strong { font-size: 11px; }
}
