/* classroom.css: the pages "Na lekcję" shown on the board (the toolbox, the quiz shows) */
.cb-tools { background: var(--bs-body-bg); border-radius: 1rem; }
.cb-tools:fullscreen { padding: 2rem; overflow: auto; }
.cb-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.cb-tab { border: 2px solid #ced4da; background: #fff; color: #212529; border-radius: 2rem; padding: .35rem .9rem; font-weight: 600; }
.cb-tab[aria-selected="true"] { background: #1971c2; border-color: #1971c2; color: #fff; }
.cb-panel { background: var(--game-panel, #f8f9fa); color: #212529; border-radius: 1rem; padding: 1.25rem; }
.cb-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin: .75rem 0; }
.cb-big { font-size: clamp(2.5rem, 9vw, 6rem); font-weight: 800; text-align: center; min-height: 1.4em; word-break: break-word; }
.cb-big.cb-win { color: #1971c2; animation: cb-pop .35s ease-out; }
@keyframes cb-pop { from { transform: scale(.7); } to { transform: scale(1); } }
.cb-chips { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; }
.cb-chip { background: #e9ecef; border-radius: 1rem; padding: .1rem .6rem; font-size: .9rem; }
.cb-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .75rem; }
.cb-group { background: #fff; border: 2px solid #1971c2; border-radius: .75rem; padding: .6rem .9rem; }
.cb-group ul { margin: 0; padding-left: 1.1rem; font-size: 1.15rem; }
.cb-clock { font-size: clamp(4rem, 18vw, 12rem); font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cb-clock.cb-soon { color: #e8590c; }
.cb-clock.cb-end { color: #e03131; animation: cb-blink 1s steps(2) infinite; }
@keyframes cb-blink { 50% { opacity: .3; } }
.cb-progress { height: .8rem; background: #dee2e6; border-radius: 1rem; overflow: hidden; }
.cb-progress div { height: 100%; background: #1971c2; transition: width .2s linear; }
.cb-meter { position: relative; height: 3rem; background: #dee2e6; border-radius: 1.5rem; overflow: hidden; }
.cb-meter > div:first-child { height: 100%; width: 0; background: #2f9e44; transition: width .1s linear; }
.cb-meter > div.cb-mid { background: #f08c00; }
.cb-meter > div.cb-loud { background: #e03131; }
.cb-meter-limit { position: absolute; top: 0; bottom: 0; width: 4px; background: #212529; }
.cb-face { font-size: clamp(3rem, 12vw, 8rem); text-align: center; }
.cb-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .75rem; }
.cb-team { background: #fff; border-top: .6rem solid var(--team); border-radius: .75rem; padding: .75rem; text-align: center; }
.cb-team-name { border: 0; border-bottom: 2px dashed #ced4da; text-align: center; font-weight: 700; font-size: 1.25rem; width: 100%; background: transparent; color: inherit; }
.cb-team-points { font-size: clamp(3rem, 10vw, 6rem); font-weight: 800; color: var(--team); line-height: 1.1; }

/* Va banque */
.vb-game { background: var(--bs-body-bg); }
.vb-game:fullscreen { padding: 1.5rem; overflow: auto; }
.vb-board { display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); gap: .4rem; background: #0b1d51; padding: .5rem; border-radius: 1rem; }
.vb-cat { color: #fff; font-weight: 800; text-align: center; padding: .6rem .3rem; text-transform: uppercase; font-size: clamp(.7rem, 1.6vw, 1.1rem); display: flex; align-items: center; justify-content: center; word-break: break-word; }
.vb-tile { background: #1c3faa; color: #ffd43b; border: 0; border-radius: .5rem; font-size: clamp(1.2rem, 3.5vw, 2.6rem); font-weight: 800; min-height: clamp(3rem, 9vh, 6rem); display: flex; align-items: center; justify-content: center; }
button.vb-tile:hover, button.vb-tile:focus-visible { background: #2b55d6; outline: 3px solid #ffd43b; }
.vb-tile.vb-used { background: #14286b; font-size: 1.5rem; }
.vb-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .5rem; margin-top: .75rem; }
.vb-team { background: #fff; color: #212529; border-top: .5rem solid var(--team); border-radius: .75rem; padding: .5rem; text-align: center; }
.vb-team.vb-turn { box-shadow: 0 0 0 3px var(--team); }
.vb-team.vb-best { background: #fff9db; }
.vb-team-name { font-weight: 700; }
.vb-team-points { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; color: var(--team); }
.vb-team-fix { display: flex; gap: .3rem; justify-content: center; }
.vb-end { grid-column: 1 / -1; text-align: center; font-size: 1.5rem; font-weight: 800; margin: .5rem 0 0; }
.vb-clue { position: fixed; inset: 0; z-index: 1080; background: rgba(5, 15, 50, .96); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.vb-clue-box { max-width: 60rem; width: 100%; color: #fff; text-align: center; }
.vb-clue-head { color: #ffd43b; font-weight: 800; text-transform: uppercase; font-size: 1.2rem; }
.vb-clue-question { font-size: clamp(1.6rem, 5vw, 3.5rem); font-weight: 700; margin: 1rem 0; }
.vb-clue-answer { font-size: clamp(1.3rem, 4vw, 2.6rem); color: #8ce99a; font-weight: 800; margin-bottom: 1rem; }
.vb-award { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.vb-award-team { display: flex; gap: .3rem; align-items: center; background: rgba(255, 255, 255, .08); border-left: .4rem solid var(--team); border-radius: .5rem; padding: .3rem .5rem; }
.vb-award-team span { font-weight: 700; margin-right: .3rem; }
@media (max-width: 575.98px) { .vb-board { gap: .2rem; padding: .25rem; } .vb-cat { font-size: .6rem; } }

/* Familiada */
.ff-game { background: var(--bs-body-bg); }
.ff-game:fullscreen { padding: 1.5rem; overflow: auto; }
.ff-board { background: #111; border: .4rem solid #f59f00; border-radius: 1rem; padding: 1rem; color: #ffd43b; font-family: ui-monospace, "Courier New", monospace; }
.ff-head { display: flex; justify-content: space-between; font-weight: 700; color: #adb5bd; }
.ff-bank { color: #ffd43b; font-size: 1.6rem; }
.ff-question { text-align: center; font-size: clamp(1.2rem, 3.4vw, 2.2rem); font-weight: 700; margin: .5rem 0 1rem; font-family: system-ui, sans-serif; color: #fff; }
.ff-answers { display: grid; gap: .35rem; }
.ff-answer { display: flex; align-items: center; gap: .75rem; width: 100%; background: #1d1d1d; color: #ffd43b; border: 2px solid #343a40; border-radius: .4rem; padding: .35rem .75rem; font-size: clamp(1rem, 2.8vw, 1.8rem); font-family: inherit; text-align: left; text-transform: uppercase; }
button.ff-answer:hover, button.ff-answer:focus-visible { border-color: #ffd43b; }
.ff-answer.ff-open { background: #2b2b00; animation: cb-pop .3s ease-out; }
.ff-num { width: 1.6em; color: #868e96; }
.ff-text { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ff-points { min-width: 2.5em; text-align: right; }
.ff-strikes { text-align: center; color: #fa5252; font-size: 2.4rem; font-weight: 800; min-height: 3rem; letter-spacing: .5rem; }
.ff-big-x { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30vmin; color: #fa5252; font-weight: 900; pointer-events: none; z-index: 1090; animation: cb-pop .3s ease-out; text-shadow: 0 0 2rem #000; }
.ff-join { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: center; text-align: center; }
.ff-join-qr { width: min(22rem, 80vw); background: #fff; padding: .75rem; border-radius: 1rem; }
.ff-join-qr svg { width: 100%; height: auto; }
.ff-join-url { font-size: 1.3rem; word-break: break-all; }
.ff-join-code { font-size: clamp(3rem, 10vw, 6rem); font-weight: 800; letter-spacing: .5rem; font-family: ui-monospace, monospace; line-height: 1; }
.ff-poll { max-width: 34rem; margin: 0 auto; }

/* The teacher's escape room: the printed cards and the pupils' page */
.er-print { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.er-card { border: 3px dashed #495057; border-radius: 1rem; padding: 1rem; break-inside: avoid; background: #fff; color: #212529; min-height: 9rem; }
.er-card-head { font-weight: 800; color: #862e9c; margin-bottom: .5rem; }
.er-card-text { font-size: 1.15rem; white-space: pre-wrap; }
.er-story { grid-column: 1 / -1; border-style: solid; }
.er-boxes { display: flex; gap: .4rem; }
.er-boxes span { width: 2.2rem; height: 2.6rem; border: 2px solid #212529; border-radius: .3rem; }
.er-key { margin-top: 2rem; break-before: page; }
@media print { .er-print { grid-template-columns: repeat(2, 1fr); } }
.er-play { max-width: 42rem; margin: 0 auto; }
.er-lock { background: var(--game-panel, #f8f9fa); color: #212529; border-radius: 1rem; padding: 1.25rem; text-align: center; }
.er-lock-icon { font-size: 3rem; }
.er-lock-text { font-size: 1.3rem; font-weight: 600; white-space: pre-wrap; }
.er-path { display: flex; justify-content: center; gap: .3rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: 1.4rem; }
.er-options-play { display: grid; gap: .5rem; }
.er-wrong { animation: er-shake .4s; }
@keyframes er-shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.er-reward { background: #ebfbee; border: 2px solid #2f9e44; border-radius: .75rem; padding: .75rem; margin-top: 1rem; white-space: pre-wrap; }
.er-clock { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Games to print of own words */
.pr-bingo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.pr-bingo-card { border: 2px solid #212529; border-radius: .75rem; padding: .6rem; break-inside: avoid; background: #fff; color: #212529; }
.pr-bingo-head { text-align: center; font-weight: 800; margin-bottom: .4rem; }
.pr-bingo-grid { display: grid; grid-template-columns: repeat(var(--size), 1fr); border-top: 1px solid #212529; border-left: 1px solid #212529; }
.pr-bingo-grid div { border-right: 1px solid #212529; border-bottom: 1px solid #212529; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: .2rem; font-weight: 600; font-size: .9rem; word-break: break-word; }
.pr-calls { columns: 2; }
.pr-memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.pr-memory-card { border: 1px dashed #495057; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: .5rem; font-weight: 700; font-size: 1.05rem; background: #fff; color: #212529; break-inside: avoid; }
.pr-memory-right { background: #f1f3f5; font-weight: 500; }
@media print { .pr-bingo { grid-template-columns: repeat(2, 1fr); } .pr-memory { grid-template-columns: repeat(4, 1fr); } }

/* The class adventure map */
.adv-map { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; padding: 1rem; border-radius: 1.25rem; }
.adv-sea { background: linear-gradient(160deg, #a5d8ff, #4dabf7); }
.adv-space { background: radial-gradient(circle at 20% 20%, #5f3dc4, #1c1543 70%); }
.adv-jungle { background: linear-gradient(160deg, #b2f2bb, #2f9e44); }
.adv-station { position: relative; background: rgba(255, 255, 255, .55); border-radius: 50%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: .65; }
.adv-station.adv-reached { opacity: 1; background: rgba(255, 255, 255, .9); }
.adv-station.adv-here { box-shadow: 0 0 0 .3rem #ffd43b; }
.adv-icon { font-size: clamp(1.2rem, 4vw, 2.4rem); line-height: 1; }
.adv-number { font-size: .75rem; font-weight: 700; color: #212529; }
.adv-token { position: absolute; top: -.6rem; right: -.4rem; font-size: clamp(1.4rem, 4.5vw, 2.6rem); animation: adv-bob 1.6s ease-in-out infinite; }
@keyframes adv-bob { 50% { transform: translateY(-.3rem); } }
@media (prefers-reduced-motion: reduce) { .adv-token { animation: none; } }
.adv-status { text-align: center; margin-top: 1rem; }
.adv-rewards { list-style: none; padding: 0; display: inline-block; text-align: left; }
.adv-rewards .adv-got { color: #2b8a3e; font-weight: 600; }
