:root{
  --bg0:#000000;
  --bg1:#1c15d6; /* den */
  --bg2:#ff0000; /* přechod */
  --bg3:#240347; /* večer 1 */
  --bg4:#2d0242; /* večer 2 */
  --text:#ffffff;
  --border:rgba(255,255,255,0.3);
  --btn-bg:rgba(255,255,255,0.05);
  --btn-bg-hover:rgba(255,255,255,0.10);
  --btn-bg-active:rgba(255,60,60,0.18);
  --glass:rgba(255,60,60,0.9);
}

*{ box-sizing:border-box; }

html, body{ height:100%; }

/* Skryj do načtení JS, aby UI neskákalo */
body{
  visibility: hidden; /* odemkne app.js */
  font-family: 'Courier Prime', "Courier New", Courier, ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background-color: var(--bg0);
  color: var(--text);
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  transition: background-color 2s linear;
}

main{ width:100%; max-width:1100px; }

pre{
  font-size: 1rem;
  line-height: 1.2;
  white-space: pre;
  text-align: left;
  margin: 0 0 1rem 0;
}

/* ===== ASCII tlačítka ===== */
.ascii-buttons{
  display:flex;
  gap:40px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top: 40px;
}

.ascii-btn{
  display:inline-block;
  color:#fff;
  text-decoration:none;
  font: inherit;
  transform-origin:center;
  transition: transform .18s ease;
}
.ascii-btn:hover{ transform: scale(1.05); }
.ascii-btn:active{ transform: scale(0.98); }
.ascii-btn:visited{ color:#fff; }

.ascii-btn pre{
  margin:0;
  font: inherit !important;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: pre;
  font-variant-ligatures: none;
}

/* ===== Tlačítko brýlí ===== */
.glasses-toggle{
  position: fixed;
  right:5px; bottom:5px;
  font: inherit !important;
  line-height:1.1;
  color:#fff;
  background: transparent !important;
  border:none;
  box-shadow:none;
  border-radius:6px;
  padding:6px 6px;
  white-space:pre;
  text-align:left;
  cursor:pointer;
  z-index:9995;
  user-select:none;
  transition: transform .18s ease;
  transform-origin:center;
}
.glasses-toggle:hover{ transform: scale(1.05); }
.glasses-toggle:active{ transform: scale(0.97); }
.glasses-toggle:focus-visible{ outline:none; box-shadow:none; }
.glasses-toggle[aria-pressed="true"]{ background: transparent !important; }

/* === Silnější červený filtr + vždy nad obsahem === */
.filter-overlay{
  display:none;
  position:fixed; inset:0;
  z-index: 10000;                 /* nad vším, vč. tlačítka */
  pointer-events:none;
  background: rgba(255, 60, 60, 0.42); /* sytější červená */
  mix-blend-mode: multiply;       /* „barví“ vše pod sebou */
}
body.glasses-on .filter-overlay{ display:block; }

/* === Tlačítko brýlí – úplně v pravém dolním rohu a POD filtrem === */
/* --- FIX: tlačítko Brýle úplně v rohu a pod overlayem --- */
.glasses-toggle{
  position: fixed !important;
  right: 5 !important;
  bottom: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 9990 !important; /* pod overlayem */
  background: transparent !important;
  border: 0 !important;
}
.glasses-toggle:hover{  transform: scale(1.05); }
.glasses-toggle:active{ transform: scale(0.97); }
.glasses-toggle:focus-visible{ outline:none; box-shadow:none; }

/* === Hodiny – ať jsou pod filtrem taky zbarvené (volitelné) === */
.clock-box{
  z-index: 9988;                  /* pod overlayem */
  right: 1px;                     /* pokud je chceš vpravo, klidně změň */
  left: auto;
  bottom: 4px;                   /* kousek nad tlačítkem, uprav dle chuti */
}


/* Responzivita */
@media (max-width: 520px){
  main{ max-width: 100%; }
  .glasses-toggle{ bottom: 16px; right: 16px; font-size: 11px; }
  .clock-box{ bottom: 1px; left: 16px; font-size: 11px; }
}

/* Preferuje-li uživatel méně animací */
@media (prefers-reduced-motion: reduce){
  .glasses-toggle,
  .ascii-btn{ transition: none; }
  .glasses-toggle:hover,.glasses-toggle:active,
  .ascii-btn:hover,.ascii-btn:active{ transform: none; }
}
