/* TRZY SZANSE — design system v2 (studio TV: szkło, neon, reflektory) */
:root {
  --bg: #050816;
  --bg2: #0b1130;
  --panel: rgba(18, 26, 60, .72);
  --panel-edge: rgba(98, 116, 200, .28);
  --neon: #2de2ff;
  --neon2: #8b5cf6;
  --gold: #ffd34d;
  --red: #ff4d6d;
  --green: #3dffa0;
  --text: #eef1ff;
  --muted: #8b93b8;
  --font-head: 'Archivo Black', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, #1b2a66 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 12% 110%, rgba(139, 92, 246, .18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 88% 110%, rgba(45, 226, 255, .12) 0%, transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}
/* subtelna siatka studia w tle */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(98, 116, 200, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 116, 200, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
body > * { position: relative; z-index: 1; }

.logo {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: .14em;
  background: linear-gradient(92deg, var(--neon) 10%, #7cc6ff 35%, var(--neon2) 65%, var(--gold) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  filter: drop-shadow(0 0 16px rgba(45, 226, 255, .4));
}

.btn {
  display: inline-block;
  border: 0; cursor: pointer;
  padding: .8em 1.6em;
  border-radius: 13px;
  font-size: 1rem; font-weight: 800;
  font-family: var(--font-body);
  letter-spacing: .02em;
  color: #04122b;
  background: linear-gradient(160deg, #9ff0ff 0%, var(--neon) 35%, #2da8ff 100%);
  box-shadow: 0 4px 20px rgba(45, 226, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .13s, box-shadow .13s, filter .13s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 8px 26px rgba(45, 226, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn:active { transform: translateY(1px); }
.btn:disabled { filter: grayscale(.85); opacity: .45; cursor: not-allowed; transform: none; }
.btn.violet { background: linear-gradient(160deg, #c9b1ff 0%, var(--neon2) 45%, #6d3df0 100%); color: #fff; box-shadow: 0 4px 20px rgba(139, 92, 246, .4), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.green  { background: linear-gradient(160deg, #b8ffd9 0%, #19e58c 45%, #0bbf6f 100%); }
.btn.red    { background: linear-gradient(160deg, #ffb6c4 0%, var(--red) 45%, #e2274d 100%); color: #fff; box-shadow: 0 4px 20px rgba(255, 77, 109, .4), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.gold   { background: linear-gradient(160deg, #fff3c4 0%, var(--gold) 45%, #ffac33 100%); }
.btn.ghost  { background: rgba(10, 15, 40, .6); border: 1px solid var(--panel-edge); color: var(--text); box-shadow: none; }
.btn.ghost:hover { border-color: var(--neon); box-shadow: 0 0 14px rgba(45, 226, 255, .2); }
.btn.big { font-size: 1.25rem; padding: 1em 2em; }

.panel {
  background: linear-gradient(168deg, rgba(28, 38, 84, .78), rgba(12, 17, 44, .88));
  border: 1px solid var(--panel-edge);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
}

input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%;
  background: rgba(7, 11, 32, .85);
  color: var(--text);
  border: 1px solid var(--panel-edge);
  border-radius: 11px;
  padding: .75em 1em;
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(45, 226, 255, .14); }
.muted { color: var(--muted); }

.lives { display: flex; gap: 5px; justify-content: center; }
.life {
  width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9faff, var(--neon) 55%, #0a6e8a);
  box-shadow: 0 0 10px rgba(45, 226, 255, .95), 0 0 22px rgba(45, 226, 255, .4);
  transition: all .45s;
  animation: lifeGlow 2.6s ease-in-out infinite;
}
.life:nth-child(2) { animation-delay: .4s; }
.life:nth-child(3) { animation-delay: .8s; }
.life.off { background: #1a2148; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); animation: none; }
@keyframes lifeGlow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: rgba(26, 33, 72, .95); border: 1px solid var(--red); color: #ffd2db;
  padding: .7em 1.4em; border-radius: 13px; z-index: 99; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none; transition: opacity .3s;
  backdrop-filter: blur(8px);
}
.toast.show { opacity: 1; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-thumb { background: #2b3563; border-radius: 6px; }
::selection { background: rgba(45, 226, 255, .3); }

@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes flashIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0) } 20% { transform: translateX(-9px) } 40% { transform: translateX(8px) } 60% { transform: translateX(-6px) } 80% { transform: translateX(4px) } }
@keyframes floatY { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-7px) } }
