:root{
  --bg1:#fff8fb;
  --bg2:#f0fcff;
  --accent:#ff4661;
  --accent2:#6f6bff;
  --accent3:#19c37d;
  --text:#1a1b1e;
  --muted:#6b7280;
  --card:#ffffffcc;
  --shadow:0 8px 30px rgba(0,0,0,.08);
  --tile:96px;
  --radius:16px;
  --radius-sm:10px;
  --focus:0 0 0 3px rgba(255,70,97,.35), 0 0 0 6px rgba(111,107,255,.25);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1400px 600px at 20% -10%, #ffe0ea 0%, transparent 70%),
    radial-gradient(1200px 600px at 100% 0%, #e1f7ff 0%, transparent 70%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

/* Header */
.hero{position:relative; overflow:hidden}
.hero__bg{position:relative; height:220px}
.skyline{position:absolute; inset:0; width:100%; height:100%}
.hero__content{
  position:relative; z-index:1; padding:12px 16px 20px; text-align:center;
}
.badge{
  display:inline-block; background:linear-gradient(90deg,#ff7aa7,#ff4661);
  color:#fff; padding:6px 10px; border-radius:999px; font-weight:700; font-size:12px; box-shadow:var(--shadow);
}
.hero h1{margin:8px 0 6px; font-size:28px}
.disclaimer{margin:0 auto; max-width:760px; font-size:14px; color:var(--muted)}

/* Layout */
.game{max-width:980px; margin:0 auto; padding:12px}
.panel{display:flex; flex-wrap:wrap; align-items:center; gap:12px; justify-content:space-between; margin:8px 0}
.panel--top{background:var(--card); border-radius:var(--radius); padding:10px; box-shadow:var(--shadow)}
.balance{display:flex; align-items:center; gap:8px; font-weight:700; font-size:18px}
.balance .currency{color:var(--muted); font-weight:500; font-size:14px}
.bet-control{display:flex; align-items:center; gap:8px}
.bet-display{background:#fff; border-radius:12px; padding:6px 10px; box-shadow:var(--shadow)}
.toggles{display:flex; gap:8px; align-items:center;}

/* Machine */
.machine{margin-top:12px; background:linear-gradient(180deg,#fff,#f8feff); border-radius:20px; padding:12px; box-shadow:var(--shadow)}
.reels{
  position:relative;
  display:grid; grid-template-columns:1fr 1fr 1fr;
  gap:10px; padding:10px; border-radius:16px;
  background:linear-gradient(145deg,#f7f9ff,#fff4f9);
  border:2px solid #ffdee7;
  box-shadow: inset 0 4px 30px rgba(255,70,97,.08), inset 0 -6px 30px rgba(111,107,255,.08);
}
.reel{
  height:calc(var(--tile) * 3); overflow:hidden; border-radius:12px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  border:1px solid #f0f3ff;
  box-shadow:inset 0 0 0 6px rgba(255,255,255,.7);
  position:relative;
}
.symbol{
  height:var(--tile); display:flex; align-items:center; justify-content:center;
  user-select:none; -webkit-user-select:none;
}
.symbol svg{width:68px; height:68px; filter:drop-shadow(0 4px 10px rgba(0,0,0,.08))}
.win-line{
  pointer-events:none; position:absolute; left:6px; right:6px;
  top:calc(var(--tile) + 10px); height:var(--tile);
  border:3px dashed rgba(255,70,97,.5); border-radius:12px; animation:pulse 2.2s infinite ease-in-out;
}
@keyframes pulse{
  0%{opacity:.5} 50%{opacity:1} 100%{opacity:.5}
}
.glow{
  position:absolute; inset:0; border-radius:16px; pointer-events:none;
  box-shadow:0 0 0 0 rgba(255,70,97,.0); transition:box-shadow .4s ease;
}

/* Controls */
.controls{display:flex; justify-content:center; padding:12px}
.btn{
  border:0; background:#eee; color:#222; padding:10px 14px; border-radius:12px;
  font-weight:700; cursor:pointer; transition:transform .05s ease, box-shadow .2s ease, background .2s ease; box-shadow:var(--shadow);
}
.btn:focus-visible{outline:none; box-shadow:var(--focus)}
.btn:active{transform:translateY(1px)}
.btn[disabled]{opacity:.5; cursor:not-allowed; filter:saturate(.7)}
.btn--round{width:44px; height:44px; border-radius:999px; font-size:18px; background:linear-gradient(180deg,#fff,#f2f6ff)}
.btn--toggle{background:linear-gradient(180deg,#fff,#f3fff8);}
.btn--outline{background:#fff; border:2px solid #e8ecff}
.btn--primary{
  background:linear-gradient(90deg, var(--accent), var(--accent2));
  color:#fff;
}
.btn--xl{font-size:20px; padding:16px 28px; border-radius:16px}

/* Info and bottom */
.info{display:flex; justify-content:center; padding:6px; color:#333}
.panel--bottom{
  margin-top:12px; background:var(--card); padding:12px; border-radius:16px; box-shadow:var(--shadow);
}
.panel--bottom .links{display:flex; gap:12px; flex-wrap:wrap}
.link{color:#3446ff; text-decoration:none; font-weight:600}
.link:hover{text-decoration:underline}

/* Cookie bar */
.cookiebar{
  position:fixed; left:10px; right:10px; bottom:10px; z-index:9999;
  background:#ffffff; border-radius:16px; box-shadow:var(--shadow); border:1px solid #ffe4ec;
}
.cookiebar__content{display:flex; gap:12px; align-items:center; justify-content:space-between; padding:12px}
.cookiebar__text{color:#333; font-size:14px}
.cookiebar__actions{display:flex; gap:8px}

/* Result highlight */
.win{color:#0a9d61}
.lose{color:#ef3f5e}
.glow.win{box-shadow:0 0 0 6px rgba(25,195,125,.25), 0 0 0 30px rgba(25,195,125,.12)}
.glow.lose{box-shadow:0 0 0 6px rgba(255,70,97,.2), 0 0 0 30px rgba(255,70,97,.08)}

/* Animacje drobne */
@keyframes confetti{
  0%{transform:translateY(-20px) rotate(0)}
  100%{transform:translateY(120px) rotate(200deg)}
}
.confetti{
  position:absolute; width:10px; height:14px; border-radius:3px;
  animation:confetti .8s ease-out forwards; pointer-events:none;
}

/* Accessibility extras */
.noscript{
  position:fixed; inset:0; background:#fff; display:flex; align-items:center; justify-content:center; z-index:999999;
  font-weight:700; font-size:18px;
}

/* Responsive */
@media (min-width:760px){
  .hero h1{font-size:34px}
  .disclaimer{font-size:15px}
  .panel--top{padding:14px 16px}
  .machine{padding:16px}
}