/**
 * shared/site.css — the website's look: header (menu + profile), footer, sections, buttons.
 * Used by every site page (home, pricing, billing, how it works, contact, terms, privacy).
 * Everything is prefixed (sk-…) so the pages' own styles never clash with it.
 */
:root {
  --sk-ink: #0b0a1a;          /* darkest (footer) */
  --sk-night: #120f2a;        /* dark sections */
  --sk-night-2: #1a1640;
  --sk-line: rgba(255, 255, 255, 0.08);
  --sk-text: #f3f1ff;
  --sk-muted: #a7a3c7;
  --sk-pink: #ff2e88;
  --sk-red: #fe2c55;
  --sk-violet: #8b5cf6;
  --sk-cyan: #25f4ee;
  --sk-light: #f6f5fc;        /* light sections */
  --sk-light-2: #ffffff;
  --sk-dark-text: #17142e;
  --sk-dark-muted: #625e80;
  --sk-radius: 22px;
  --sk-max: 1200px;
  --sk-gutter: clamp(16px, 4vw, 32px);
  --sk-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ===== header ============================================================ */
.sk-header {
  position: sticky; top: 0; z-index: 1000; width: 100%;
  background: rgba(11, 10, 26, 0.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--sk-line);
  font-family: var(--sk-font); color: var(--sk-text);
}
.sk-header-in { max-width: var(--sk-max); margin: 0 auto; height: 68px; padding: 0 var(--sk-gutter); display: flex; align-items: center; gap: 20px; }
.sk-logo { display: flex; align-items: center; gap: 10px; color: var(--sk-text); text-decoration: none; font-weight: 900; font-size: 18px; letter-spacing: -0.01em; flex: none; }
.sk-logo img { width: 36px; height: 36px; border-radius: 10px; }
.sk-logo span { color: var(--sk-pink); }
.sk-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.sk-nav a { padding: 9px 14px; border-radius: 99px; color: var(--sk-muted); text-decoration: none; font-weight: 650; font-size: 15px; transition: color 0.15s, background 0.15s; }
.sk-nav a:hover { color: var(--sk-text); background: rgba(255, 255, 255, 0.06); }
.sk-nav a.on { color: var(--sk-text); background: rgba(255, 46, 136, 0.14); }
.sk-right { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.sk-menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--sk-line); background: rgba(255, 255, 255, 0.04); color: var(--sk-text); cursor: pointer; }
.sk-menu-btn svg { width: 22px; height: 22px; }

