  :root{
    --void: #0a0912;
    --surface: #14101f;
    --surface-2: #1c1630;
    --line: #2a2340;
    --purple: #a855f7;
    --purple-dim: #7c3aed33;
    --cyan: #2dd4e8;
    --red: #ff4757;
    --yellow: #ffd23f;
    --text: #f3f1fa;
    --text-muted: #948db3;
    --text-faint: #5c5578;
  }

  *{ margin:0; padding:0; box-sizing:border-box; }

  @media (prefers-reduced-motion: reduce){
    *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  }

  html{ scroll-behavior: smooth; }

  body{
    background: var(--void);
    background-image:
      radial-gradient(ellipse 900px 500px at 15% -10%, #7c3aed22, transparent),
      radial-gradient(ellipse 700px 500px at 100% 20%, #2dd4e814, transparent);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    min-height: 100vh;
  }

  ::selection{ background: var(--purple); color: #fff; }

  a{ color: var(--cyan); }

  .wrap{
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* ---------- NAV (floating glass — adaptacja stylu SmartNetStudio) ---------- */
  body{ padding-top: 88px; }

  nav.top-nav{
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 16px;
    width: calc(100% - 40px);
    max-width: 1080px;
    background: rgba(10,9,18,0.75);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(168,85,247,0.22);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
    transition: top .35s cubic-bezier(.4,0,.2,1), opacity .35s ease, transform .35s cubic-bezier(.4,0,.2,1);
  }
  nav.top-nav.nav-hidden{
    top: -90px;
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }

  .logo{
    display:flex;
    align-items:center;
    gap: 9px;
    text-decoration:none;
    flex-shrink:0;
  }
  .logo-badge{
    width: 34px; height: 34px;
    flex-shrink:0;
    display:block;
  }
  .logo-text{
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.02em;
    white-space: nowrap;
    background-image: linear-gradient(135deg, var(--red), var(--yellow), var(--cyan), var(--purple));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logo-shift 6s ease infinite;
  }
  @keyframes logo-shift{
    0%,100%{ background-position: 0% 50%; }
    50%{ background-position: 100% 50%; }
  }

  .nav-links{
    display:flex;
    gap: 26px;
    list-style:none;
    flex-shrink:0;
  }
  .nav-links a{
    font-family:'Space Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration:none;
    transition: color .15s;
    white-space: nowrap;
  }
  .nav-links a:hover{ color: var(--cyan); }

  .nav-right{ display:flex; align-items:center; gap: 10px; flex-shrink:0; }

  .nav-live-btn{
    display:flex; align-items:center; gap:8px;
    background: #170c22;
    border: 1px solid rgba(255,71,87,.8);
    border-radius: 8px;
    padding: 7px 14px;
    cursor:pointer;
    color: var(--red);
    font-family:'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: .06em;
    text-decoration:none;
    box-shadow: 0 0 10px rgba(255,71,87,.4), 0 0 20px rgba(255,71,87,.15), inset 0 0 10px rgba(255,71,87,.05);
    animation: nav-breathe 3s ease-in-out infinite;
    white-space: nowrap;
  }
  @keyframes nav-breathe{
    0%,100%{ box-shadow: 0 0 10px rgba(255,71,87,.4), 0 0 20px rgba(255,71,87,.15), inset 0 0 10px rgba(255,71,87,.05); }
    50%{ box-shadow: 0 0 16px rgba(255,71,87,.65), 0 0 28px rgba(255,71,87,.25), inset 0 0 10px rgba(255,71,87,.08); }
  }
  .nav-live-btn .dot{
    width:6px; height:6px; border-radius:50%;
    background: var(--red);
    box-shadow: 0 0 8px 1px var(--red);
  }

  .nav-spin-badge{
    cursor:pointer;
    position:relative;
    padding: 7px 16px;
    border-radius: 8px;
    background: transparent;
    border: none;
    font-family:'Space Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .08em;
    text-transform: uppercase;
    overflow: hidden;
    transition: opacity .2s;
    white-space: nowrap;
  }
  .nav-spin-badge:hover{ opacity: .85; }
  .nav-spin-badge::before{
    content:"";
    position:absolute; inset:-1px;
    border-radius:9px;
    background: conic-gradient(from 0deg, var(--purple), var(--cyan), var(--red), var(--yellow), var(--purple));
    animation: spin-badge 2.5s linear infinite;
    z-index:0;
  }
  .nav-spin-badge::after{
    content:"";
    position:absolute; inset:1px;
    border-radius:7px;
    background: #0d0820;
    z-index:1;
  }
  .nav-spin-badge span{ position:relative; z-index:2; }
  @keyframes spin-badge{ to{ transform: rotate(360deg); } }

  .nav-hamburger{
    display:none;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    width:34px; height:34px;
    border-radius:8px;
    border: 1px solid var(--line);
    background: transparent;
    cursor:pointer;
    flex-shrink:0;
  }
  .nav-hamburger span{
    width:16px; height:2px;
    background: var(--text);
    margin: 0 auto;
    transition: transform .2s, opacity .2s;
  }

  @media (max-width: 820px){
    .nav-links{ display:none; }
    .nav-live-btn span:not(.dot){ display:none; }
  }
  @media (max-width: 640px){
    nav.top-nav{ padding: 8px 12px; }
    .nav-spin-badge{ display:none; }
    .nav-hamburger{ display:flex; }
  }

  /* ---------- MOBILE MENU ---------- */
  .mobile-menu{
    position: fixed;
    top: 78px;
    left: 20px;
    right: 20px;
    z-index: 89;
    background: rgba(10,9,18,0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168,85,247,0.22);
    border-radius: 14px;
    padding: 8px;
    display:flex;
    flex-direction:column;
    gap: 2px;
    max-height: 0;
    overflow:hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .3s ease;
  }
  .mobile-menu.open{ max-height: 240px; opacity: 1; }
  .mobile-menu a{
    color: var(--text-muted);
    text-decoration:none;
    font-family:'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 14px;
    border-radius: 8px;
    transition: background .15s, color .15s;
  }
  .mobile-menu a:hover{ background: var(--surface-2); color: var(--text); }

  /* ---------- HERO ---------- */
  header.hero{
    padding: 72px 0 56px;
    border-bottom: 1px solid var(--line);
  }
  .eyebrow{
    font-family:'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--cyan);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom: 20px;
  }
  .eyebrow::before{
    content:"";
    width:18px; height:1px;
    background: var(--cyan);
  }
  h1{
    font-family:'Space Grotesk', sans-serif;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    max-width: 16ch;
  }
  h1 em{
    font-style: normal;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .hero-sub{
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 46ch;
    margin-top: 18px;
  }

  .last-draw{
    margin-top: 40px;
  }
  .last-draw-label{
    font-family:'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-faint);
    margin-bottom: 12px;
    display:flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  .last-draw-label b{ color: var(--text-muted); font-weight:500; }
  .balls{
    display:flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .ball{
    width: 40px; height:40px;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-family:'JetBrains Mono', monospace;
    font-weight:700;
    font-size: 0.85rem;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text);
    opacity:0;
    animation: pop .4s ease forwards;
  }
  @keyframes pop{
    from{ opacity:0; transform: scale(.5); }
    to{ opacity:1; transform: scale(1); }
  }

  /* ---------- SECTION ---------- */
  section{ padding: 64px 0; border-bottom: 1px solid var(--line); }
  .section-head{ margin-bottom: 36px; max-width: 60ch; }
  .section-tag{
    font-family:'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
  }
  h2{
    font-family:'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  .section-desc{
    color: var(--text-muted);
    margin-top: 12px;
    font-size: 0.98rem;
  }

  /* ---------- HEATMAP ---------- */
  .legend{
    display:flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    font-family:'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
  }
  .legend-item{ display:flex; align-items:center; gap:8px; }
  .legend-swatch{ width:12px; height:12px; border-radius:3px; }

  .heatgrid{
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
  }
  @media (max-width: 640px){
    .heatgrid{ grid-template-columns: repeat(8, 1fr); }
  }
  .tile{
    aspect-ratio: 1;
    border-radius: 8px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    font-family:'JetBrains Mono', monospace;
    font-weight:700;
    font-size: 0.85rem;
    border: 1px solid var(--line);
    cursor: default;
    position: relative;
    transition: transform .15s;
  }
  .tile:hover{ transform: translateY(-2px); z-index: 2; }
  .tile .count{
    font-size: 0.6rem;
    font-weight: 500;
    opacity: 0.75;
    margin-top: 2px;
  }
  .tile:focus-visible{ outline: 2px solid var(--cyan); outline-offset: 2px; }

  .tile.temp-hot{ background: #ff475722; border-color: #ff475755; color: var(--red); box-shadow: 0 0 18px -6px #ff475766; }
  .tile.temp-warm{ background: #ffd23f1c; border-color: #ffd23f4d; color: var(--yellow); }
  .tile.temp-mid{ background: var(--surface-2); border-color: var(--line); color: var(--text-muted); }
  .tile.temp-cold{ background: #2dd4e81c; border-color: #2dd4e84d; color: var(--cyan); }

  .ranking-lists{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
  }
  @media (max-width: 640px){ .ranking-lists{ grid-template-columns: 1fr; } }
  .rank-col h3{
    font-family:'Space Grotesk', sans-serif;
    font-size: 1rem;
    margin-bottom: 14px;
    display:flex;
    align-items:center;
    gap:8px;
  }
  .rank-col ol{ list-style:none; display:flex; flex-direction:column; gap:6px; }
  .rank-col li{
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-family:'JetBrains Mono', monospace;
    font-size: 0.85rem;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
  }
  .rank-col li b{ font-size: 1rem; }
  .rank-col li span{ color: var(--text-faint); font-size: 0.75rem; }
  .rank-col.hot li b{ color: var(--red); }
  .rank-col.cold li b{ color: var(--cyan); }

  /* ---------- CHECKER ---------- */
  .checker-box{
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
  }
  .picks{
    display:flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0 24px;
  }
  .pick-slot{
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--void);
    border: 1.5px dashed var(--line);
    display:flex; align-items:center; justify-content:center;
    font-family:'JetBrains Mono', monospace;
    font-weight:700;
    color: var(--text-faint);
    font-size: 1rem;
  }
  .pick-slot.filled{
    border-style: solid;
    border-color: var(--purple);
    color: var(--text);
    background: var(--purple-dim);
  }
  .pick-slot.hit{
    border-color: var(--red);
    background: #ff475722;
    color: var(--red);
    box-shadow: 0 0 16px -4px #ff475788;
  }

  .num-picker{
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    margin-bottom: 24px;
  }
  @media (max-width: 640px){ .num-picker{ grid-template-columns: repeat(8, 1fr); } }
  .num-btn{
    aspect-ratio:1;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--void);
    color: var(--text-muted);
    font-family:'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all .12s;
  }
  .num-btn:hover:not(:disabled){ border-color: var(--purple); color: var(--text); }
  .num-btn.selected{ background: var(--purple); border-color: var(--purple); color: #fff; }
  .num-btn:disabled{ opacity: 0.3; cursor: not-allowed; }
  .num-btn:focus-visible{ outline: 2px solid var(--cyan); outline-offset: 2px; }

  .checker-actions{
    display:flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items:center;
  }
  .btn{
    font-family:'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 22px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s;
  }
  .btn-primary{
    background: linear-gradient(90deg, var(--purple), #7c3aed);
    color: #fff;
    box-shadow: 0 4px 20px -6px #a855f788;
  }
  .btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 6px 24px -6px #a855f7aa; }
  .btn-primary:disabled{ opacity:0.4; cursor:not-allowed; transform:none; box-shadow:none; }
  .btn-ghost{
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-muted);
  }
  .btn-ghost:hover{ color: var(--text); border-color: var(--text-faint); }

  .result{
    margin-top: 24px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--line);
    display:none;
  }
  .result.show{ display:block; animation: pop .3s ease; }
  .result-win{ border-color: #ffd23f66; background: #ffd23f14; }
  .result-nowin{ border-color: var(--line); background: var(--void); }
  .result-headline{
    font-family:'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
  }
  .result-win .result-headline{ color: var(--yellow); }
  .result-detail{ color: var(--text-muted); font-size: 0.9rem; }

  /* ---------- TABLE ---------- */
  .table-wrap{ overflow-x:auto; border: 1px solid var(--line); border-radius: 12px; }
  table{
    width:100%;
    border-collapse: collapse;
    font-family:'JetBrains Mono', monospace;
    font-size: 0.82rem;
  }
  th, td{
    padding: 10px 14px;
    text-align:center;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    white-space:nowrap;
  }
  th:last-child, td:last-child{ border-right:none; }
  thead th{
    background: var(--surface-2);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
  }
  tbody th{
    background: var(--surface);
    color: var(--text-muted);
    font-weight: 600;
  }
  td{ color: var(--text-faint); }
  td.has-val{ color: var(--text); font-weight: 600; }
  .col-5 td.has-val, .col-5-head{ color: var(--purple) !important; background: #a855f712; }

  /* ---------- FOOTER ---------- */
  footer{
    padding: 40px 0 60px;
    color: var(--text-faint);
    font-size: 0.82rem;
  }
  footer a{ color: var(--text-muted); }
  .footer-top{
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    gap: 12px;
    margin-bottom: 16px;
  }
