/* Account on the site: sign-in dialog, profile menu, profile page, download page and community. */

/* ---------- Sign-in and registration ---------- */
.auth-dialog { width: min(920px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 22px; color: #eef3ff; background: #0f1730; box-shadow: inset 0 0 0 1px #ffffff1c, inset 0 4px 0 var(--mc-emerald), 0 40px 120px #000c; overflow: auto; }
.auth-dialog[open] { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); animation: auth-in 0.28s var(--ease-out-quint); }
.auth-dialog::backdrop { background: #04070fcc; backdrop-filter: blur(6px); }
@keyframes auth-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.auth-art { position: relative; display: grid; grid-template-rows: 1fr auto; min-height: 100%; overflow: hidden; background: #0a1024; }
.auth-stage { position: relative; min-height: 300px; overflow: hidden; }
.auth-sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) brightness(0.6); }
/* The VORDA cube over a tilted wall of popular pack covers drifting in three rows (site-account.mjs → authWall). */
.auth-stage { background: #0a1024; }
.auth-wall { position: absolute; inset: -40% -30%; display: grid; gap: 12px; align-content: center; transform: rotate(-14deg); }
.auth-row { display: flex; gap: 12px; width: max-content; animation: auth-marquee 46s linear infinite; }
.auth-row:nth-child(2) { margin-left: -80px; animation-direction: reverse; animation-duration: 54s; }
.auth-row:nth-child(3) { margin-left: -160px; animation-duration: 62s; }
.auth-row img { width: 104px; height: 104px; object-fit: cover; border-radius: 16px; background: #141d3c; filter: saturate(1.1) brightness(.8); box-shadow: 0 10px 20px #0008; }
@keyframes auth-marquee { to { transform: translateX(-50%); } }
.auth-dim { position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at 50% 48%, #0a1024f2 0 22%, #0a1024b0 42%, #0a102440 75%); }
.auth-mark { position: absolute; z-index: 2; left: 50%; top: 55%; display: grid; justify-items: center; gap: 8px; transform: translate(-50%, -50%); }
.auth-cube-logo { width: 124px; height: 129px; max-height: none; overflow: visible; filter: drop-shadow(0 0 18px #5bc6facc) drop-shadow(0 0 40px #5bc6fa66); animation: auth-breathe 4s ease-in-out infinite; }
.auth-cube-logo path { fill: none; stroke: #5bc6fa; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.auth-mark { gap: 12px; }
.auth-mark span { font: 800 32px/1 var(--font-display, 'Russo One'), sans-serif; letter-spacing: .16em; color: #fff; text-shadow: 0 0 22px #5bc6faaa, 0 2px 0 #0008; }
@keyframes auth-breathe { 50% { transform: translateY(-5px); filter: drop-shadow(0 0 26px #5bc6fa) drop-shadow(0 0 60px #5bc6fa88); } }
.auth-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, #0a1024 98%); }
.auth-hero-wrap { position: absolute; z-index: 1; left: 50%; bottom: -3%; width: 104%; aspect-ratio: 3 / 2; transform: translateX(-50%); animation: auth-float 6s ease-in-out infinite; }
.auth-heroes { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; filter: drop-shadow(0 18px 24px #000c); }
@keyframes auth-float { 50% { transform: translateX(-50%) translateY(-6px); } }
/* A Minecraft name tag over the middle hero: shows the login as it is typed. */
/* Sign-in greets like a Minecraft advancement: pinned to the corner, so the floating island never carries it away. */
.auth-toast { position: absolute; z-index: 3; top: 14px; left: 14px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; background: #212121f2; box-shadow: inset 0 0 0 2px #555, inset 0 0 0 4px #1a1a1a, 0 8px 20px #0008; animation: auth-toast-in 0.45s 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.15) both; }
.auth-toast span { display: grid; gap: 2px; }
.auth-toast b { font: 400 13px var(--font-pixel); color: #ffff55; text-shadow: 1px 1px 0 #3f3f15; }
.auth-toast small { font: 400 12px var(--font-pixel); color: #fff; text-shadow: 1px 1px 0 #3f3f3f; }
@keyframes auth-toast-in { from { transform: translateY(-140%); opacity: 0; } }
.auth-blocks i { position: absolute; z-index: 1; width: 10px; height: 10px; background: linear-gradient(180deg, #5fd14b 0 35%, #8a5a33 35%); box-shadow: inset -2px -2px 0 #0004; animation: auth-rise 7s linear infinite; opacity: 0; }
.auth-blocks i:nth-child(1) { left: 12%; animation-delay: 0s; }
.auth-blocks i:nth-child(2) { left: 30%; animation-delay: 1.6s; background: var(--mc-diamond); }
.auth-blocks i:nth-child(3) { left: 68%; animation-delay: 3.1s; background: var(--mc-gold); }
.auth-blocks i:nth-child(4) { left: 84%; animation-delay: 4.4s; background: var(--mc-amethyst); }
.auth-blocks i:nth-child(5) { left: 52%; animation-delay: 5.6s; background: var(--mc-sakura); }
@keyframes auth-rise { 0% { bottom: 10%; opacity: 0; transform: rotate(0); } 15% { opacity: 0.9; } 100% { bottom: 95%; opacity: 0; transform: rotate(180deg); } }
.auth-copy { position: relative; padding: 4px 24px 24px; }
.auth-copy h3 { margin: 0 0 4px; font: 800 20px/1.2 var(--font-display); color: #fff; }
.auth-copy p { margin: 0 0 12px; font-size: 13px; color: #a9b6d8; }
.auth-copy ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; padding: 0; list-style: none; }
.auth-copy li { display: flex; align-items: center; gap: 8px; padding: 7px 9px; font-size: 12px; color: #dbe2ff; background: #ffffff0a; border-radius: 8px; }
.auth-main { position: relative; display: grid; align-content: start; gap: 14px; padding: 28px clamp(20px, 3vw, 36px) 24px; }
.auth-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; font-size: 22px; color: #dbe2ff; background: #ffffff10; border-radius: 10px; cursor: pointer; }
.auth-tabs { display: inline-flex; gap: 4px; padding: 4px; justify-self: start; background: #0b1228; border-radius: 12px; box-shadow: inset 0 0 0 1px #ffffff14; }
.auth-tabs button { padding: 8px 16px; border: 0; font: 700 14px var(--font-display); color: #a9b6d8; background: none; border-radius: 9px; cursor: pointer; }
.auth-tabs button[aria-selected="true"] { color: #04260f; background: var(--mc-emerald); }
.auth-main h2 { margin: 2px 0 0; font: 800 26px/1.15 var(--font-display); color: #fff; }
.auth-form { display: grid; gap: 12px; }
.auth-form label { display: grid; gap: 5px; font: 650 13px var(--font-body); color: #c9d2ea; }
.auth-form label small { font-weight: 400; color: #7d8bb3; }
.auth-field { display: flex; align-items: center; gap: 10px; padding: 0 6px 0 12px; min-height: 46px; background: #0b1228; border-radius: 12px; box-shadow: inset 0 0 0 1px #2d3d70; transition: box-shadow 0.15s, background 0.15s; }
.auth-field .pixel-icon { flex: none; opacity: 0.85; }
.auth-field:focus-within { background: #0d1530; box-shadow: inset 0 0 0 2px var(--mc-emerald), 0 0 0 4px #3ddc6f1f; }
.auth-dialog .auth-field input { flex: 1; min-width: 0; height: 44px; margin: 0; padding: 0; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; color: #fff; font: 500 15px var(--font-body); outline: none !important; }
.auth-dialog .auth-field input::placeholder { color: #5f6d96; }
.auth-dialog .auth-field input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; }
.auth-eye { flex: none; width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 15px; opacity: 0.7; }
.auth-eye:hover { opacity: 1; background: #ffffff10; }
.auth-hint { font-size: 12px; color: #7d8bb3; }
.auth-hint.good { color: var(--mc-emerald-hi); }
.auth-hint.bad { color: #ffb3bd; }
.auth-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.auth-meter i { height: 4px; border-radius: 2px; background: #ffffff10; transition: background 0.2s; }
.auth-meter[data-level="1"] i:nth-child(-n+1) { background: var(--mc-redstone); }
.auth-meter[data-level="2"] i:nth-child(-n+2) { background: var(--mc-gold); }
.auth-meter[data-level="3"] i:nth-child(-n+3) { background: var(--mc-emerald); }
.auth-meter[data-level="4"] i { background: var(--mc-emerald-hi); }
.auth-check { display: flex !important; align-items: center; gap: 10px !important; font-weight: 500 !important; cursor: pointer; }
.auth-check a { color: var(--mc-diamond); }
.auth-check input { width: 18px; height: 18px; accent-color: var(--mc-emerald); }
.auth-error { min-height: 1em; margin: 0; font-size: 13px; color: #ffb3bd; }
.auth-error.info { color: #c9d2ea; }
.auth-submit { justify-content: center; width: 100%; }
.auth-link { padding: 0; border: 0; font: inherit; font-weight: 650; color: var(--mc-diamond); background: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.auth-foot { display: grid; gap: 6px; margin: 4px 0 0; font-size: 13px; color: #a9b6d8; }
.auth-foot .auth-team { font-size: 12px; color: #6f7ca0; }
.auth-foot .auth-team a { color: #8fa0c8; }
.auth-done { grid-column: 1 / -1; display: grid; justify-items: center; gap: 12px; padding: 40px 28px 32px; text-align: center; position: relative; }
.auth-done h2 { margin: 0; font: 800 28px var(--font-display); color: #fff; }
.auth-done p { margin: 0; color: #c9d2ea; }
.auth-next { display: grid; gap: 8px; margin: 6px 0; padding: 0; list-style: none; text-align: left; }
.auth-next li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #0b1228; clip-path: var(--notch-clip); --notch: 3px; }
.auth-next b { display: grid; place-items: center; width: 26px; height: 26px; font: 400 14px var(--font-digits); color: #04260f; background: var(--mc-emerald); clip-path: var(--notch-clip); --notch: 2px; }
.auth-note { font-size: 12px !important; color: #7d8bb3 !important; }

/* ---------- Header account button and menu ---------- */
.portal-account.signed { padding-right: 12px; }
.portal-caret { width: 7px; height: 7px; margin-left: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.7; }
.pm-menu { position: fixed; z-index: 90; width: 280px; padding: 10px; color: #eef3ff; background: #121a36f7; backdrop-filter: blur(10px); border-radius: 16px; box-shadow: inset 0 0 0 1px #ffffff1c, inset 0 3px 0 var(--mc-emerald), 0 24px 60px #000b; animation: pm-in 0.18s var(--ease-out-quint); }
@keyframes pm-in { from { opacity: 0; transform: translateY(-6px); } }
.pm-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; border-bottom: 1px solid #ffffff12; }
.pm-head img { image-rendering: pixelated; background: #0b1228; border-radius: 10px; }
.pm-head strong { display: block; font: 800 16px var(--font-display); }
.pm-access { display: inline-block; margin-top: 4px; padding: 2px 8px; font-size: 11px; font-weight: 700; border-radius: 999px; background: #ffffff12; color: #a9b6d8; }
.pm-access.ok { background: #3ddc6f22; color: var(--mc-emerald-hi); }
.pm-access.off { background: #ffcb4522; color: #ffe28a; }
.pm-menu nav { display: grid; gap: 2px; padding: 8px 0; }
.pm-menu nav a, .pm-menu nav button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; font: 600 14px var(--font-body); color: #dbe2ff; text-align: left; text-decoration: none; background: none; border-radius: 10px; cursor: pointer; }
.pm-menu nav a:hover, .pm-menu nav button:hover, .pm-menu nav :focus-visible { color: #fff; background: #ffffff10; outline: none; }
.pm-out { width: 100%; padding: 9px 10px; border: 0; border-top: 1px solid #ffffff12; font: 600 13px var(--font-body); color: #ffb3bd; text-align: left; background: none; cursor: pointer; }
.pm-out:hover { color: #fff; }

/* ---------- Profile ---------- */
.pf-page { padding-bottom: 64px; }
.pf-hero { position: relative; padding: 48px 0 0; margin-bottom: 26px; }
.pf-cover { position: absolute; inset: 0 0 60px; overflow: hidden; }
.pf-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: brightness(0.5) saturate(1.2); }
.pf-cover span { position: absolute; inset: 0; background: linear-gradient(180deg, #090e1c55 0%, #090e1c 100%), radial-gradient(60% 80% at 80% 20%, #6f3fc455, transparent 60%); }
.pf-hero-inner { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 24px; padding-top: 80px; }
.pf-avatar { position: relative; padding: 8px; background: linear-gradient(180deg, #1d2a57, #121a36); clip-path: var(--notch-clip); --notch: 8px; box-shadow: inset 0 0 0 2px #ffffff22; }
.pf-avatar img { display: block; width: 132px; height: 132px; image-rendering: pixelated; background: #0b1228; }
.pf-avatar-dot { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; background: #6f7ca0; box-shadow: 0 0 0 4px #121a36; }
.pf-avatar-dot.ok { background: var(--mc-emerald); }
.pf-avatar-dot.off { background: var(--mc-gold); }
.pf-role { display: inline-flex; align-items: center; gap: 8px; font: 400 12px var(--font-pixel); color: var(--mc-emerald-hi); text-transform: uppercase; }
.pf-id h1 { margin: 6px 0 10px; font: 900 clamp(32px, 4vw, 54px) / 1 var(--font-display); color: #fff; letter-spacing: -0.02em; text-shadow: 0 4px 0 #0009; word-break: break-all; }
.pf-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-badge { padding: 4px 10px; font-size: 12px; font-weight: 650; color: #c9d2ea; background: #0b1228cc; border-radius: 999px; box-shadow: inset 0 0 0 1px #ffffff1c; }
.pf-badge.ok { color: #04260f; background: var(--mc-emerald); }
.pf-badge.off { color: #3a2706; background: var(--mc-gold); }
.pf-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-hero-actions .pixel-icon { margin-right: 6px; }
.pf-stats { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.pf-stats > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0 12px; align-items: center; padding: 14px 16px; background: linear-gradient(180deg, #17204a, #111936); clip-path: var(--notch-clip); --notch: 5px; box-shadow: inset 0 0 0 1px #ffffff12, inset 0 -3px 0 #0006; }
.pf-stats .pixel-icon { grid-row: span 2; }
.pf-stats b { font: 400 26px/1 var(--font-digits); color: #fff; }
.pf-stats span { font-size: 12px; color: #a9b6d8; }
.pf-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 6px; background: #0f1730; border-radius: 14px; box-shadow: inset 0 0 0 1px #ffffff12; }
.pf-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; font: 700 14px var(--font-display); color: #a9b6d8; text-decoration: none; border-radius: 10px; transition: background 0.15s, color 0.15s; }
.pf-tabs a:hover { color: #fff; background: #ffffff0c; }
.pf-tabs a.active { color: #04260f; background: var(--mc-emerald); }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pf-card { display: grid; gap: 12px; align-content: start; padding: 20px; border-radius: 18px; background: linear-gradient(180deg, #16203f, #111931); box-shadow: inset 0 0 0 1px #ffffff12, inset 0 3px 0 var(--mc-emerald); }
.pf-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pf-card h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 18px var(--font-display); color: #fff; }
.pf-card p { margin: 0; color: #c3cde6; line-height: 1.55; }
.pf-card .button { justify-self: start; }
.pf-access { grid-row: span 2; box-shadow: inset 0 0 0 1px #ffffff12, inset 0 3px 0 var(--mc-gold); }
.pf-access-state { display: flex; gap: 14px; align-items: center; padding: 14px; background: #0b1228; border-radius: 14px; }
.pf-access-state strong { display: block; color: #fff; }
.pf-access-state span { font-size: 13px; color: #a9b6d8; }
.pf-access-state.ok { box-shadow: inset 3px 0 0 var(--mc-emerald); }
.pf-access-state.off { box-shadow: inset 3px 0 0 var(--mc-gold); }
.pf-access-state.none { box-shadow: inset 3px 0 0 var(--mc-diamond); }
.pf-compare { display: grid; font-size: 13px; }
.pf-compare > div { display: grid; grid-template-columns: 1fr 80px 80px; gap: 8px; padding: 7px 4px; border-bottom: 1px dashed #ffffff12; color: #c9d2ea; }
.pf-compare > div span:not(:first-child) { text-align: center; color: var(--mc-emerald-hi); font-weight: 800; }
.pf-compare > div span.no { color: #6f7ca0; }
.pf-compare-head span { font: 400 10px var(--font-pixel) !important; color: #7d8bb3 !important; text-transform: uppercase; }
.pf-mini { padding: 5px 10px; border: 0; font: 600 12px var(--font-body); color: #c9d2ea; text-decoration: none; background: #ffffff10; border-radius: 8px; cursor: pointer; }
.pf-mini:hover { color: #fff; background: #ffffff1c; }
.pf-empty { color: #7d8bb3 !important; font-size: 14px; }
.pf-friend { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: #0b1228; border-radius: 12px; }
.pf-friend img { image-rendering: pixelated; background: #0f1730; border-radius: 8px; }
.pf-dot { position: absolute; left: 42px; top: 36px; width: 10px; height: 10px; background: #4b587a; box-shadow: 0 0 0 2px #0b1228; }
.pf-friend.online .pf-dot { background: var(--mc-emerald); }
.pf-friend > span { flex: 1; min-width: 0; }
.pf-friend strong { display: block; color: #fff; }
.pf-friend small { font-size: 12px; color: #7d8bb3; }
.pf-friend.online small { color: var(--mc-emerald-hi); }
.pf-sub { margin: 6px 0 0; font: 650 13px var(--font-body); color: #93a0bf; }
.pf-count { font: 400 20px var(--font-digits); color: var(--mc-emerald-hi); }
.pf-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pf-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; background: #0b1228; border-radius: 10px; font-size: 14px; }
.pf-status { padding: 2px 8px; font: 400 10px var(--font-pixel); color: #ffe28a; background: #ffcb451c; border-radius: 6px; justify-self: start; }
.pf-status.answered { color: var(--mc-emerald-hi); background: #3ddc6f1c; }
.pf-status.closed { color: #93a0bf; background: #ffffff10; }
.pf-big { font: 700 18px var(--font-display) !important; color: #fff !important; word-break: break-all; }
.pf-note { font-size: 13px !important; color: #7d8bb3 !important; }
.pf-form { display: grid; gap: 12px; }
.pf-form label { display: grid; gap: 5px; font: 650 13px var(--font-body); color: #c9d2ea; }
.pf-form input:not([type="radio"]) { min-height: 44px; padding: 0 12px; font: 500 15px var(--font-body); color: #fff; background: #0b1228; border: 0; border-radius: 10px; box-shadow: inset 0 0 0 1px #2d3d70; }
.pf-form input:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--mc-emerald); }
.pf-form .form-error { margin: 0; min-height: 1em; font-size: 13px; color: #ffb3bd; }
.pf-avatars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.pf-avatars legend { margin-bottom: 8px; font: 650 13px var(--font-body); color: #c9d2ea; }
.pf-avatars label { position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px; background: #0b1228; border-radius: 12px; cursor: pointer; box-shadow: inset 0 0 0 1px #ffffff12; transition: transform 0.15s var(--ease-spring); }
.pf-avatars label:hover { transform: translateY(-2px); }
.pf-avatars input { position: absolute; opacity: 0; }
.pf-avatars img { image-rendering: pixelated; }
.pf-avatars span { font-size: 12px; color: #a9b6d8; }
.pf-avatars label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--mc-emerald), 0 10px 24px -14px var(--mc-emerald); }
.pf-avatars label:has(input:focus-visible) { outline: 3px solid var(--mc-diamond); }
.pf-guest { padding: 80px 0; }
/* Signed out: the account's benefits on the left, a sample profile on the right (site-account.mjs → profile()). */
.pf-guest-card { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; max-width: 980px; margin: 0 auto; padding: 44px 44px; overflow: hidden; border-radius: 24px; background: radial-gradient(60% 80% at 85% 20%, #7c5cff2e, transparent 60%), radial-gradient(70% 90% at 0% 0%, #1d944733, transparent 60%), linear-gradient(180deg, #141d3c, #0f1630); box-shadow: inset 0 0 0 1px #ffffff14, inset 0 4px 0 var(--mc-emerald), 0 30px 80px -30px #000c; }
.pf-guest-card::before { content: ""; position: absolute; inset: 0; background: url(/assets/create-800.webp) right center / cover no-repeat; opacity: .12; mask: linear-gradient(90deg, transparent 35%, #000); -webkit-mask: linear-gradient(90deg, transparent 35%, #000); pointer-events: none; }
.pf-guest-copy { position: relative; display: grid; gap: 14px; justify-items: start; }
.pf-guest-card h1 { margin: 0; font: 900 clamp(34px, 5vw, 50px)/1.02 var(--font-display); color: #fff; letter-spacing: -0.02em; }
.pf-guest-card h1 span { background: linear-gradient(90deg, #5df09a, #8af0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-guest-card p { margin: 0; max-width: 460px; color: #c3cde6; font-size: 16px; }
.pf-guest-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin: 4px 0 0; padding: 0; list-style: none; }
.pf-guest-perks li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 13.5px; color: #dbe2ff; background: #ffffff0a; border-radius: 12px; box-shadow: inset 0 0 0 1px #ffffff10; animation: pf-in .5s both; animation-delay: calc(var(--i) * 70ms + 150ms); }
.pf-guest-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pf-guest-free { color: #8e9bc0; font-size: 12.5px; }
.pf-guest-demo { position: relative; justify-self: center; width: min(340px, 100%); animation: pf-float 6s ease-in-out infinite; }
.pf-demo-card { position: relative; padding: 18px; border-radius: 20px; background: linear-gradient(180deg, #1b2550f2, #121a38f2); box-shadow: inset 0 0 0 1px #ffffff1c, 0 24px 50px -20px #000d, 0 0 60px -20px #7c5cff66; transform: rotate(-2deg); }
.pf-demo-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.pf-demo-avatar { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(135deg, #2b3a74, #1a2350); box-shadow: inset 0 0 0 2px #ffffff14; }
.pf-demo-nick { display: flex; align-items: center; font: 800 17px var(--font-display); color: #ff8ad1; text-shadow: 0 0 12px #ff8ad166; }
.pf-demo-top small { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: #a9b6d8; font-size: 12px; }
.pf-demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mc-emerald, #4fe39a); box-shadow: 0 0 0 0 #4fe39a88; animation: pf-ping 2s infinite; }
.pf-demo-level { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font: 900 18px var(--font-display); color: #2a1b00; background: linear-gradient(180deg, #ffe08a, #ffb545); box-shadow: 0 6px 16px -6px #ffb545aa; line-height: 1; }
.pf-demo-level small { font: 700 9px var(--font-display); }
.pf-demo-bar { display: block; height: 6px; margin: 16px 0 14px; border-radius: 3px; background: #ffffff14; overflow: hidden; }
.pf-demo-bar i { display: block; height: 100%; width: 68%; border-radius: inherit; background: linear-gradient(90deg, #5df09a, #8af0ff); animation: pf-fill 1.6s .4s cubic-bezier(.2,.9,.3,1) both; }
.pf-demo-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.pf-demo-card dl div { padding: 10px; border-radius: 12px; background: #ffffff0a; text-align: center; }
.pf-demo-card dt { color: #8e9bc0; font-size: 11px; }
.pf-demo-card dd { margin: 2px 0 0; font: 800 18px var(--font-display); color: #fff; }
.pf-demo-badges { display: flex; gap: 8px; margin-top: 12px; }
.pf-demo-badges span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #ffffff0d; box-shadow: inset 0 0 0 1px #ffffff12; animation: pf-pop .5s both; animation-delay: calc(var(--i) * 90ms + 700ms); }
.pf-demo-toast { position: absolute; right: -14px; bottom: -22px; display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 14px; font-size: 12.5px; color: #dbe2ff; background: #212a52; box-shadow: inset 0 0 0 1px #ffffff1c, 0 14px 30px -12px #000c; animation: pf-toast 6s 1.2s ease-in-out infinite; }
.pf-demo-toast b { color: #ff8ad1; }
@keyframes pf-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes pf-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes pf-fill { from { width: 0; } }
@keyframes pf-float { 50% { transform: translateY(-8px); } }
@keyframes pf-ping { 70% { box-shadow: 0 0 0 8px #4fe39a00; } 100% { box-shadow: 0 0 0 0 #4fe39a00; } }
@keyframes pf-toast { 0%, 8% { opacity: 0; transform: translateY(10px); } 15%, 75% { opacity: 1; transform: none; } 85%, 100% { opacity: 0; transform: translateY(10px); } }
@media (max-width: 820px) { .pf-guest-card { grid-template-columns: 1fr; padding: 32px 20px 44px; gap: 34px; } .pf-guest-perks { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pf-guest-perks li, .pf-guest-demo, .pf-demo-bar i, .pf-demo-badges span, .pf-demo-dot { animation: none; } .pf-demo-toast { animation: none; opacity: 1; } }

/* ---------- Download page ---------- */
.dl-page { padding-bottom: 72px; }
.dl-hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 40px; overflow: hidden; }
.dl-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 80% 30%, #6f3fc433, transparent 60%), radial-gradient(40% 60% at 10% 80%, #1d944733, transparent 60%); pointer-events: none; }
.dl-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.dl-copy h1 { margin: 14px 0 14px; font: 900 clamp(38px, 5vw, 68px) / 1 var(--font-display); color: #fff; letter-spacing: -0.03em; text-shadow: 0 4px 0 #0009; }
.dl-copy h1 span { background: linear-gradient(90deg, var(--mc-emerald-hi), var(--mc-diamond)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dl-copy > p { max-width: 52ch; margin: 0 0 22px; font-size: 17px; line-height: 1.6; color: #c3cde6; }
.dl-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dl-main { display: inline-flex !important; align-items: center; gap: 14px; padding: 14px 24px 18px !important; font-size: 18px !important; }
.dl-main span { display: grid; text-align: left; }
.dl-main small { font: 500 12px var(--font-body); opacity: 0.8; }
.dl-main.is-soon { cursor: default; filter: saturate(0.7); }
.dl-req { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.dl-req li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 13px; color: #c9d2ea; background: #0b1228b8; clip-path: var(--notch-clip); --notch: 3px; }
.dl-account { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; color: var(--mc-emerald-hi); }
.dl-window { overflow: hidden; border-radius: 16px; background: #0b1124; box-shadow: inset 0 0 0 1px #ffffff1f, 0 40px 90px -30px #000, 0 0 0 8px #ffffff06; transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); transition: transform 0.5s var(--ease-out-quint); }
.dl-window:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.dl-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; font: 400 11px var(--font-pixel); color: #93a0bf; background: #070b18; }
.dl-bar i { width: 10px; height: 10px; background: #2d3d70; }
.dl-bar i:nth-child(1) { background: var(--mc-redstone); }
.dl-bar i:nth-child(2) { background: var(--mc-gold); }
.dl-bar i:nth-child(3) { background: var(--mc-emerald); }
.dl-bar span { margin-left: 8px; }
.dl-body { display: grid; grid-template-columns: 150px 1fr; min-height: 340px; }
.dl-body aside { display: grid; align-content: start; gap: 4px; padding: 12px 8px; background: #0d1430; }
.dl-body aside span { display: flex; align-items: center; gap: 8px; padding: 7px 8px; font-size: 11px; color: #a9b6d8; border-radius: 8px; }
.dl-body aside span.on { color: #fff; background: #3ddc6f22; box-shadow: inset 2px 0 0 var(--mc-emerald); }
.dl-body aside em { font-style: normal; }
.dl-screen { position: relative; overflow: hidden; }
.dl-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); }
.dl-screen .dl-heroes { object-fit: contain; object-position: 30% 100%; filter: drop-shadow(0 10px 20px #000a); }
.dl-card { position: absolute; right: 14px; top: 16px; display: grid; gap: 4px; width: 46%; padding: 12px; background: #121a36ee; border-radius: 12px; box-shadow: inset 0 0 0 1px #3ddc6f55, inset 0 2px 0 var(--mc-emerald); }
.dl-card small { font: 400 9px var(--font-pixel); color: var(--mc-emerald-hi); }
.dl-card b { font: 800 14px var(--font-display); color: #fff; }
.dl-card span { margin-top: 6px; padding: 7px; text-align: center; font: 700 11px var(--font-display); color: #04260f; background: var(--mc-emerald); clip-path: var(--notch-clip); --notch: 2px; }
.dl-tiles { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dl-tiles i { height: 38px; border-radius: 8px; background: linear-gradient(135deg, #6f3fc4aa, #121a36); box-shadow: inset 0 0 0 1px #ffffff1c; }
.dl-tiles i:nth-child(2) { background: linear-gradient(135deg, #b9850faa, #121a36); }
.dl-tiles i:nth-child(3) { background: linear-gradient(135deg, #1d8fb3aa, #121a36); }
.dl-tiles i:nth-child(4) { background: linear-gradient(135deg, #b0457faa, #121a36); }
.dl-steps-wrap, .dl-inside, .dl-faq { margin-top: clamp(40px, 6vw, 72px); }
.dl-page h2 { margin: 0 0 18px; font: 800 clamp(24px, 2.8vw, 36px) / 1.1 var(--font-display); color: #fff; }
.dl-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.dl-steps li { position: relative; display: grid; gap: 4px; padding: 18px; border-radius: 16px; background: linear-gradient(180deg, #17204a, #111936); box-shadow: inset 0 0 0 1px #ffffff12, inset 0 3px 0 var(--mc-emerald); }
.dl-steps li > span { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; background: #0b1228; clip-path: var(--notch-clip); --notch: 4px; }
.dl-steps b { position: absolute; top: 14px; right: 16px; font: 400 26px var(--font-digits); color: #ffffff22; }
.dl-steps strong { font: 700 16px var(--font-display); color: #fff; }
.dl-steps small { font-size: 13px; color: #a9b6d8; }
.dl-inside-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dl-inside-grid article { display: grid; gap: 8px; padding: 20px; border-radius: 16px; background: #111936; box-shadow: inset 0 0 0 1px #ffffff12; }
.dl-inside-grid h3 { margin: 0; font: 700 17px var(--font-display); color: #fff; }
.dl-inside-grid p { margin: 0; font-size: 14px; line-height: 1.55; color: #c3cde6; }
.dl-faq details { margin-bottom: 8px; padding: 14px 18px; background: #111936; border-radius: 14px; box-shadow: inset 0 0 0 1px #ffffff12; }
.dl-faq summary { cursor: pointer; font: 700 16px var(--font-display); color: #fff; }
.dl-faq details p { margin: 10px 0 0; color: #c3cde6; line-height: 1.6; }

/* ---------- Home download block and community ---------- */
.portal-download-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 48px 0; padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: radial-gradient(60% 120% at 100% 0%, #1d944744, transparent 60%), #111936; box-shadow: inset 0 0 0 1px #ffffff14, inset 0 4px 0 var(--mc-emerald); }
.portal-download-cta h2 { margin: 10px 0 6px; font: 800 clamp(22px, 2.6vw, 32px) var(--font-display); color: #fff; }
.portal-download-cta p { margin: 0; color: #c3cde6; max-width: 60ch; }
.cm-page { padding: 48px 0 72px; }
.cm-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; align-items: center; margin-bottom: 32px; }
.cm-hero h1 { margin: 14px 0 12px; font: 900 clamp(34px, 4.6vw, 58px) / 1.02 var(--font-display); color: #fff; }
.cm-hero h1 span { color: var(--mc-emerald-hi); }
.cm-hero p { margin: 0 0 20px; color: #c3cde6; font-size: 17px; }
.cm-hero img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 30px 70px -30px #000; }
.cm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cm-grid article { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: 16px; background: linear-gradient(180deg, #17204a, #111936); box-shadow: inset 0 0 0 1px #ffffff12, inset 0 3px 0 var(--mc-emerald); }
.cm-grid h2 { margin: 0; font: 700 18px var(--font-display); color: #fff; }
.cm-grid p { margin: 0; font-size: 14px; color: #c3cde6; line-height: 1.55; }
.cm-grid button.portal-inline-link { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.cm-soon { font: 400 11px var(--font-pixel); color: #7d8bb3; }

@media (max-width: 1000px) {
  .dl-hero-inner, .cm-hero { grid-template-columns: 1fr; }
  .dl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-inside-grid, .cm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-hero-inner { grid-template-columns: auto 1fr; }
  .pf-hero-actions { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .auth-dialog[open] { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .pf-grid, .pf-grid.two, .pf-stats, .dl-steps, .dl-inside-grid, .cm-grid { grid-template-columns: 1fr; }
  .pf-hero-inner { grid-template-columns: 1fr; justify-items: start; }
  .pf-avatar img { width: 96px; height: 96px; }
  .pf-avatars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dl-body { grid-template-columns: 1fr; }
  .dl-body aside { display: none; }
  .dl-window { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-dialog[open], .pm-menu, .auth-hero-wrap, .auth-blocks i, .auth-toast, .auth-row, .auth-cube-logo { animation: none; }
  .dl-window { transform: none; transition: none; }
}

.win-mark { display: grid; grid-template-columns: repeat(2, 9px); gap: 2px; flex: none; }
.win-mark, .win-mark::before { position: relative; }
.win-mark { width: 20px; height: 20px; background: linear-gradient(currentColor 0 0) 0 0 / 9px 9px no-repeat, linear-gradient(currentColor 0 0) 11px 0 / 9px 9px no-repeat, linear-gradient(currentColor 0 0) 0 11px / 9px 9px no-repeat, linear-gradient(currentColor 0 0) 11px 11px / 9px 9px no-repeat; transform: perspective(60px) rotateY(-12deg); }
.dl-os { margin: 14px 0 0; font-size: 13px; color: #7d8bb3; letter-spacing: 0.01em; }
.dl-main.is-soon { opacity: 0.92; }

/* Install guide on the download page: the browser and Windows screens with a cursor showing where to click. */
.ig { margin-top: clamp(40px, 6vw, 72px); scroll-margin-top: 90px; }
.ig-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
.ig-head h2 { margin: 10px 0 6px; font: 900 clamp(26px, 3vw, 38px) var(--font-display); color: #fff; }
.ig-head p { margin: 0; color: #a9b6d8; }
.ig-started { display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; color: #04260f; font-weight: 700; background: linear-gradient(90deg, #3dd67a, #5ee2ff); animation: ig-pop .5s cubic-bezier(.22, 1, .36, 1) both; }
.ig-started[hidden] { display: none; }
.ig-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: stretch; }
.ig-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ig-steps button { display: flex; gap: 14px; align-items: flex-start; width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; text-align: left; color: #c9d2ea; background: #111936; box-shadow: inset 0 0 0 1px #ffffff10; cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s cubic-bezier(.22, 1, .36, 1); }
.ig-steps button:hover { transform: translateX(3px); }
.ig-steps button[aria-pressed="true"] { color: #fff; background: linear-gradient(90deg, #1d5a4544, #111936); box-shadow: inset 3px 0 0 #3dd67a, inset 0 0 0 1px #3dd67a40; }
.ig-steps b { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; font: 400 15px var(--font-digits); color: #fff; background: #233059; }
.ig-steps button[aria-pressed="true"] b { color: #04260f; background: #3dd67a; }
.ig-steps span { display: grid; gap: 3px; }
.ig-steps strong { font: 700 15px var(--font-display); }
.ig-steps small { font-size: 13px; line-height: 1.5; color: #93a0bf; }
.ig-final { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 14px; background: #0f1630; box-shadow: inset 0 0 0 1px #5ee2ff30; }
.ig-final img { width: 112px; height: 70px; border-radius: 8px; object-fit: cover; flex: none; }
.ig-final span { display: grid; gap: 3px; }
.ig-final strong { color: #fff; font: 700 15px var(--font-display); }
.ig-final small { color: #93a0bf; font-size: 13px; }
.ig-stage { position: relative; min-height: 340px; border-radius: 18px; overflow: hidden; background: radial-gradient(60% 80% at 70% 20%, #2a4b9a55, transparent 60%), linear-gradient(160deg, #18244f, #0b1228); box-shadow: inset 0 0 0 1px #ffffff14; }
.ig-screen { position: absolute; inset: 0; display: grid; place-items: center; padding: 22px; animation: ig-pop .45s cubic-bezier(.22, 1, .36, 1) both; }
.ig-screen[hidden] { display: none; }
@keyframes ig-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
/* Stylised browser download prompt, file list and the Windows warning — drawn, not screenshots. */
.ig-browser, .ig-explorer { width: min(440px, 100%); border-radius: 10px; overflow: hidden; background: #f3f4f7; color: #1d1f24; box-shadow: 0 30px 60px -24px #000; }
.ig-tabs { display: flex; gap: 6px; align-items: center; padding: 8px 12px; background: #dfe3ea; font-size: 12px; color: #444; }
.ig-tabs i { width: 10px; height: 10px; border-radius: 50%; background: #c4c9d2; }
.ig-tabs span { margin-left: 6px; }
.ig-pop { display: grid; gap: 6px; margin: 16px 16px 22px auto; width: 260px; padding: 14px; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px -10px #0005; }
.ig-pop b { font-size: 14px; }
.ig-pop small { color: #6a6f7a; font-size: 12px; }
.ig-pop div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.ig-btn { display: inline-block; padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; color: #1d1f24; background: #e6e9ef; }
.ig-btn.primary { color: #fff; background: #1a73e8; }
.ig-file { display: flex; gap: 12px; align-items: center; margin: 10px 12px; padding: 10px 12px; border-radius: 8px; background: #fff; }
.ig-file.dim { opacity: .5; }
.ig-file span { display: grid; gap: 2px; }
.ig-file b { font-size: 14px; }
.ig-file small { font-size: 12px; color: #6a6f7a; }
.ig-smart { width: min(460px, 100%); padding: 26px 26px 0; color: #fff; background: #0067b8; box-shadow: 0 30px 60px -24px #000; }
.ig-smart h4 { margin: 0 0 14px; font: 600 22px/1.25 "Segoe UI", system-ui, sans-serif; }
.ig-smart p { margin: 0 0 14px; font: 400 14px/1.45 "Segoe UI", system-ui, sans-serif; }
.ig-meta { opacity: .9; }
.ig-link { display: inline-block; margin-bottom: 18px; font: 400 14px "Segoe UI", system-ui, sans-serif; text-decoration: underline; }
.ig-foot { display: flex; justify-content: flex-end; gap: 10px; margin: 0 -26px; padding: 14px 26px; background: #00559a; }
.ig-smart .ig-btn { color: #fff; background: transparent; box-shadow: inset 0 0 0 2px #fff; border-radius: 2px; font-family: "Segoe UI", system-ui, sans-serif; }
/* The cursor glides to the thing to press and clicks it. */
.ig-target { position: relative; animation: ig-hit 4.5s ease-in-out infinite; }
@keyframes ig-hit { 0%, 52% { box-shadow: 0 0 0 0 #ffcb4500; } 58% { box-shadow: 0 0 0 6px #ffcb45aa; } 75%, 100% { box-shadow: 0 0 0 12px #ffcb4500; } }
.ig-cursor { --x: 0px; --y: 0px; position: absolute; right: 8%; bottom: 8%; width: 22px; height: 30px; background: #fff; clip-path: polygon(0 0, 0 78%, 22% 60%, 38% 100%, 54% 94%, 38% 56%, 70% 56%); filter: drop-shadow(0 2px 2px #000a); animation: ig-cursor 4.5s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes ig-cursor { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 1; } 50% { transform: translate(var(--x), var(--y)); } 56% { transform: translate(var(--x), var(--y)) scale(.85); } 62%, 88% { transform: translate(var(--x), var(--y)); opacity: 1; } 100% { transform: translate(var(--x), var(--y)); opacity: 0; } }
@media (max-width: 900px) { .ig-body { grid-template-columns: 1fr; } .ig-stage { min-height: 300px; } .ig-cursor { display: none; } }
@media (prefers-reduced-motion: reduce) { .ig-screen, .ig-started { animation: none; } }

/* ---------- Download page: live numbers, «Проверь сам», the island, «Починить» ---------- */
.live-counters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; opacity: 0.4; transition: opacity 0.4s; }
.live-counters.ready { opacity: 1; }
.live-counters div { display: grid; min-width: 118px; padding: 10px 14px; border-radius: 12px; background: #0f1733; box-shadow: inset 0 0 0 1px #ffffff14; }
.live-counters b { font: 900 24px/1.1 var(--font-display); color: #8ff5ae; font-variant-numeric: tabular-nums; }
.live-counters small { font-size: 12.5px; color: #93a0bf; }
.dl-trust, .dl-island, .dl-repair { margin-top: clamp(40px, 6vw, 72px); }
.dl-trust-head h2, .dl-island h2, .dl-repair h2 { margin: 10px 0 6px; font: 800 clamp(24px, 3vw, 34px) var(--font-display); color: #fff; }
.dl-trust-head p, .dl-island p, .dl-repair p { color: #b9c4de; }
.dl-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.dl-trust-grid article { display: grid; gap: 6px; padding: 18px; border-radius: 16px; background: #111936; box-shadow: inset 0 0 0 1px #ffffff12; }
.dl-trust-grid h3 { margin: 0; font: 700 16px var(--font-display); color: #fff; }
.dl-trust-grid p { margin: 0; font-size: 14px; color: #b9c4de; }
.dl-hash { display: grid; gap: 8px; margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: #0b1228; box-shadow: inset 0 0 0 1px #3ddc6f44; }
.dl-hash span { font: 400 12px var(--font-pixel, monospace); color: #8ff5ae; text-transform: uppercase; }
.dl-hash code { overflow-wrap: anywhere; font: 600 14px ui-monospace, monospace; color: #fff; }
.dl-hash small { color: #93a0bf; }
.dl-hash-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-island { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.dl-island ul { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.dl-island li { display: flex; align-items: center; gap: 12px; color: #dfe6f7; }
.dl-island-stage { position: relative; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 20px; background: radial-gradient(120% 90% at 55% 35%, #1a2558, #0a0f24 70%); box-shadow: inset 0 0 0 1px #ffffff14; }
.dl-island-stage > img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; transition: opacity 0.5s; }
.dl-island-stage.live > img { opacity: 0; pointer-events: none; }
.dl-island-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.dl-island-stage .island-labels { position: absolute; inset: 0; pointer-events: none; }
.dl-island-note { position: absolute; z-index: 2; left: 14px; bottom: 12px; padding: 4px 10px; font-size: 12px; color: #c9d3f2; background: #0009; border-radius: 8px; opacity: 0; transition: opacity 0.4s; }
.dl-island-stage.live .dl-island-note { opacity: 1; }
.dl-repair { display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-radius: 18px; background: linear-gradient(90deg, #2a1640, #111936); box-shadow: inset 0 0 0 1px #ffffff14; }
.dl-repair h2 { margin-top: 0; }
@media (max-width: 860px) {
  .dl-trust-grid { grid-template-columns: 1fr; }
  .dl-island { grid-template-columns: 1fr; }
}

/* Phones: a signed-in player sees their avatar instead of the hamburger; the profile menu holds the sections too. */
.pm-sections { padding: 8px 4px 10px; border-top: 1px solid #ffffff14; }
.pm-sections > span { display: block; margin: 0 6px 8px; font: 700 11px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #8d9bc4; }
.pm-sections > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pm-sections a { padding: 10px 12px; border-radius: 10px; background: #ffffff0a; font: 600 14px var(--font-body); color: #dbe2ff; }
.pm-sections a:hover, .pm-sections a:focus-visible { background: #8b5cf633; color: #fff; outline: none; }
.mobile-login { display: none; }
@media (max-width: 900px) {
  :root[data-theme] .portal-header[data-signed] .header-tools > .menu-toggle { display: none; }
  :root[data-theme] .portal-header[data-signed] .header-tools > .portal-account { display: flex; padding: 0; min-width: 44px; justify-content: center; }
  :root[data-theme] .portal-header[data-signed] .header-tools > .portal-account span, :root[data-theme] .portal-header[data-signed] .portal-caret { display: none; }
  :root[data-theme] .portal-header[data-signed] .header-tools > .portal-account img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 0 0 2px #8b5cf6; }
  .pm-menu { left: 12px; right: 12px !important; width: auto; max-height: calc(100dvh - 90px); overflow: auto; }
  :root[data-theme] .mobile-menu.open { gap: 6px; padding: 12px; box-shadow: 0 18px 40px #0009, inset 0 0 0 1px #ffffff14; }
  :root[data-theme] .mobile-menu a { display: flex; align-items: center; padding: 12px 14px; border-radius: 10px; background: #ffffff0a; font-weight: 600; }
  :root[data-theme] .mobile-menu a.active { background: #8b5cf633; color: #fff; box-shadow: inset 3px 0 0 #a78bfa; }
  :root[data-theme] .mobile-menu .mobile-login { display: block; grid-column: 1 / -1; margin-top: 4px; padding: 13px; border: 0; border-radius: 10px; background: #4ade80; color: #062012; font: 700 14px var(--font-body); }
}