/* profile */
.sk-profile { position: relative; }
.sk-avatar-btn {
  position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 4px; border-radius: 99px;
  border: 1px solid var(--sk-line); background: rgba(255, 255, 255, 0.05); color: var(--sk-text); cursor: pointer; font: 700 14px var(--sk-font);
}
.sk-avatar-btn:hover { border-color: rgba(255, 46, 136, 0.6); }
.sk-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--sk-violet), var(--sk-pink)); color: #fff; font-weight: 900; flex: none; }
.sk-avatar svg { width: 20px; height: 20px; }
.sk-avatar-btn .sk-dot { position: absolute; left: 30px; top: 30px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--sk-ink); background: #6b6886; }
.sk-avatar-btn .sk-dot.live { background: #ff2d55; box-shadow: 0 0 10px #ff2d55; }
.sk-avatar-btn .sk-dot.off { background: #8a88a3; }
.sk-avatar-btn .sk-dot.none { display: none; }
.sk-who { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(360px, calc(100vw - 24px)); max-height: calc(100vh - 90px); overflow-y: auto;
  padding: 14px; border-radius: 18px; background: #151233; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.sk-pop[hidden] { display: none; }
.sk-pop .acct { margin: 0; background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.08); border-radius: 14px; }
.sk-pop-links { display: grid; gap: 4px; margin-top: 10px; }
.sk-pop-links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--sk-text); text-decoration: none; font-weight: 650; font-size: 14px; }
.sk-pop-links a:hover { background: rgba(255, 255, 255, 0.06); }
.sk-pop-links a[hidden] { display: none; }
.sk-pop-links a.sk-os svg { width: 18px; height: 18px; flex: none; color: #fff; }
.sk-pop-note { color: var(--sk-muted); font-size: 12px; margin: 10px 4px 2px; line-height: 1.5; }
.sk-pop-note a { color: var(--sk-cyan); }

/* the renew banner (account.js) sits at the bottom so it never covers the menu */
body > #renew-banner { top: auto !important; bottom: 0 !important; }

@media (max-width: 860px) {
  .sk-header-in { gap: 12px; }
  .sk-logo { font-size: 17px; min-width: 0; }
  .sk-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .sk-header.open .sk-menu-btn { background: linear-gradient(135deg, var(--sk-pink), var(--sk-violet)); border-color: transparent; }
  /* the menu: a card under the header, full width, solid */
  .sk-nav {
    position: fixed; left: 12px; right: 12px; top: 76px; flex-direction: column; align-items: stretch; gap: 4px; margin: 0;
    padding: 10px; border-radius: 20px; background: #151233; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6); display: none;
  }
  .sk-header.open .sk-nav { display: flex; }
  .sk-nav a { padding: 14px 16px; border-radius: 14px; font-size: 17px; color: var(--sk-text); }
  .sk-nav a.on { background: linear-gradient(135deg, rgba(255, 46, 136, 0.22), rgba(139, 92, 246, 0.22)); }
  .sk-who { display: none; }
  .sk-avatar-btn { padding: 0 4px; }
  /* the profile box: inside the screen, under the header */
  .sk-pop { position: fixed; left: 12px; right: 12px; top: 76px; width: auto; max-height: calc(100svh - 92px); }
}
@media (max-width: 380px) { .sk-logo span { display: none; } }
/* never scroll sideways */
html, body { overflow-x: clip; max-width: 100%; }

/* ===== buttons =========================================================== */
.sk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 99px;
  border: 1px solid transparent; font: 800 16px var(--sk-font); text-decoration: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.sk-btn:hover { transform: translateY(-2px); }
.sk-btn svg { width: 20px; height: 20px; flex: none; }
.sk-btn.primary { background: linear-gradient(135deg, var(--sk-pink), var(--sk-violet)); color: #fff; box-shadow: 0 10px 30px rgba(255, 46, 136, 0.35); }
.sk-btn.primary:hover { box-shadow: 0 14px 40px rgba(255, 46, 136, 0.5); }
.sk-btn.ghost { background: rgba(255, 255, 255, 0.06); color: var(--sk-text); border-color: rgba(255, 255, 255, 0.16); }
.sk-btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.sk-btn.dark { background: var(--sk-dark-text); color: #fff; }
.sk-btn.outline-dark { background: transparent; color: var(--sk-dark-text); border-color: rgba(23, 20, 46, 0.2); }
.sk-btn.outline-dark:hover { border-color: var(--sk-violet); color: var(--sk-violet); }
.sk-btn.small { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ===== sections ========================================================== */
.sk-section { width: 100%; padding: clamp(56px, 9vw, 104px) var(--sk-gutter); font-family: var(--sk-font); }
.sk-section.dark { background: var(--sk-night); color: var(--sk-text); }
.sk-section.light { background: var(--sk-light); color: var(--sk-dark-text); }
.sk-section.white { background: var(--sk-light-2); color: var(--sk-dark-text); }
.sk-wrap { max-width: var(--sk-max); margin: 0 auto; }
.sk-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.dark .sk-kicker { background: rgba(255, 46, 136, 0.12); color: #ff8cc0; border: 1px solid rgba(255, 46, 136, 0.3); }
.light .sk-kicker, .white .sk-kicker { background: rgba(139, 92, 246, 0.1); color: var(--sk-violet); border: 1px solid rgba(139, 92, 246, 0.25); }
.sk-h2 { margin: 16px 0 12px; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 900; }
.sk-lead { margin: 0; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; max-width: 680px; }
.dark .sk-lead { color: var(--sk-muted); }
.light .sk-lead, .white .sk-lead { color: var(--sk-dark-muted); }
.sk-head { margin-bottom: clamp(32px, 5vw, 52px); }
.sk-head.center { text-align: center; }
.sk-head.center .sk-lead { margin: 0 auto; }
.sk-grad { background: linear-gradient(90deg, var(--sk-pink), var(--sk-violet) 55%, var(--sk-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* feature cards */
.sk-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sk-feature { padding: 28px 24px; border-radius: var(--sk-radius); background: #fff; border: 1px solid rgba(23, 20, 46, 0.06); box-shadow: 0 10px 30px rgba(23, 20, 46, 0.06); }
.dark .sk-feature { background: rgba(255, 255, 255, 0.04); border-color: var(--sk-line); box-shadow: none; }
.sk-feature .ic { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px; }
.sk-feature h3 { margin: 0 0 8px; font-size: 19px; }
.sk-feature p { margin: 0; line-height: 1.6; font-size: 15px; color: var(--sk-dark-muted); }
.dark .sk-feature p { color: var(--sk-muted); }
.ic.pink { background: linear-gradient(135deg, #ff5fa8, #ff2e88); }
.ic.violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.ic.cyan { background: linear-gradient(135deg, #67f7f2, #14b8c8); }
.ic.amber { background: linear-gradient(135deg, #ffd166, #ff8a3d); }
@media (max-width: 1000px) { .sk-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sk-features { grid-template-columns: 1fr; } }

/* steps */
.sk-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.sk-step { position: relative; padding: 28px 22px 24px; border-radius: var(--sk-radius); background: #fff; border: 1px solid rgba(23, 20, 46, 0.06); }
.dark .sk-step { background: rgba(255, 255, 255, 0.04); border-color: var(--sk-line); }
.sk-step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px; background: linear-gradient(135deg, var(--sk-pink), var(--sk-violet)); color: #fff; font-weight: 900; }
.sk-step h3 { margin: 0 0 8px; font-size: 18px; }
.sk-step p { margin: 0; color: var(--sk-dark-muted); line-height: 1.6; font-size: 15px; }
.dark .sk-step p { color: var(--sk-muted); }
@media (max-width: 1000px) { .sk-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sk-steps { grid-template-columns: 1fr; } }

/* call-to-action strip */
.sk-cta {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(28px, 5vw, 48px); border-radius: 28px; color: #fff;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 40%), linear-gradient(120deg, #ff2e88, #8b5cf6 60%, #3b82f6);
  box-shadow: 0 24px 60px rgba(139, 92, 246, 0.35);
}
.sk-cta h2 { margin: 0 0 8px; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.15; }
.sk-cta p { margin: 0; opacity: 0.9; line-height: 1.6; max-width: 560px; }
.sk-cta .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.sk-cta .sk-btn.white { background: #fff; color: #2b1757; }
.sk-cta .sk-btn.clear { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.35); }

/* FAQ */
.sk-faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.sk-faq details { border-radius: 16px; padding: 18px 22px; background: #fff; border: 1px solid rgba(23, 20, 46, 0.08); }
.dark .sk-faq details { background: rgba(255, 255, 255, 0.04); border-color: var(--sk-line); }
.sk-faq summary { cursor: pointer; font-weight: 800; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.sk-faq summary::-webkit-details-marker { display: none; }
.sk-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--sk-violet); }
.sk-faq details[open] summary::after { content: "−"; }
.sk-faq p { margin: 12px 0 0; line-height: 1.65; color: var(--sk-dark-muted); }
.dark .sk-faq p { color: var(--sk-muted); }
.sk-faq a { color: var(--sk-violet); }

/* small page hero (inner pages) */
.sk-page-hero {
  position: relative; overflow: hidden; padding: clamp(56px, 9vw, 96px) var(--sk-gutter) clamp(48px, 7vw, 72px); text-align: center; color: var(--sk-text); font-family: var(--sk-font);
  background: radial-gradient(circle at 20% 0%, rgba(255, 46, 136, 0.28), transparent 45%), radial-gradient(circle at 85% 20%, rgba(139, 92, 246, 0.32), transparent 45%), var(--sk-ink);
}
.sk-page-hero h1 { margin: 16px 0 12px; font-size: clamp(34px, 5.6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 900; }
.sk-page-hero p { margin: 0 auto; max-width: 640px; color: var(--sk-muted); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6; }

/* ===== footer ============================================================ */
.sk-footer { width: 100%; background: var(--sk-ink); color: var(--sk-muted); font-family: var(--sk-font); border-top: 1px solid var(--sk-line); }
.sk-footer-in { max-width: var(--sk-max); margin: 0 auto; padding: 56px var(--sk-gutter) 28px; }
.sk-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.sk-footer h4 { margin: 0 0 14px; color: var(--sk-text); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.sk-footer a { color: var(--sk-muted); text-decoration: none; }
.sk-footer a:hover { color: var(--sk-text); }
.sk-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.sk-footer li { padding: 0; margin: 0; font-size: 15px; line-height: 1.5; } /* (pages' own li styles stay out) */
.sk-footer li::before { content: none !important; }
.sk-footer .sk-logo { margin-bottom: 14px; }
.sk-footer .blurb { margin: 0; line-height: 1.65; font-size: 14px; max-width: 340px; }
.sk-footer .app-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; padding: 11px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--sk-line); color: var(--sk-text); font-weight: 700; font-size: 14px; }
.sk-footer .app-btn svg { width: 20px; height: 20px; }
.sk-footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--sk-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; line-height: 1.6; }
.sk-footer-bottom p { margin: 0; }
@media (max-width: 900px) { .sk-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sk-footer-grid { grid-template-columns: 1fr; } }

/* inside the Windows app: no "download the app" anywhere */
html.in-app .sk-no-app { display: none !important; }

/* ===== game cards (home, Games page) ===== */
.sk-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .sk-games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sk-games { grid-template-columns: 1fr; } }
.sk-game {
  position: relative; display: flex; flex-direction: column; border-radius: var(--sk-radius); overflow: hidden; text-decoration: none; color: var(--sk-text);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--sk-line); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; font-family: var(--sk-font);
}
.sk-game:hover { transform: translateY(-6px); border-color: rgba(255, 46, 136, 0.55); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 46, 136, 0.25); }
.sk-game .cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0f0d24; }
.sk-game .body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.sk-game .tag { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; padding: 5px 10px; border-radius: 99px; background: rgba(139, 92, 246, 0.16); color: #c4b5fd; }
.sk-game h3 { margin: 0; font-size: 21px; letter-spacing: -0.01em; }
.sk-game p { margin: 0; color: var(--sk-muted); line-height: 1.6; font-size: 14.5px; flex: 1; }
.sk-game .go { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-weight: 800; font-size: 14px; color: #ff8cc0; }
.sk-game .tier { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: rgba(37, 244, 238, 0.12); color: var(--sk-cyan); }
.sk-empty { grid-column: 1 / -1; text-align: center; color: var(--sk-muted); padding: 40px 0; }

/* logged in / out only (site.js sets html.logged-in) */
html.logged-in .sk-out-only, html:not(.logged-in) .sk-in-only { display: none !important; }


/* website / app only */
html:not(.in-app) .sk-app-only { display: none !important; }
html { background: var(--sk-ink); }

/* "Download app" in the header */
.sk-dl { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 99px; background: linear-gradient(135deg, var(--sk-pink), var(--sk-violet)); color: #fff; text-decoration: none; font: 800 14px var(--sk-font); white-space: nowrap; box-shadow: 0 8px 22px rgba(255, 46, 136, 0.3); transition: transform 0.15s, box-shadow 0.15s; }
.sk-dl:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(255, 46, 136, 0.45); }
.sk-dl svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .sk-dl { width: 44px; padding: 0; justify-content: center; } .sk-dl span { display: none; } }

/* the "get the Windows app" popup */
.sk-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(6, 4, 18, 0.74); backdrop-filter: blur(6px); font-family: var(--sk-font); animation: skFade 0.18s ease-out; }
.sk-modal-card { position: relative; width: min(460px, 100%); padding: 36px 30px 28px; border-radius: 28px; text-align: center; color: var(--sk-text); background: radial-gradient(circle at 50% 0%, rgba(255, 46, 136, 0.28), transparent 55%), radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.3), transparent 50%), #151233; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); animation: skPop 0.22s cubic-bezier(.2,.9,.3,1.2); }
.sk-modal-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.07); color: #fff; font-size: 16px; cursor: pointer; }
.sk-modal-x:hover { background: var(--sk-pink); border-color: var(--sk-pink); }
.sk-modal-ic { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--sk-pink), var(--sk-violet)); box-shadow: 0 14px 34px rgba(255, 46, 136, 0.4); }
.sk-modal-ic svg { width: 36px; height: 36px; color: #fff; }
.sk-modal h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.2; }
.sk-modal p { margin: 0 0 22px; color: var(--sk-muted); line-height: 1.6; font-size: 15px; }
.sk-modal p b { color: var(--sk-text); }
.sk-modal .sk-btn { width: 100%; }
.sk-modal .sk-btn + .sk-btn { margin-top: 10px; }
.sk-modal .sk-choose { margin: 0 0 12px; font-weight: 700; color: var(--sk-text); }
.sk-modal small { display: block; margin-top: 12px; color: var(--sk-muted); font-size: 12.5px; }
@keyframes skFade { from { opacity: 0; } }
@keyframes skPop { from { opacity: 0; transform: scale(0.94) translateY(10px); } }

/* ===== the Windows app: dashboard layout ===== */
html.in-app body { padding-left: 248px; }
.sk-side { position: fixed; z-index: 1100; left: 0; top: 0; bottom: 0; width: 248px; display: flex; flex-direction: column; gap: 22px; padding: 18px 14px; background: radial-gradient(circle at 0% 0%, rgba(255, 46, 136, 0.14), transparent 50%), #0f0c24; border-right: 1px solid var(--sk-line); font-family: var(--sk-font); }
.sk-side .sk-logo { padding: 4px 8px 10px; }
.sk-side nav, .sk-side-foot { display: grid; gap: 4px; }
.sk-side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--sk-line); }
.sk-side a:not(.sk-logo) { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; color: var(--sk-muted); text-decoration: none; font-weight: 750; font-size: 15.5px; transition: background 0.15s, color 0.15s; }
.sk-side a:not(.sk-logo):hover { background: rgba(255, 255, 255, 0.06); color: var(--sk-text); }
.sk-side a.on { background: linear-gradient(135deg, rgba(255, 46, 136, 0.22), rgba(139, 92, 246, 0.22)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 46, 136, 0.35); }
.sk-side a[hidden] { display: none !important; }
.sk-side .i { width: 26px; text-align: center; font-size: 18px; }
html.in-app .sk-header-in { max-width: none; padding: 0 28px; }
.sk-ptitle { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -0.01em; }
html.in-app .sk-page-hero { display: none; }
html.in-app .sk-section { padding: 28px 28px 48px; }
html.in-app .sk-section .sk-wrap { max-width: 1400px; }
html.in-app .sk-no-app { display: none !important; }

/* ===== game cards v2: download status (app), Play + Actions setup (app), stretched link ===== */
.sk-game .sk-game-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.sk-game .go a { position: relative; z-index: 2; }
.sk-game .go { gap: 10px; flex-wrap: wrap; }
.sk-game .sk-play { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 120px; min-height: 46px; padding: 0 18px; border-radius: 99px; background: linear-gradient(135deg, var(--sk-pink), var(--sk-violet)); color: #fff; font: 900 16px var(--sk-font); text-decoration: none; box-shadow: 0 8px 22px rgba(255, 46, 136, 0.35); transition: transform 0.15s, box-shadow 0.15s; }
.sk-game .sk-play:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 46, 136, 0.5); }
.sk-game .sk-setup { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 1 1 120px; min-height: 46px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); color: var(--sk-text); font: 800 14px var(--sk-font); text-decoration: none; }
.sk-game .sk-setup:hover { background: rgba(255, 255, 255, 0.12); }
html.in-app .sk-game .go .tier { flex: none; }

.sk-game .sk-play, .sk-game .sk-setup { white-space: nowrap; }
/* the app's Actions setup page: the dashboard's dark look */
html.in-app body.ap .sk-section.light { background: var(--sk-night); }
html.in-app body.ap .picker h3 { color: var(--sk-muted); }
html.in-app body.ap .pick { background: rgba(255, 255, 255, 0.045); color: var(--sk-text); border-color: var(--sk-line); box-shadow: none; }
html.in-app body.ap .pick.on { border-color: var(--sk-pink); background: linear-gradient(135deg, rgba(255, 46, 136, 0.16), rgba(139, 92, 246, 0.16)); }
html.in-app body.ap .editor { box-shadow: none; }

/* ---- the app: My games (Remove on the cards) + the "Download this game" popup ---- */
.sk-mg-rm { position: absolute; z-index: 3; top: 14px; left: 14px; padding: 8px 13px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(10, 8, 28, 0.72); backdrop-filter: blur(6px); color: #fff; font: 750 13px var(--sk-font); cursor: pointer; transition: background 0.15s; }
.sk-mg-rm:hover { background: var(--sk-pink); border-color: var(--sk-pink); }
.sk-get-img { display: block; width: 100%; max-height: 190px; object-fit: cover; margin: 0 0 18px; border-radius: 18px; }
.sk-get-prog { margin: -6px 0 16px; }
.sk-get-bar { height: 10px; border-radius: 99px; background: rgba(0, 0, 0, 0.35); overflow: hidden; }
.sk-get-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sk-pink), var(--sk-violet)); transition: width 0.2s; }
.sk-get-prog small { margin-top: 8px; }
.sk-side .sk-ver { margin: -28px 0 0 54px; padding: 0; font-size: 12.5px; font-weight: 700; color: var(--sk-muted); letter-spacing: 0.02em; }

/* ===== pointer cursor on everything clickable (one global rule) — disabled: not-allowed, no hover ===== */
a[href], button, [role="button"], [role="tab"], summary, select, label[for], .clickable,
input[type="checkbox"], input[type="radio"], input[type="range"], input[type="submit"], input[type="button"], input[type="file"] { cursor: pointer; }
button:disabled, [aria-disabled="true"], input:disabled, select:disabled, .is-disabled { cursor: not-allowed !important; }
button:disabled:hover, [aria-disabled="true"]:hover { transform: none !important; filter: none !important; }

/* ===== loading states (SK.ui in site.js): skeletons the same size as the real content, error + Retry ===== */
@keyframes skShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-skel { display: block; border-radius: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)) 0 0 / 200% 100%; animation: skShimmer 1.3s linear infinite; }
.sk-skel.l { height: 14px; margin: 0 0 12px; }
.sk-skel.l.t { height: 22px; width: 62%; }
.sk-skel.l.s { height: 22px; width: 38%; border-radius: 99px; }
.sk-skel.l.m { width: 74%; }
.sk-skel.btn { height: 46px; width: 60%; border-radius: 99px; margin-top: 18px; }
.sk-skel-card { pointer-events: none; }
.sk-skel-card .sk-skel.cover { aspect-ratio: 16 / 9; border-radius: 0; }
.sk-skel-card:hover { transform: none !important; }
.sk-skel-block { padding: 24px; border-radius: 20px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--sk-line); }
.sk-err { grid-column: 1 / -1; padding: 28px; border-radius: 20px; text-align: center; background: rgba(254, 44, 85, 0.08); border: 1px solid rgba(254, 44, 85, 0.35); color: var(--sk-text); font-family: var(--sk-font); }
.sk-err b { font-size: 17px; }
.sk-err p { margin: 8px 0 16px; color: var(--sk-muted); }
.pick-skel { padding: 4px 6px; }
.pick-skel .sk-skel.l { height: 40px; border-radius: 12px; }

