:root{
  --ink:#0f172a;
  --muted:#334155;
  --card: rgba(255,255,255,.78);
  --border: rgba(255,255,255,.65);
}

*{ box-sizing:border-box; }
body{ margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; color:var(--ink); }

.bg{
  min-height:100vh;
  padding:16px;
  background: linear-gradient(135deg, #F9F5F3, #F3B0C3, #6DA9D8);
}

.topbar{
  max-width:1100px;
  margin:0 auto 12px auto;
  display:flex;
  gap:12px;
  align-items:center;
}
.logo{
  width:0%;height:44px;border-radius:16px;
  background: linear-gradient(135deg, #F3B0C3, #6DA9D8);
  box-shadow: 0 10px 25px rgba(2,6,23,.18);
}
.titles .h1{ font-weight:900; font-size:28px; }
.titles .sub{ font-weight:650; font-size:13px; color:var(--muted); }

/* MENU */
.menu{
  max-width:1100px;
  margin: 0 auto 14px auto;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.menuBtn{
  border:1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.55);
  border-radius: 16px;
  padding: 10px 12px;
  font-weight: 950;
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(2,6,23,.10);
}
.menuBtn:hover{ background: rgba(255,255,255,.85); }
.menuBtn.active{
  outline: 4px solid rgba(109,169,216,.35);
  background: rgba(255,255,255,.9);
}

.layout{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:14px;
}
@media (max-width: 900px){
  .layout{ grid-template-columns: 1fr; }
}

.card{
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(2,6,23,.12);
}

.chips{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.chip{
  display:inline-flex; align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.65);
  border:1px solid rgba(255,255,255,.6);
  font-weight:800;
  font-size:12px;
}
.chipBtn{ cursor:pointer; }
.chipBtn:hover{ background: rgba(255,255,255,.92); }

.h2{ font-weight:900; font-size:16px; margin-bottom:10px; }

.progressRow{ display:flex; justify-content:space-between; }
.small{ font-weight:800; font-size:12px; color:var(--muted); }
.progress{ height:12px; border-radius:999px; overflow:hidden; background: rgba(255,255,255,.6); border:1px solid var(--border); margin-top:8px; }
.bar{ height:100%; width:0%; background: linear-gradient(90deg, #34d399, #38bdf8); border-radius:999px; }

.divider{ height:1px; background: rgba(255,255,255,.6); margin:14px 0; }

.list{ margin:0; padding-left:18px; color:var(--muted); font-weight:650; }
.list b{ color:var(--ink); }

.row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  align-items:center;
}
@media (max-width: 900px){ .row{ grid-template-columns:1fr; } }

/* Z-index varovalka: desni stolpec (gumbi/input) naj bo vedno nad levo uro */
.row > :first-child { position: relative; z-index: 1; }
.row > :last-child  { position: relative; z-index: 2; }

.digital{
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.7));
  border:1px solid var(--border);
  box-shadow: 0 10px 24px rgba(2,6,23,.10);
}
.digital .time{ font-size:48px; font-weight:950; letter-spacing:-0.5px; }
.digital .label{ margin-top:6px; font-size:12px; font-weight:800; color:var(--muted); }

.center{ display:flex; justify-content:center; }

/* analogna ura – rahla animacija */
.clockCanvas{
  animation: clockFloat 2.4s ease-in-out infinite alternate;
}
@keyframes clockFloat{
  0%{ transform: translateY(0px); }
  100%{ transform: translateY(-3px); }
}

.options{ margin-top:14px; display:grid; gap:10px; }
.opt{
  width:100%;
  border-radius: 18px;
  padding: 14px 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.75);
  font-weight:950;
  font-size:18px;
  text-align:left;
  cursor:pointer;
}
.opt:hover{ background: rgba(255,255,255,.92); }
.opt.selected{ outline:3px solid rgba(56,189,248,.55); }
.opt.correct{ outline:3px solid rgba(52,211,153,.55); }
.opt.wrong{ outline:3px solid rgba(244,63,94,.55); }

.actions{ margin-top:14px; display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.btn{
  border:0;
  border-radius: 18px;
  padding: 12px 14px;
  font-weight:950;
  color:white;
  cursor:pointer;
  box-shadow: 0 12px 24px rgba(2,6,23,.18);
}
.btn:disabled{ opacity:.55; cursor:not-allowed; }
.btn.pink{ background: linear-gradient(90deg, #F3B0C3, #ec4899); }
.btn.blue{ background: linear-gradient(90deg, #6DA9D8, #6366f1); }
.btn.green{ background: linear-gradient(90deg, #10b981, #a3e635); }

.feedback{ font-weight:950; }
.feedback.ok{ color:#047857; }
.feedback.no{ color:#be123c; }

.inputWrap{
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.75);
  border:1px solid var(--border);
}
.inputWrap .title{ font-weight:950; font-size:18px; }
.inputWrap .hint{ margin-top:6px; font-weight:700; color:var(--muted); font-size:12px; }

.inp{
  margin-top:10px;
  width:100%;
  font-size:28px;
  font-weight:950;
  padding: 12px 14px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.7);
  outline:none;
  background: rgba(255,255,255,.8);
}
.inp:focus{ box-shadow: 0 0 0 5px rgba(56,189,248,.25); }

/* 3D SPEAK BUTTON */
.speak3d{
  position: relative;
  padding: 10px 14px;
  font-weight: 950;
  font-size: 13px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.75);
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.70));
  box-shadow:
    0 14px 26px rgba(2,6,23,.18),
    0 6px 0 rgba(2,6,23,.18);
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  user-select: none;
}
.speak3d::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(236,72,153,.25), rgba(99,102,241,.25), rgba(56,189,248,.25));
  opacity: .0;
  transition: opacity .12s ease;
  pointer-events: none;
}
.speak3d:hover{
  transform: translateY(-2px);
  box-shadow:
    0 18px 32px rgba(2,6,23,.22),
    0 8px 0 rgba(2,6,23,.18);
  filter: saturate(1.1);
}
.speak3d:hover::before{ opacity: .85; }
.speak3d:active{
  transform: translateY(4px);
  box-shadow:
    0 10px 18px rgba(2,6,23,.18),
    0 2px 0 rgba(2,6,23,.18);
}
.speak3d:focus{
  outline: none;
  box-shadow:
    0 0 0 5px rgba(56,189,248,.25),
    0 14px 26px rgba(2,6,23,.18),
    0 6px 0 rgba(2,6,23,.18);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.speak3d.attention{
  animation: floaty 1.6s ease-in-out infinite;
}
