:root{
  --bg:#071225;
  --bg2:#0b1b33;
  --card: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.12);
  --text:#eaf2ff;
  --muted: rgba(234,242,255,.72);
  --blue:#3b82f6;
  --blue2:#22c55e;
  --danger:#fb7185;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 15% 0%, rgba(59,130,246,.20), transparent 55%),
    radial-gradient(900px 520px at 85% 15%, rgba(34,197,94,.16), transparent 55%),
    linear-gradient(160deg, var(--bg), var(--bg2));
}

.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; justify-content:space-between; align-items:center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(5,12,22,.55);
  backdrop-filter: blur(10px);
}

.brand{ display:flex; gap: 12px; align-items:center; }
.logo{
  width: 38px; height: 38px;
  border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  font-weight: 1000;
  background: linear-gradient(135deg, var(--blue), #60a5fa);
  box-shadow: 0 10px 25px rgba(59,130,246,.22);
}
.brand-name{ font-weight:1000; letter-spacing:.2px; }
.brand-sub{ font-size:12px; color: var(--muted); margin-top:2px; }

.header-right{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.pill{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,.35);
  background: rgba(59,130,246,.10);
  color: var(--muted);
  font-weight: 900;
}
.pill.alt{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.10);
}
.pill span{ color: var(--text); }

.wrap{ width: min(1040px, calc(100% - 32px)); margin: 22px auto 70px; }
.hero{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.hero h1{ margin:0; font-size: 34px; }
.hero p{ margin: 8px 0 0; color: var(--muted); }

.namebox{ margin-top: 14px; }
label{ display:block; font-weight: 900; margin-bottom: 8px; }
input{
  width:100%;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  color: var(--text);
  outline:none;
}
input:focus{ border-color: rgba(59,130,246,.55); }
.hint{ color: var(--muted); font-size: 12px; margin-top: 6px; }

.card{
  margin-top: 16px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.tabs{ display:flex; gap:10px; margin-bottom: 14px; }
.tab{
  flex:1;
  padding: 10px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.14);
  color: var(--text);
  font-weight: 1000;
  cursor:pointer;
}
.tab.active{
  border-color: rgba(59,130,246,.55);
  background: rgba(59,130,246,.16);
}

.grid{
  display:grid;
  grid-template-columns: 420px 1fr;
  gap: 16px;
  align-items: start;
}

.wheel-panel{ display:flex; flex-direction:column; gap:10px; }
.wheel-wrap{ position:relative; display:flex; justify-content:center; padding: 10px; }
#wheel{
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
}
.pointer{
  position:absolute;
  top: 8px; left:50%;
  transform: translateX(-50%);
  width:0;height:0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 20px solid rgba(234,242,255,.95);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
}
.note{ min-height: 18px; color: var(--muted); font-size: 13px; }

.actions{ display:flex; flex-direction:column; gap:12px; }
.status{
  min-height: 18px;
  color: var(--muted);
  font-weight: 800;
}
.mini{
  border:1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 12px;
  background: rgba(0,0,0,.14);
}
.mini-title{ font-weight: 1000; margin-bottom: 6px; }
.mini-text{ color: var(--muted); font-size: 13px; line-height: 1.35; }

.btn{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 950;
  cursor:pointer;
  transition: transform .10s ease, background .15s ease, border-color .15s ease;
  user-select:none;
}
.btn.primary{
  border-color: rgba(59,130,246,.60);
  background: rgba(59,130,246,.18);
}
.btn.ghost{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.btn.danger{
  border-color: rgba(251,113,133,.60);
  background: rgba(251,113,133,.14);
}

/* click efekt: zmenší a hned zvětší */
.press:active{ transform: scale(.96); }

.overlay{
  position:fixed; inset:0; z-index:999;
  display:flex; justify-content:center; align-items:center;
  background: rgba(0,0,0,.70);
  backdrop-filter: blur(9px);
}
.hidden{ display:none; }

.fx{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }

.popup{
  position:relative;
  width: min(540px, calc(100% - 40px));
  border-radius: 24px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(8,18,32,.82);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  text-align:center;
  animation: pop .22s ease;
}
@keyframes pop{
  from{ transform: translateY(10px) scale(.92); opacity:0; }
  to{ transform: translateY(0) scale(1); opacity:1; }
}
.popup-top{ color: var(--muted); font-weight: 900; }
.popup-win{
  margin: 10px 0 18px;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 1000;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--blue), #93c5fd);
  -webkit-background-clip:text; background-clip:text; color: transparent;
}

.modal{
  width: min(980px, calc(100% - 40px));
  border-radius: 24px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(8,18,32,.86);
  box-shadow: var(--shadow);
  padding: 18px;
  animation: pop .22s ease;
}
.modal-head{
  display:flex; justify-content:space-between; align-items:flex-start; gap: 12px;
  padding-bottom: 12px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.modal-title{ font-weight: 1000; font-size: 22px; }
.modal-sub{ margin-top:6px; color: var(--muted); font-size: 13px; }
.modal-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.tabs2{ display:flex; gap:10px; margin-top: 14px; }
.tab2{
  flex: 1;
  padding: 10px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.14);
  color: var(--text);
  font-weight: 1000;
  cursor:pointer;
}
.tab2.active{
  border-color: rgba(59,130,246,.55);
  background: rgba(59,130,246,.16);
}

.panel{ margin-top: 12px; }
.two{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.section-title{ font-weight: 1000; margin-bottom: 8px; }
.list{ display:grid; gap:10px; min-height: 90px; }

.item{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.16);
  border-radius: 18px;
  padding: 14px;
}
.item-left{ display:flex; flex-direction:column; gap:4px; }
.item-name{ font-weight: 1000; text-transform: uppercase; }
.item-meta{ color: var(--muted); font-size: 12px; }
.item-right{ display:flex; gap:10px; align-items:center; }

.badge{
  padding: 8px 10px;
  border-radius: 999px;
  border:1px solid rgba(59,130,246,.45);
  background: rgba(59,130,246,.14);
  font-weight: 1000;
  min-width: 60px;
  text-align:center;
}
.empty{
  color: var(--muted);
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: 18px;
  padding: 18px;
  text-align:center;
}

@media(max-width: 920px){
  .grid{ grid-template-columns: 1fr; }
  .two{ grid-template-columns: 1fr; }
}