/* Practice boards and quizzes (pages built by tools/build.mjs). Uses the variables from site.css. */
.board { margin: 8px 0 12px; padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: 0 5px 0 #24104f; }
.board button { font: 800 16px/1.2 "Nunito", system-ui, sans-serif; color: var(--on-tile); background: var(--tile); border: 0; border-radius: 12px; box-shadow: 0 4px 0 var(--tile-shade); cursor: pointer; min-height: 44px; padding: 8px 14px; }
.board button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--tile-shade); }
.board button.link, .board .link { background: none; box-shadow: none; color: var(--yellow); text-decoration: underline; padding: 8px 4px; }
.board input { font: 700 17px/1.2 "Nunito", system-ui, sans-serif; width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--surface-raised); background: var(--stage-deep); color: var(--text); }
.board input:focus { outline: none; border-color: var(--yellow); }
.board input:disabled { color: var(--yellow); border-color: transparent; font-weight: 900; text-transform: uppercase; opacity: 1; }
.board form { display: flex; gap: 6px; }
.board form button { flex: none; }
.hint { color: var(--muted); font-size: 15px; }
.disclaimer { margin-top: 36px; color: var(--muted); font-size: 14px; }

/* Asocijacije */
.asoc-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.asoc-picker button { min-width: 44px; padding: 8px 0; background: var(--surface-raised); color: var(--text); box-shadow: 0 4px 0 #24104f; }
.asoc-picker button[aria-pressed="true"] { background: var(--yellow); color: var(--on-tile); box-shadow: 0 4px 0 var(--yellow-shade); }
.asoc .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
@media (min-width: 640px) { .asoc .cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.asoc .col { display: grid; gap: 6px; align-content: start; }
.asoc .field { width: 100%; min-height: 44px; padding: 6px; font-size: 15px; }
.asoc .field .clue { display: none; }
.asoc .field.open { background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue-shade); cursor: default; }
.asoc .field.open .name { display: none; }
.asoc .field.open .clue { display: inline; }
.asoc .col.solved input, .asoc .final.solved input { background: var(--red); color: #fff; }
.asoc .col form button { padding: 8px 12px; }
.asoc .final { margin: 16px auto 0; max-width: 26rem; }
.asoc .giveup { display: block; margin: 10px auto 0; }
.asoc-status { min-height: 1.4em; margin: 12px 0 0; text-align: center; font-weight: 800; }
html:not(.js) .asoc .field .clue { display: inline; }
html:not(.js) .asoc .field .name { display: none; }
.solutions details p { line-height: 1.7; }

/* Moj broj */
.mb-head { display: flex; justify-content: space-between; align-items: baseline; }
.mb-label { margin: 0; color: var(--muted); font-weight: 800; }
.mb-clock { margin: 0; font: 900 22px/1 "Nunito", system-ui, sans-serif; color: var(--yellow); font-variant-numeric: tabular-nums; }
.mb-target { margin: 4px 0 14px; text-align: center; font: 900 56px/1 "Nunito", system-ui, sans-serif; letter-spacing: .04em; color: var(--yellow); }
.mb-nums { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.mb-nums .tile { --size: auto; width: 100%; height: 52px; font: 900 22px/1 "Nunito", system-ui, sans-serif; }
.mb-ops { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 10px 0 0; }
.mb-ops button { padding: 8px 0; font-size: 20px; background: var(--surface-raised); color: var(--text); box-shadow: 0 4px 0 #24104f; }
.mb-result { min-height: 1.4em; margin: 12px 0 0; font-weight: 800; }
.mb-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* Skočko */
.sk-rows { list-style: none; margin: 0 auto 14px; padding: 0; display: grid; gap: 8px; max-width: 22rem; }
.sk-row { display: flex; align-items: center; gap: 12px; }
.sk-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex: 1; }
.sk-cell { height: 48px; border-radius: 12px; background: var(--stage-deep); display: grid; place-items: center; }
.sk-pegs { display: grid; grid-template-columns: repeat(2, 14px); gap: 4px; flex: none; }
.peg { width: 14px; height: 14px; border-radius: 50%; background: var(--stage-deep); }
.peg.red { background: var(--red); }
.peg.yellow { background: var(--yellow); }
.sym { font-size: 26px; line-height: 1; }
.sym.s0 { color: #ff6b7a; } .sym.s1 { color: #5aa0ff; } .sym.s2 { color: var(--mint); }
.sym.s3 { color: var(--yellow); } .sym.s4 { color: #c58bff; } .sym.s5 { color: #ffffff; }
.sk-keys { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; max-width: 22rem; margin: 0 auto; }
.sk-keys button { background: var(--stage-deep); box-shadow: 0 4px 0 #120731; padding: 6px 0; }
.sk-actions { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.sk-actions button { background: var(--surface-raised); color: var(--text); box-shadow: 0 4px 0 #24104f; }
.skocko.over .sk-keys { opacity: .4; }
.sk-status { min-height: 1.4em; margin: 12px 0 0; text-align: center; font-weight: 800; }
.sk-status .sym { margin: 0 2px; }

/* Quizzes */
.quiz { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.quiz .q { margin: 0; }
.quiz .qt { margin: 0 0 10px; font: 800 18px/1.35 "Nunito", system-ui, sans-serif; color: var(--text); }
.quiz .lvl { display: block; margin-bottom: 2px; color: var(--muted); font-size: 13px; letter-spacing: .03em; text-transform: uppercase; }
.quiz .opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quiz .opt { width: 100%; text-align: left; }
.quiz .opt[aria-disabled="true"] { cursor: default; opacity: .65; }
.quiz .opt.right { background: var(--mint); box-shadow: 0 4px 0 #1a9984; opacity: 1; }
.quiz .opt.wrong { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-shade); opacity: 1; }
.quiz .expl { display: none; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--stage-deep); color: #e7e0fa; }
.quiz .q.done .expl { display: block; }
html:not(.js) .quiz .expl { display: block; }
.quiz .src { margin-left: 4px; color: var(--muted); font-size: 14px; }
.quiz-score { position: sticky; bottom: 12px; margin: 18px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--yellow); color: var(--on-tile); font-weight: 900; text-align: center; box-shadow: 0 4px 0 var(--yellow-shade); }
.cards.days { list-style: none; padding: 0; display: grid; gap: 10px; }

/* ---------- Uputstva: steps with screenshots, click-to-play video ---------- */
.prose .steps { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 22px; }
.prose .answer strong { color: inherit; }
.steps h3 { margin: 0 0 4px; }
.steps p { margin: 0 0 10px; }
.step-shot { display: block; width: 100%; max-width: 260px; height: auto; border-radius: 18px; box-shadow: 0 4px 0 #24104f; }
.video { margin: 0 0 24px; }
.video-link, .video iframe { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #120830; border: 0; }
.video-link img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(18, 8, 48, 0.78); box-shadow: 0 0 0 3px #fff; transition: transform 80ms; }
.video-play::after { content: ""; position: absolute; left: 31px; top: 23px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #fff; }
.video-link:hover .video-play, .video-link:focus-visible .video-play { transform: scale(1.08); }
.video figcaption { margin-top: 8px; color: var(--muted); font-size: 15px; }
.prose .cards.guides { padding: 0; margin-bottom: 20px; }