/* ===== the app: download status icon on every game card (shared/downloads.js) ===== */
.sk-dlst { position: absolute; z-index: 2; top: 12px; right: 12px; width: 46px; height: 46px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(11, 10, 26, 0.66); backdrop-filter: blur(8px); color: #fff; transition: transform 0.15s, background 0.15s; }
.sk-dlst[hidden] { display: none; }
.sk-dlst svg { width: 22px; height: 22px; }
.sk-dlst.none:hover { transform: scale(1.08); background: linear-gradient(135deg, var(--sk-pink), var(--sk-violet)); border-color: transparent; }
.sk-dlst.installed { background: linear-gradient(135deg, #22c55e, #16a34a); border-color: transparent; box-shadow: 0 6px 18px rgba(34, 197, 94, 0.4); cursor: default; }
.sk-dlst.loading { background: rgba(11, 10, 26, 0.5); }
.sk-dlst.downloading svg, .sk-dlst .sk-ring { width: 44px; height: 44px; }
.sk-ring .bg { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 4; }
.sk-ring .fg { fill: none; stroke: var(--sk-pink); stroke-width: 4; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 0.3s; }
.sk-ring text { fill: #fff; font: 800 12px var(--sk-font); }

/* ===== the app: downloads indicator (top bar) + panel ===== */
.sk-dlind { position: relative; }
.sk-dlind-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--sk-line); background: rgba(255, 255, 255, 0.05); color: var(--sk-muted); display: flex; align-items: center; justify-content: center; padding: 0; transition: background 0.15s, color 0.15s; }
.sk-dlind-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.sk-dlind-btn .ic svg { width: 20px; height: 20px; display: block; }
.sk-dlind.busy .sk-dlind-btn { color: #fff; border-color: rgba(255, 46, 136, 0.5); }
.sk-dlind-btn .sk-ring { position: absolute; inset: 2px; width: 40px; height: 40px; }
.sk-dlind-btn .badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--sk-pink); color: #fff; font: 900 11.5px/20px var(--sk-font); text-align: center; box-shadow: 0 0 0 2px var(--sk-ink); }
.sk-dlpanel { position: absolute; z-index: 1200; top: calc(100% + 10px); right: 0; width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; padding: 14px; border-radius: 20px; background: #151233; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); font-family: var(--sk-font); }
.sk-dlpanel[hidden] { display: none; }
.sk-dlpanel-h { padding: 2px 6px 10px; font-weight: 900; font-size: 15px; color: #fff; }
.sk-dlpanel-empty { margin: 0; padding: 6px 6px 8px; color: var(--sk-muted); font-size: 13.5px; line-height: 1.5; }
.sk-dlrow { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.sk-dlrow + .sk-dlrow { margin-top: 8px; }
.sk-dlrow img, .sk-dlrow .ph { width: 52px; height: 38px; flex: none; border-radius: 9px; object-fit: cover; background: #1d1840; }
.sk-dlrow .mid { flex: 1; min-width: 0; display: grid; gap: 3px; }
.sk-dlrow .mid b { color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-dlrow .mid small { color: var(--sk-muted); font-size: 12px; }
.sk-dlrow.done .mid small { color: #4ade80; }
.sk-dlrow.error .mid small { color: #ff8aa5; }
.sk-dlrow .bar { height: 6px; border-radius: 99px; background: rgba(0, 0, 0, 0.35); overflow: hidden; }
.sk-dlrow .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sk-pink), var(--sk-violet)); transition: width 0.25s; }
.sk-dlrow .cancel { flex: none; padding: 7px 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; color: var(--sk-text); font: 800 12.5px var(--sk-font); }
.sk-dlrow .cancel:hover:not(:disabled) { background: rgba(254, 44, 85, 0.25); border-color: rgba(254, 44, 85, 0.5); }
.sk-get-note { color: var(--sk-muted); }

/* ===== toasts ===== */
#sk-toasts { position: fixed; z-index: 4000; right: 20px; bottom: 20px; display: grid; gap: 10px; justify-items: end; pointer-events: none; }
.sk-toast { max-width: 380px; padding: 13px 18px; border-radius: 14px; background: #1d1840; border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; font: 750 14.5px/1.45 var(--sk-font); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); animation: skPop 0.22s ease-out; transition: opacity 0.4s, transform 0.4s; }
.sk-toast.ok { border-color: rgba(74, 222, 128, 0.5); }
.sk-toast.bad { border-color: rgba(254, 44, 85, 0.55); }
.sk-toast.out { opacity: 0; transform: translateY(8px); }

/* 3D / 2D badge on every game card (on the picture, bottom-left) */
.sk-game .sk-dim { position: absolute; z-index: 2; left: 12px; top: 12px; padding: 4px 10px; border-radius: 99px; font: 900 12px var(--sk-font); letter-spacing: 0.08em; color: #fff; pointer-events: none; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
.sk-game .sk-dim.d3D { background: linear-gradient(135deg, #8b5cf6, #ff2e88); }
.sk-game .sk-dim.d2D { background: linear-gradient(135deg, #0ea5e9, #14b8a6); }
.sk-game .sk-mg-rm ~ .sk-dim, .sk-game:has(.sk-mg-rm) .sk-dim { top: 56px; }
/* the tags on a card: 3D / 2D + 👤 Single / 👥 Multiplayer (a row, top left) */
.sk-game .sk-tags { position: absolute; z-index: 2; left: 12px; top: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.sk-game .sk-tags .sk-dim { position: static; }
.sk-game:has(.sk-mg-rm) .sk-tags { top: 56px; }
.sk-game .sk-mode { box-sizing: border-box; padding-bottom: 1.6px !important; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 22px; padding: 0; border-radius: 99px; font: 13px/1 "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); background: linear-gradient(135deg, #0ea5e9, #14b8a6); }
.sk-game .sk-mode.m-multi { padding-bottom: 5.6px !important; background: linear-gradient(135deg, #8b5cf6, #ff2e88); }
