/* Wspólna rama huba WebiGames (boczne menu + górny pasek na telefonie) – odwzorowanie obecnej strony.
   Zostaje bez zmian we wszystkich 5 propozycjach; propozycje zmieniają tylko obszar <main class="wg-main">. */
:root {
  --wg-bg: #070a12;
  --wg-card: #10141e;
  --wg-elev: #0d1119;
  --wg-border: #202a42;
  --wg-text: #f2f4fa;
  --wg-muted: #8a93a8;
  --wg-faint: #5b647a;
  --wg-accent: #3b82f6;
  --wg-violet: #8b5cf6;
  --wg-violet-strong: #a855f7;
  --wg-violet-soft: rgba(139, 92, 246, 0.14);
  --wg-diamond: #22d3ee;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: dark; }
html, body { margin: 0; max-width: 100%; overflow-x: clip; }
body {
  background: #070a14;
  color: var(--wg-text);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle 386px at calc(100% - 190px) 50px, rgba(139, 92, 246, 0.3), transparent 62%),
    radial-gradient(circle 428px at 460px calc(100% - 40px), rgba(59, 130, 246, 0.22), transparent 64%),
    linear-gradient(180deg, #0a0e1d 0%, #070a14 55%, #06080f 100%);
}
.wg-app { position: relative; z-index: 1; display: flex; min-height: 100dvh; }
.wg-app a { color: inherit; }
:focus-visible { outline: 2px solid var(--wg-violet-strong); outline-offset: 2px; }

/* ---- boczne menu ---- */
.wg-side {
  position: sticky; top: 0; height: 100dvh; width: 240px; flex: 0 0 240px;
  display: flex; flex-direction: column; gap: 8px; padding: 20px 16px calc(20px + var(--sab));
  overflow-y: auto; border-right: 1px solid rgba(32, 42, 66, 0.6);
}
.wg-side > * { flex-shrink: 0; }
.wg-logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.wg-logo b { color: var(--wg-violet-strong); font-weight: 800; }
.wg-logo svg { width: 34px; height: 34px; }
.wg-nav { display: flex; flex-direction: column; gap: 2px; }
.wg-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-size: 15px; color: #d6dbe7; }
.wg-nav a:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.wg-nav svg { width: 20px; height: 20px; flex: 0 0 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wg-upd { margin-top: 12px; display: block; padding: 12px 14px; border-radius: 12px; background: rgba(109, 75, 216, 0.28); border: 1px solid rgba(139, 92, 246, 0.35); text-decoration: none; position: relative; }
.wg-upd small { display: block; font-size: 11px; font-weight: 700; color: #c4b5fd; letter-spacing: 0.08em; }
.wg-upd span { display: block; font-size: 14px; font-weight: 700; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-upd i { position: absolute; right: 10px; top: 10px; font-style: normal; font-size: 11px; font-weight: 700; background: var(--wg-violet); border-radius: 99px; min-width: 20px; height: 20px; display: grid; place-items: center; }
.wg-me { margin-top: auto; padding: 14px; border-radius: 14px; border: 1px solid rgba(139, 92, 246, 0.35); background: rgba(16, 20, 30, 0.8); text-decoration: none; display: block; }
.wg-me-top { display: flex; align-items: center; gap: 10px; }
.wg-me img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.wg-me strong { color: #c4b5fd; font-size: 16px; }
.wg-me-row { display: flex; gap: 8px; margin-top: 10px; }
.wg-me-row span { flex: 1; border-radius: 10px; border: 1px solid var(--wg-border); padding: 6px 8px; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wg-me-row span small { display: block; font-size: 9px; color: var(--wg-muted); letter-spacing: 0.08em; }
.wg-me-row .wg-dia { color: var(--wg-diamond); display: flex; align-items: center; gap: 4px; }
.wg-me-bar { display: block; height: 4px; border-radius: 4px; background: var(--wg-border); margin-top: 10px; overflow: hidden; }
.wg-me-bar b { display: block; height: 100%; width: 91%; background: var(--wg-violet); }
.wg-social { padding: 12px; border-radius: 14px; border: 1px solid var(--wg-border); text-align: center; font-size: 13px; color: var(--wg-muted); }
.wg-social div { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.wg-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--wg-border); }
.wg-social svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ---- górny pasek (telefon / tablet) ---- */
.wg-top { display: none; }
.wg-main { flex: 1 1 auto; min-width: 0; position: relative; }

@media (max-width: 1023px) {
  .wg-app { flex-direction: column; }
  .wg-side { display: none; }
  .wg-top {
    display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 40;
    padding: calc(8px + var(--sat)) 12px 8px; background: rgba(7, 10, 18, 0.92);
    border-bottom: 1px solid rgba(32, 42, 66, 0.7);
  }
  .wg-top .wg-logo { padding: 0; font-size: 17px; }
  .wg-top .wg-logo svg { width: 30px; height: 30px; }
  .wg-burger { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--wg-border); background: none; color: var(--wg-text); }
  .wg-burger svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }
  .wg-top-dia { margin-left: auto; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(34, 211, 238, 0.35); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; text-decoration: none; }
  .wg-top-dia svg { width: 16px; height: 16px; }
}
