/* WagnerGate PWA — tmavý, vysoký kontrast (používa sa vonku na slnku) */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0b1220;
  --card: #141e33;
  --text: #f4f7fb;
  --muted: #9fb0c9;
  --accent: #2f81f7;
  --ok: #2ea043;
  --err: #f85149;
  --warn: #d29922;
}
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
header { text-align: center; padding: 12px 0 4px; }
header h1 { font-size: 22px; letter-spacing: 1px; }
header .user { color: var(--muted); font-size: 15px; margin-top: 4px; min-height: 18px; }
main { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px; }

.screen { display: none; width: 100%; max-width: 420px; text-align: center; }
.screen.active { display: block; }

#open-btn {
  width: min(70vw, 260px);
  height: min(70vw, 260px);
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 30% 25%, #3f8ffb, #1f5fd0 70%);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.25;
  box-shadow: 0 12px 40px rgba(47, 129, 247, .35), inset 0 -4px 12px rgba(0,0,0,.25);
  cursor: pointer;
  touch-action: manipulation;
}
#open-btn:active { transform: scale(.97); }
#open-btn:disabled { filter: grayscale(.6) brightness(.7); }

.status { font-size: 18px; min-height: 26px; color: var(--muted); }
.status.ok { color: var(--ok); font-weight: 700; }
.status.err { color: var(--err); }

.progress { width: 100%; max-width: 260px; height: 6px; border-radius: 3px; background: #22304d; overflow: hidden; display: none; }
.progress.on { display: block; }
.progress .bar { height: 100%; width: 0; background: var(--accent); transition: width .3s linear; }

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: left;
  font-size: 16px;
  line-height: 1.5;
}
.card h2 { font-size: 19px; margin-bottom: 10px; }
.card p, .card li { color: var(--muted); }
.card ol { padding-left: 22px; margin: 10px 0; }
.card b { color: var(--text); }

.btn {
  display: block;
  width: 100%;
  padding: 16px;
  margin-top: 12px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.btn.secondary { background: #22304d; color: var(--text); }
.btn.ghost { background: transparent; color: var(--muted); font-weight: 400; font-size: 15px; }
.btn:active { opacity: .85; }
.btn:disabled { opacity: .5; }

input[type=text] {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #2a3a5c;
  background: #0e1730;
  color: var(--text);
  font-size: 17px;
  margin-top: 8px;
}
input[type=text]:focus { outline: 2px solid var(--accent); }

.recent { margin-top: 8px; width: 100%; max-width: 420px; }
.recent h3 { font-size: 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; text-align: center; }
.recent ul { list-style: none; }
.recent li { color: var(--muted); font-size: 14px; padding: 5px 0; text-align: center; border-top: 1px solid #1c2946; }

footer { text-align: center; color: #55648a; font-size: 12px; padding-top: 18px; }
.big-emoji { font-size: 44px; text-align: center; display: block; margin-bottom: 10px; }
