/*
 * Dnevni kviz znanja's play page (/kviz-znanja, endless, challenges, archive days) as a game (owner, 29 Nov 2026: "gamefy all
 * our games to the max like kolo, kolo is just great looking, feels like real game", "also for daily quizz too, i want them
 * all to be in line, all the .svg-s needed everything", "give life to all games, with those subtle movements, and shines going
 * over buttons", and no "boxes we use for news" inside a game). One of Kolo's paintings behind the stage; on it the owner's
 * pieces (img/igrice/kviz/ui: the logo, the question card, the answers in their four states, the letter badge, the progress
 * dots, the ribbon, the stopwatch, the medals, the challenge; the topics' badges in img/igrice/kviz/teme; the games' shared
 * dukati counter, coin, level badge and sparkles in img/igrice/zajednicko). Questions, answers, letters and numbers stay the
 * page's text over the art. The buttons and panels the set has no piece for are built the way the pieces are drawn: cream or
 * blue faces in a soft gradient, a dark outline and a darker base under them (never the site's square boxes).
 * igrice.css styles the quiz's other pages and loads first: everything here is under .qz-game. Phones first; from 768px the
 * stage stands in a frame of the same painting out of focus (as Kolo's), from 992px with the panels beside it.
 */
.qz-game {
    --q-ink: #16171c;
    --q-blue: #2457c5;
    --q-blue-light: #5384dc;
    --q-blue-dark: #204cb1;
    --q-deep: #14306e;
    --q-cream: #fff6df;
    --q-cream-light: #fffcf0;
    --q-cream-dark: #ebdaaf;
    --q-tan: #bea780;
    --q-paper-base: #cbb99a;
    --q-gold: #f2b53a;
    --q-gold-light: #ffd675;
    --q-gold-dark: #b87820;
    --q-green: #1e7a47;
    --q-green-dark: #164d36;
    --q-coral: #e8604c;
    --q-coral-dark: #9f4139;
    --q-wrong-text: #a8321f;
    --q-soft: #4a4335;
    /* The answers' art (odgovor, 992 × 198 after its crop) drawn at this scale: 61 px tall on a phone. */
    --q-s: 0.31;
    /* The question card's art (kartica-pitanja, 958 × 719): its blue band 44 px tall on a phone. */
    --q-k: 0.34;
    --q-dot: 26px;
}

/* The stage takes the whole width on a phone; the panels and the words under it keep the site's gutter. */
.qz.qz-game {
    width: 100%;
    max-width: none;
    padding: 0 0 3rem;
}

/* A phone: the site's header scrolls away above the game, so the stage can have the screen (Kolo and Klupko do the same). */
@media (max-width: 767.98px) {
    .quiz-play .app-header {
        position: relative;
    }
}

/* ---------- the frame and the stage ---------- */

.qz-frame {
    position: relative;
    isolation: isolate;
}

/* The painting out of focus round the stage: a computer's only. */
.qz-backdrop {
    display: none;
}

.qz-game .qz-layout {
    display: block;
}

.qz-game .qz-stage {
    position: relative;
    isolation: isolate;
    overflow-x: clip;
    min-height: min(100svh, 880px);
    padding: 10px 12px 26px;
    color: var(--q-ink);
    background: linear-gradient(165deg, var(--qz-from, #2457c5), var(--qz-to, #fff6df));
}

/* The painting, on a layer of its own that clips itself (the themes' menu may reach past the stage's edge). */
.qz-scene {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

/* The painting breathes: a slow soft zoom in and out, nothing sliding (as Kolo's; owner, 29 Nov 2026: "just image soft zoom
   in and zoom out, no movement, cos its lagging badly"), on its own graphics layer. */
.qz-bg {
    position: absolute;
    inset: 0;
    /* A grey wash and quieter colours, as Petica's, so the question and the answers come first (owner, 29 Nov 2026, on
       /kviz-znanja/bez-kraja: "mute background in here like in petica"). */
    background:
        linear-gradient(rgba(52, 56, 64, 0.4), rgba(52, 56, 64, 0.4)),
        var(--qz-picture, none) center / cover no-repeat,
        linear-gradient(165deg, var(--qz-from, #2457c5), var(--qz-to, #fff6df));
    filter: saturate(0.66);
    transform: translateZ(0) scale(1.02);
    backface-visibility: hidden;
    animation: qz-breathe 18s ease-in-out infinite alternate;
    will-change: transform;
}

.qz-bg.is-next {
    opacity: 0;
    animation: none;
    transition: opacity 0.9s ease;
}

.qz-bg.is-next.is-shown {
    opacity: 1;
}

/* Legibility over any painting: a little darker at the top (the logo and Bubi) and overall a hair. */
.qz-scene::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 14, 24, 0.42) 0%, rgba(10, 14, 24, 0) 22%),
        linear-gradient(0deg, rgba(10, 14, 24, 0.3) 0%, rgba(10, 14, 24, 0) 30%),
        rgba(10, 14, 24, 0.1);
    content: "";
}

/* As Kolo's (owner, 29 Nov 2026: the slide "lagging badly", then the zoom "still not smooth ... maybe more zoom in, and zoom out"): the whole transform is animated, which every browser hands to the graphics card (the individual scale property was not, on some phones), wider and a little quicker. */
@keyframes qz-breathe {
    from { transform: translateZ(0) scale(1.02); }
    to { transform: translateZ(0) scale(1.1); }
}

/* The stage's parts: one column, never wider than the screen, never so wide on a computer that a line is long. */
.qz-game .qz-stage > :not(.qz-scene) {
    position: relative;
    width: min(100%, 620px);
    margin-right: auto;
    margin-left: auto;
}

/* ---------- the top: the logo, the dukati, the sound; Bubi and what he says ---------- */

.qz-game .qz-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "title title tools"
        "bubi line line";
    align-items: center;
    column-gap: 0.55rem;
    row-gap: 0.35rem;
    margin: 0 auto 0.55rem;
}

.qz-game .qz-name {
    grid-area: title;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: none;
    line-height: 0;
}

/* The owner's logo, no box behind it (Kolo's: "logo of kolo is inside a white box, really kills it"). */
.qz-logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: 42px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

.qz-game .qz-top-tools {
    grid-area: tools;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* The dukati on the games' shared counter (dukati-brojac: a dark glass capsule, its coins at the left end), the number in cream. */
.qz-coins {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    min-width: 108px;
    height: 34px;
    padding: 0 12px 0 40px;
    line-height: 34px;
    color: var(--q-cream);
    background: url("/img/igrice/zajednicko/dukati-brojac.svg") center / 100% 100% no-repeat;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
    font-family: var(--news-font-head);
    font-size: 1rem;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

.qz-coins small {
    color: rgba(255, 246, 223, 0.75);
    font-size: 0.62em;
    font-weight: 800;
}

.qz-coins.is-bump {
    animation: qz-bump 0.5s ease-out;
}

/* The sound: a round button on the letter badge's disc and gold rim (slovo), the speaker in cream. */
.qz-game .qz-tool {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--q-cream);
    background: url("/img/igrice/kviz/ui/slovo.svg") center / contain no-repeat;
    border: 0;
    border-radius: 50%;
    filter: drop-shadow(0 3px 2px rgba(8, 12, 24, 0.4));
    cursor: pointer;
    transition: transform 0.1s ease;
}

.qz-game .qz-tool i {
    color: var(--q-cream);
    font-size: 1rem;
    text-shadow: 0 1px 0 var(--q-ink);
}

.qz-game .qz-tool[aria-pressed="false"] i {
    color: rgba(255, 246, 223, 0.6);
}

.qz-game .qz-tool:hover,
.qz-game .qz-tool:focus-visible {
    background: url("/img/igrice/kviz/ui/slovo.svg") center / contain no-repeat;
}

.qz-game .qz-tool:active {
    transform: translateY(2px) scale(0.95);
}

/* Keyboard focus in the game: the gold ring the answers have, round its piece's own shape. */
.qz-game :is(.qz-tool, .qz-mode, .qz-previous, .qz-themes-list a, .qz-topics a, .qz-more a, .qz-themes-foot a):focus-visible {
    outline: 3px solid var(--q-gold);
    outline-offset: 2px;
}

.qz-game .qz-host-img {
    grid-area: bubi;
    align-self: end;
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
}

/* Bubi's line: a rounded cream speech bubble with a dark outline (the pieces' look), as tall as three lines whatever he says,
   so nothing under it moves when his words change. */
.qz-game .qz-bubble {
    grid-area: line;
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(3 * 1.3em + 0.9rem + 5px);
    max-width: none;
    margin: 0;
    padding: 0.45rem 0.75rem;
    color: var(--q-ink);
    background: linear-gradient(180deg, var(--q-cream-light), var(--q-cream) 45%);
    border: 2.5px solid var(--q-ink);
    border-radius: 16px;
    box-shadow: 0 6px 14px rgba(8, 12, 24, 0.28);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
}

.qz-game .qz-bubble::before {
    position: absolute;
    top: 50%;
    left: -10px;
    width: 0;
    height: 0;
    margin-top: -7px;
    border-top: 7px solid transparent;
    border-right: 10px solid var(--q-ink);
    border-bottom: 7px solid transparent;
    border-left: 0;
    transform: none;
    content: "";
}

.qz-game .qz-bubble.is-new {
    animation: qz-line-in 0.28s ease-out;
}

/* ---------- the ways to play: little pills drawn like the answers (cream, the one on screen blue) ---------- */

.qz-game .qz-modes {
    position: relative;
    z-index: 30;
    display: flex;
    gap: 0.45rem;
    margin: 0 auto 0.7rem;
    padding: 0 0 4px;
    border: 0;
}

.qz-game .qz-mode {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 36px;
    padding: 0 0.95rem;
    color: var(--q-ink);
    background: linear-gradient(180deg, var(--q-cream-light) 0%, var(--q-cream) 35%, var(--q-cream) 70%, var(--q-cream-dark) 100%);
    border: 2px solid var(--q-ink);
    border-radius: 999px;
    box-shadow: 0 2.5px 0 var(--q-tan), 0 4.5px 0 var(--q-ink);
    font-family: var(--news-font-head);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.1s ease, filter 0.15s ease;
}

.qz-game .qz-mode:hover,
.qz-game .qz-mode:focus-visible {
    color: var(--q-ink);
    background: linear-gradient(180deg, #ffffff 0%, var(--q-cream-light) 40%, var(--q-cream) 100%);
}

.qz-game .qz-mode.is-active,
.qz-game .qz-mode-menu[open] > .qz-mode {
    color: var(--q-cream);
    background: linear-gradient(180deg, var(--q-blue-light) 0%, var(--q-blue) 35%, var(--q-blue) 70%, var(--q-blue-dark) 100%);
    border-color: var(--q-ink);
    box-shadow: 0 2.5px 0 var(--q-deep), 0 4.5px 0 var(--q-ink);
    text-shadow: 0 1px 0 rgba(8, 12, 24, 0.45);
}

.qz-game .qz-mode:active {
    transform: translateY(2px);
}

/* The themes' menu: the owner's badge beside each type, on a cream card (a grid of two on a phone, three on a computer). */
.qz-game .qz-themes {
    top: calc(100% + 6px);
    padding: 0.85rem;
    color: var(--q-ink);
    background: var(--q-cream);
    border: 2.5px solid var(--q-ink);
    border-radius: 18px;
    box-shadow: 0 3px 0 var(--q-paper-base), 0 5.5px 0 var(--q-ink), 0 18px 36px rgba(8, 12, 24, 0.4);
}

.qz-game .qz-themes-title {
    color: var(--q-deep);
}

.qz-game .qz-themes-list a {
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.3rem 0.5rem 0.3rem 0.3rem;
    color: var(--q-ink);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 999px;
}

.qz-game .qz-themes-list a:hover,
.qz-game .qz-themes-list a:focus-visible {
    background: #ffffff;
}

.qz-game .qz-themes-list a[aria-current="page"] {
    background: #ffffff;
    box-shadow: inset 0 0 0 2px var(--q-blue);
}

.qz-game .qz-themes-list .qz-badge {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
}

.qz-game .qz-themes-foot a {
    color: var(--q-deep);
}

/* ---------- a friend's challenge: their name and score over the game, on the owner's challenge ---------- */

.qz-game .qz-dare {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 auto 0.7rem;
    padding: 0.45rem 0.9rem 0.45rem 0.55rem;
    color: #3a2a00;
    background: linear-gradient(180deg, #fff3c4 0%, var(--q-gold-light) 40%, var(--q-gold) 100%);
    border: 2.5px solid var(--q-ink);
    border-radius: 18px;
    box-shadow: 0 3px 0 var(--q-gold-dark), 0 5.5px 0 var(--q-ink);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.qz-game .qz-dare img {
    flex: 0 0 auto;
    width: 46px;
    height: auto;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
}

.qz-game .qz-dare strong {
    color: var(--q-ink);
}

/* ---------- the question ---------- */

.qz-game .qz-card {
    padding: 0;
    background: none;
    border: 0;
}

.qz-game .qz-play,
.qz-game .qz-result {
    border-top: 0;
}

.qz-game .qz-note {
    margin: 0 0 0.7rem;
    padding: 0.55rem 0.8rem;
    color: var(--q-ink);
    background: rgba(255, 246, 223, 0.95);
    border: 2px solid var(--q-ink);
    border-radius: 14px;
}

.qz-game .qz-note a {
    color: var(--q-deep);
}

/* The ten questions as the owner's dots: empty, the one now (gold, glowing), right (green, a tick), wrong (coral, a cross). */
.qz-game .qz-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin: 0 auto 0.25rem;
}

.qz-game .qz-progress {
    display: flex;
    flex: 0 1 auto;
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qz-game .qz-progress li {
    flex: 0 0 auto;
    width: var(--q-dot);
    height: var(--q-dot);
    background: url("/img/igrice/kviz/ui/tocka.svg") center / contain no-repeat;
    filter: drop-shadow(0 1px 1px rgba(8, 12, 24, 0.35));
}

.qz-game .qz-progress li.is-current {
    background-image: url("/img/igrice/kviz/ui/tocka-sada.svg");
}

.qz-game .qz-progress li.is-right {
    background-image: url("/img/igrice/kviz/ui/tocka-tocno.svg");
}

.qz-game .qz-progress li.is-wrong {
    background-image: url("/img/igrice/kviz/ui/tocka-krivo.svg");
}

.qz-game .qz-progress li.is-new {
    animation: qz-dot-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}

/* "3/10" on the dark glass of the dukati's counter. */
.qz-game .qz-count {
    flex: 0 0 auto;
    min-width: 3.2rem;
    padding: 0.18rem 0.6rem;
    color: var(--q-cream);
    background: rgba(16, 22, 44, 0.72);
    border: 1.5px solid rgba(242, 181, 58, 0.75);
    border-radius: 999px;
    font-size: 0.92rem;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* The owner's question card in nine slices: the corners (the paper clip's too) and the blue band keep their size, the paper
   stretches with the question. The band (y 32 to 166 of the card's 719) holds the type and the level. */
.qz-question {
    position: relative;
    margin: 0 auto 0.75rem;
    padding: calc(32px * var(--q-k)) 0 calc(83px * var(--q-k));
    border: 0 solid transparent;
    border-image-source: url("/img/igrice/kviz/ui/kartica-pitanja.svg");
    border-image-slice: 172 68 83 130 fill;
    border-image-width: calc(172px * var(--q-k)) calc(68px * var(--q-k)) calc(83px * var(--q-k)) calc(130px * var(--q-k));
    border-image-repeat: stretch;
}

.qz-question.is-in {
    animation: qz-card-in 0.36s cubic-bezier(0.3, 1.25, 0.5, 1);
}

.qz-game .qz-qmeta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    height: calc(126px * var(--q-k));
    margin: 0;
    padding: 0 calc(46px * var(--q-k)) 0 calc(126px * var(--q-k));
}

.qz-game .qz-type {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    color: var(--q-cream);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-shadow: 0 1px 0 rgba(8, 12, 24, 0.55);
    text-transform: uppercase;
}

.qz-type-badge,
.qz-type-plain {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    margin: -4px 0;
    filter: drop-shadow(0 2px 1px rgba(8, 12, 24, 0.35));
}

.qz-type-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* A type without its own badge, and a list's type without one: its icon on the plain badge. */
.qz-type-plain,
.qz-game .qz-badge.is-plain {
    display: inline-grid;
    place-items: center;
    color: var(--q-cream);
    background: url("/img/igrice/kviz/ui/slovo.svg") center / contain no-repeat;
    font-size: 0.85rem;
}

.qz-type-plain[hidden],
.qz-type-badge[hidden] {
    display: none;
}

/* The level: a little cream pill in the band, its word in the level's colour. */
.qz-game .qz-level {
    flex: 0 0 auto;
    padding: 0.14rem 0.55rem;
    color: var(--q-deep);
    background: var(--q-cream);
    border: 1.5px solid var(--q-ink);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.qz-game .qz-level[data-level="1"] {
    color: var(--q-green);
    background: #e6f4e3;
}

.qz-game .qz-level[data-level="2"] {
    color: #7d5603;
    background: #fff0c2;
}

.qz-game .qz-level[data-level="3"] {
    color: var(--q-wrong-text);
    background: #fde3dc;
}

.qz-game .qz-qtext {
    margin: 0.55rem 0 0;
    padding: 0 1.05rem 0.2rem 1.15rem;
    color: var(--q-ink);
    font-size: clamp(1.18rem, 5.2vw, 1.6rem);
    font-weight: 800;
    line-height: 1.22;
}

/* A flag to name: on the card's paper, framed like a postcard. */
.qz-game .qz-flag {
    margin: 0.7rem 1.1rem 0.2rem;
}

.qz-game .qz-flag img {
    width: min(100%, 250px);
    margin: 0 auto;
    padding: 4px;
    background: #ffffff;
    border: 2px solid var(--q-ink);
    border-radius: 10px;
    box-shadow: 0 3px 0 var(--q-paper-base), 0 5px 0 var(--q-ink);
}

/* ---------- the answers: the owner's pill, its letter badge, its four states ---------- */

.qz-game .qz-choices {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
    margin: 0 auto;
}

/* The pill in nine slices: its ends (the letter's place, 180 of 992, and the right end, 152) keep their shape and size, the
   middle stretches with the answer; a long answer that wraps makes it taller at its middle row. The letter's place (its
   middle 104, 92 of the pill's 198) holds the letter badge. */
.qz-game .qz-choices .qz-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    min-height: calc(198px * var(--q-s));
    padding: 0.55rem 1.4rem calc(0.55rem + 15px * var(--q-s)) calc(184px * var(--q-s));
    color: var(--q-ink);
    background: none !important;
    border: 0 solid transparent;
    border-radius: 999px;
    border-image-source: url("/img/igrice/kviz/ui/odgovor.svg");
    border-image-slice: 90 152 104 180 fill;
    border-image-width: calc(90px * var(--q-s)) calc(152px * var(--q-s)) calc(104px * var(--q-s)) calc(180px * var(--q-s));
    border-image-repeat: stretch;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    opacity: 1;
    filter: none;
    transition: transform 0.12s ease, opacity 0.25s ease, filter 0.25s ease;
}

.qz-game .qz-choices .qz-choice:not(:disabled):hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.qz-game .qz-choices .qz-choice:not(:disabled):active {
    transform: translateY(2px);
}

.qz-game .qz-choices .qz-choice:focus-visible {
    outline: 3px solid var(--q-gold);
    outline-offset: 2px;
}

/* Picked, the server asked: blue, breathing. */
.qz-game .qz-choices .qz-choice.is-pending {
    color: var(--q-cream);
    border-image-source: url("/img/igrice/kviz/ui/odgovor-odabran.svg");
    text-shadow: 0 1px 0 rgba(8, 12, 24, 0.45);
    animation: qz-breathe 0.9s ease-in-out infinite;
}

.qz-game .qz-choices .qz-choice.is-right {
    color: #ffffff;
    border-image-source: url("/img/igrice/kviz/ui/odgovor-tocno.svg");
    text-shadow: 0 1px 0 rgba(8, 12, 24, 0.5);
    animation: none;
}

.qz-game .qz-choices .qz-choice.is-right.is-chosen {
    animation: qz-pop 0.42s cubic-bezier(0.3, 1.6, 0.5, 1);
}

/* The player's wrong pick: coral and a little flatter (the owner's piece), with a shake. */
.qz-game .qz-choices .qz-choice.is-wrong {
    color: #ffffff;
    border-image-source: url("/img/igrice/kviz/ui/odgovor-krivo.svg");
    text-shadow: 0 1px 1px rgba(80, 20, 10, 0.75), 0 0 2px rgba(80, 20, 10, 0.5);
    animation: qz-shake 0.42s linear;
}

/* The other two once answered: quieter, and still solid over the painting (see-through they looked like glass). */
.qz-game .qz-choices .qz-choice:disabled:not(.is-right):not(.is-wrong):not(.is-pending):not(.is-waiting) {
    opacity: 1;
    filter: saturate(0.45) brightness(0.84);
}

/* The letter: the page's own A, B or C in cream on the letter badge (slovo: the owner's disc and gold rim), in the pill's
   round place. */
.qz-game .qz-choices .qz-choice .qz-letter {
    position: absolute;
    top: calc(50% - 7px * var(--q-s));
    left: calc(104px * var(--q-s));
    display: grid;
    place-items: center;
    width: calc(134px * var(--q-s));
    height: calc(134px * var(--q-s));
    padding-top: 1px;
    color: var(--q-cream);
    background: url("/img/igrice/kviz/ui/slovo.svg") center / contain no-repeat;
    font-family: var(--news-font-head);
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1;
    -webkit-text-stroke: 3px var(--q-ink);
    paint-order: stroke fill;
    text-shadow: 0 2px 0 #0c2051;
    opacity: 1;
    transform: translate(-50%, -50%);
}

.qz-game .qz-choice-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Before the round comes: the three pills, a soft bar where the words will be. */
.qz-game .qz-choices .qz-choice.is-waiting .qz-choice-text {
    display: block;
    width: 52%;
    height: 0.8em;
    background: linear-gradient(90deg, rgba(190, 167, 128, 0.35), rgba(190, 167, 128, 0.6), rgba(190, 167, 128, 0.35)) 0 0 / 200% 100%;
    border-radius: 999px;
    animation: qz-wait 1.4s ease-in-out infinite;
}

.qz-game .qz-choices .qz-choice.is-waiting .qz-letter {
    opacity: 0.55;
}

/* The answers come in one after another. */
.qz-game .qz-choices.is-in .qz-choice {
    animation: qz-choice-in 0.34s cubic-bezier(0.3, 1.3, 0.5, 1) both;
    animation-delay: calc(var(--i, 0) * 70ms + 80ms);
}

/* Three flags as the answers, side by side: tiles drawn like the pills (cream, a dark outline, a darker base), their states in
   the pills' colours, the letter badge on the corner. */
.qz-game .qz-choices.is-flags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.qz-game .qz-choices .qz-choice.is-flag {
    flex-direction: column;
    gap: 0.3rem;
    min-height: 0;
    padding: 0.5rem 0.45rem 0.55rem;
    background: linear-gradient(180deg, var(--q-cream-light) 0%, var(--q-cream) 35%, var(--q-cream) 70%, var(--q-cream-dark) 100%) !important;
    border: 2.5px solid var(--q-ink);
    border-image: none;
    border-radius: 16px;
    box-shadow: 0 3px 0 var(--q-tan), 0 5.5px 0 var(--q-ink);
    margin-bottom: 5px;
}

.qz-game .qz-choices .qz-choice.is-flag.is-pending {
    background: linear-gradient(180deg, var(--q-blue-light) 0%, var(--q-blue) 35%, var(--q-blue-dark) 100%) !important;
    box-shadow: 0 3px 0 var(--q-deep), 0 5.5px 0 var(--q-ink);
}

.qz-game .qz-choices .qz-choice.is-flag.is-right {
    background: linear-gradient(180deg, #43965b 0%, var(--q-green) 35%, #216640 100%) !important;
    box-shadow: 0 3px 0 var(--q-green-dark), 0 5.5px 0 var(--q-ink);
}

.qz-game .qz-choices .qz-choice.is-flag.is-wrong {
    background: linear-gradient(180deg, #f7846f 0%, var(--q-coral) 35%, #ce5142 100%) !important;
    box-shadow: 0 2px 0 var(--q-coral-dark), 0 4.5px 0 var(--q-ink);
}

.qz-game .qz-choices .qz-choice.is-flag img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    background: #ffffff;
    border: 1.5px solid var(--q-ink);
    border-radius: 6px;
}

.qz-game .qz-choices .qz-choice.is-flag .qz-letter {
    top: -6px;
    left: -6px;
    z-index: 1;
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
    -webkit-text-stroke: 2.5px var(--q-ink);
    transform: none;
}

.qz-game .qz-choice-name {
    font-size: 0.78rem;
    font-weight: 800;
}

/* ---------- after an answer: the verdict on a cream pill (the owner's tick or cross), the fact on paper, Dalje ---------- */

/* Nothing moves after an answer (owner, 1 Dec 2026: "When u answer, I always get layout shift ... it scrolls a bit down on
   phone"): the block stands under the answers, and where it would end below the screen it holds on to the screen's bottom
   edge (sticky; the page never scrolls), over the answers, on a dark glass (is-floating, kviz-znanja.js), and settles back
   under them as the page is scrolled. Google's anchor strip at the bottom keeps its room (--qz-anchor). */
.qz-game .qz-after {
    position: sticky;
    bottom: calc(10px + var(--qz-anchor, 0px) + env(safe-area-inset-bottom, 0px));
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 0.85rem auto 0;
    padding: 0;
    border: 0;
    animation: qz-up 0.32s ease-out;
}

/* The glass: outside the block's own box (no size changes, so nothing under it moves either), shown only while it floats. */
.qz-game .qz-after::before {
    position: absolute;
    inset: -8px;
    z-index: -1;
    background: rgba(12, 16, 26, 0.5);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(8, 12, 24, 0.35);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
    content: "";
}

.qz-game .qz-after.is-floating::before {
    opacity: 1;
}

.qz-game .qz-verdict {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    margin: 0;
    padding: 0.3rem 0.95rem 0.3rem 0.3rem;
    color: var(--q-ink);
    background: var(--q-cream);
    border: 2.5px solid var(--q-ink);
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(8, 12, 24, 0.25);
    font-family: var(--news-font-head);
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.25;
}

.qz-game .qz-verdict img {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    margin: -2px 0;
}

.qz-game .qz-after.is-right .qz-verdict {
    color: var(--q-green);
}

.qz-game .qz-after.is-wrong .qz-verdict {
    color: var(--q-wrong-text);
}

.qz-game .qz-fact {
    flex: 1 1 100%;
    margin: 0;
    padding: 0.65rem 0.9rem;
    color: var(--q-soft);
    background: linear-gradient(180deg, var(--q-cream-light), var(--q-cream));
    border: 2px solid var(--q-ink);
    border-left: 2px solid var(--q-ink);
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(8, 12, 24, 0.22);
    font-size: 0.95rem;
    line-height: 1.45;
}

/* ---------- buttons: pills drawn like the owner's answers (face, dark outline, darker base) ---------- */

.qz-game .qz-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    margin-bottom: 5px;
    padding: 0.55rem 1.3rem 0.65rem;
    color: var(--q-ink);
    background: linear-gradient(180deg, var(--q-cream-light) 0%, var(--q-cream) 32%, var(--q-cream) 70%, var(--q-cream-dark) 100%);
    border: 2.5px solid var(--q-ink);
    border-radius: 999px;
    box-shadow: 0 3px 0 var(--q-tan), 0 5.5px 0 var(--q-ink);
    font-family: var(--news-font-head);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.15s ease;
}

.qz-game .qz-btn:hover,
.qz-game .qz-btn:focus-visible {
    color: var(--q-ink);
    background: linear-gradient(180deg, #ffffff 0%, var(--q-cream-light) 40%, var(--q-cream) 100%);
    filter: brightness(1.02);
}

.qz-game .qz-btn:focus-visible {
    outline: 3px solid var(--q-gold);
    outline-offset: 3px;
}

.qz-game .qz-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--q-tan), 0 2.5px 0 var(--q-ink);
}

.qz-game .qz-btn i {
    color: var(--q-deep);
}

.qz-game .qz-btn img {
    flex: 0 0 auto;
    width: 30px;
    height: auto;
    margin: -0.35rem 0 -0.35rem -0.35rem;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.qz-game .qz-btn.is-primary {
    color: var(--q-cream);
    background: linear-gradient(180deg, var(--q-blue-light) 0%, var(--q-blue) 32%, var(--q-blue) 70%, var(--q-blue-dark) 100%);
    border-color: var(--q-ink);
    box-shadow: 0 3px 0 var(--q-deep), 0 5.5px 0 var(--q-ink);
    text-shadow: 0 1px 0 rgba(8, 12, 24, 0.5);
}

.qz-game .qz-btn.is-primary:hover,
.qz-game .qz-btn.is-primary:focus-visible {
    color: #ffffff;
    background: linear-gradient(180deg, #6b95e2 0%, #2f63cf 40%, var(--q-blue) 100%);
    border-color: var(--q-ink);
}

.qz-game .qz-btn.is-primary:active {
    box-shadow: 0 1px 0 var(--q-deep), 0 2.5px 0 var(--q-ink);
}

.qz-game .qz-btn.is-primary i {
    color: inherit;
}

/* The challenge: gold, like the dukati. */
.qz-game .qz-btn.is-gold {
    color: #2b1d00;
    background: linear-gradient(180deg, #fff1b8 0%, var(--q-gold-light) 30%, var(--q-gold) 75%, #d99a2b 100%);
    box-shadow: 0 3px 0 var(--q-gold-dark), 0 5.5px 0 var(--q-ink);
}

.qz-game .qz-btn.is-gold:hover,
.qz-game .qz-btn.is-gold:focus-visible {
    color: #2b1d00;
    background: linear-gradient(180deg, #fff6d0 0%, #ffe08f 35%, var(--q-gold) 100%);
}

.qz-game .qz-btn.is-gold:active {
    box-shadow: 0 1px 0 var(--q-gold-dark), 0 2.5px 0 var(--q-ink);
}

.qz-game .qz-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.qz-game .qz-after .qz-next {
    flex: 1 1 100%;
    width: 100%;
    min-height: 54px;
    font-size: 1.12rem;
}

@media (min-width: 576px) {
    .qz-game .qz-after .qz-next {
        flex: 0 0 auto;
        width: auto;
        min-width: 13rem;
        margin-left: auto;
    }
}

.qz-game .qz-keys {
    width: fit-content;
    margin: 0.7rem auto 0;
    padding: 0.2rem 0.75rem;
    color: var(--q-cream);
    background: rgba(16, 22, 44, 0.62);
    border-radius: 999px;
    font-size: 0.76rem;
}

/* ---------- the end: the owner's ribbon, the medal, the score, the answers as dots ---------- */

.qz-game .qz-result {
    position: relative;
    margin: 18px auto 0;
    padding: 2.55rem 1rem 1.2rem;
    text-align: center;
    background: linear-gradient(180deg, var(--q-cream-light) 0%, var(--q-cream) 12%, var(--q-cream) 100%);
    border: 3px solid var(--q-ink);
    border-radius: 22px;
    box-shadow: 0 3px 0 var(--q-paper-base), 0 6px 0 var(--q-ink), 0 18px 34px rgba(8, 12, 24, 0.32);
}

.qz-game .qz-result.is-in {
    animation: qz-result-in 0.45s cubic-bezier(0.3, 1.3, 0.5, 1);
}

/* The ribbon over the card's top edge (traka in nine slices: its folded ends keep their shape, the band stretches with the
   word; the band's middle at 37 % of its height, where the word sits). */
.qz-ribbon {
    position: absolute;
    top: -26px;
    left: 50%;
    box-sizing: border-box;
    width: max-content;
    min-width: 13.5rem;
    max-width: calc(100% + 16px);
    height: 56px;
    margin: 0;
    padding: 9px 66px 0;
    color: var(--q-cream);
    border: 0 solid transparent;
    border-image: url("/img/igrice/kviz/ui/traka.svg") 0 330 0 330 fill / 0 75px 0 75px / 0 stretch;
    font-family: var(--news-font-head);
    font-size: 1.22rem;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 2px 0 rgba(8, 12, 24, 0.45);
    white-space: nowrap;
    transform: translateX(-50%);
}

.qz-result.is-in .qz-ribbon {
    animation: qz-ribbon 0.6s 0.1s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

.qz-game .qz-result-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    max-width: 100%;
    margin: 0 0 0.35rem;
    color: var(--q-deep);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.qz-game .qz-result-label img {
    width: 26px;
    height: 26px;
}

.qz-score-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin: 0 0 0.35rem;
}

/* The medal of the score (gold for ten, silver from eight, bronze from six: QuizArt), swinging on its ribbon. */
.qz-medal {
    position: relative;
    flex: 0 0 auto;
    width: 64px;
    transform-origin: 50% 2%;
}

.qz-medal img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 4px rgba(8, 12, 24, 0.3));
}

.qz-result.is-in .qz-medal {
    animation: qz-medal 1.1s 0.35s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}

/* Silver and gold: the shared sparkles at the medal's shoulder. */
.qz-medal.is-shining::after {
    position: absolute;
    top: 22%;
    right: -38%;
    width: 58%;
    aspect-ratio: 1;
    background: url("/img/igrice/zajednicko/iskrice.svg") center / contain no-repeat;
    content: "";
    animation: qz-twinkle 1.8s ease-in-out infinite;
}

.qz-game .qz-score {
    margin: 0;
    color: var(--q-ink);
}

.qz-game .qz-score strong {
    color: var(--q-deep);
    font-size: clamp(3.4rem, 15vw, 4.6rem);
    -webkit-text-stroke: 3px var(--q-ink);
    paint-order: stroke fill;
    text-shadow: 0 4px 0 var(--q-ink);
}

.qz-game .qz-score span {
    color: var(--q-soft);
    font-size: 1.5rem;
}

/* The answers again, as the owner's dots (the shared result stays the green and red squares). */
.qz-game .qz-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1px;
    margin: 0 0 0.6rem;
    font-size: 0;
    line-height: 0;
}

.qz-game .qz-grid img {
    width: 26px;
    height: 26px;
}

.qz-result.is-in .qz-grid img {
    animation: qz-dot-pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) both;
    animation-delay: calc(0.45s + var(--i, 0) * 60ms);
}

.qz-game .qz-result-text {
    color: var(--q-soft);
}

/* A challenge: who won on a pill of its colour (the challenge's picture beside it), then the link's table, the first three with
   the medals. */
.qz-game .qz-versus-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    color: #ffffff;
    background: var(--q-blue);
    border: 2.5px solid var(--q-ink);
    border-radius: 999px;
    box-shadow: 0 3px 0 var(--q-deep), 0 5px 0 var(--q-ink);
    text-shadow: 0 1px 0 rgba(8, 12, 24, 0.45);
}

.qz-game .qz-versus-line::before {
    flex: 0 0 auto;
    width: 34px;
    height: 26px;
    margin: -4px 0;
    background: url("/img/igrice/kviz/ui/izazov.svg") center / contain no-repeat;
    content: "";
}

.qz-game .qz-versus.is-won .qz-versus-line {
    background: var(--q-green);
    box-shadow: 0 3px 0 var(--q-green-dark), 0 5px 0 var(--q-ink);
}

.qz-game .qz-versus.is-tie .qz-versus-line {
    color: #2b1d00;
    background: var(--q-gold);
    box-shadow: 0 3px 0 var(--q-gold-dark), 0 5px 0 var(--q-ink);
    text-shadow: none;
}

.qz-game .qz-versus.is-lost .qz-versus-line {
    background: #5c6577;
    box-shadow: 0 3px 0 #3a4150, 0 5px 0 var(--q-ink);
}

.qz-game .qz-versus-table {
    margin-top: 0.7rem;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid var(--q-ink);
    border-radius: 14px;
}

.qz-game .qz-versus-table li {
    border-top: 1px solid rgba(22, 23, 28, 0.12);
}

.qz-game .qz-versus-table li.is-me {
    background: #e8efff;
}

.qz-game .qz-versus-table li:nth-child(-n + 3) .qz-vs-place {
    color: transparent;
    background: center / contain no-repeat;
}

.qz-game .qz-versus-table li:nth-child(1) .qz-vs-place {
    background-image: url("/img/igrice/kviz/ui/medalja-zlato.svg");
}

.qz-game .qz-versus-table li:nth-child(2) .qz-vs-place {
    background-image: url("/img/igrice/kviz/ui/medalja-srebro.svg");
}

.qz-game .qz-versus-table li:nth-child(3) .qz-vs-place {
    background-image: url("/img/igrice/kviz/ui/medalja-bronca.svg");
}

.qz-game .qz-vs-place {
    display: block;
    height: 1.6rem;
}

/* The next games: the main one the whole width, the challenge and the share under it, at every width (the stage is a phone's
   column on a computer too). */
.qz-game .qz-next-games {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    margin: 0.4rem 0 0.9rem;
}

.qz-game .qz-next-games > .qz-btn {
    flex: none;
    min-width: 0;
}

.qz-game .qz-next-games > .is-primary,
.qz-game .qz-next-games > :last-child:nth-child(2) {
    grid-column: 1 / -1;
}

.qz-game .qz-alt a,
.qz-game .qz-result a:not(.qz-btn):not(.qz-previous):not(.games-account-button) {
    color: var(--q-deep);
}

/* A guest's name for a challenge link, and a signed-in player's nickname: on a soft blue paper. */
.qz-game .qz-name-form,
.qz-game .qz-join {
    padding: 0.85rem;
    background: #e8efff;
    border: 2px solid var(--q-ink);
    border-top: 2px solid var(--q-ink);
    border-radius: 16px;
}

.qz-game .qz-name-row input {
    border: 2px solid var(--q-ink);
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
}

.qz-game .qz-name-row input:focus-visible {
    outline: 3px solid var(--q-gold);
    outline-offset: 1px;
}

/* What the round earned: the rank's picture with its number on the games' level badge, the gains, the way to the next rank. */
.qz-game .qz-earned {
    padding: 0.7rem 0.9rem;
    background: linear-gradient(180deg, #fff8dd, #fff0c2);
    border: 2px solid var(--q-ink);
    border-left: 2px solid var(--q-ink);
    border-radius: 16px;
}

.qz-rank-mark {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    line-height: 0;
}

.qz-game .qz-rank-mark img {
    display: block;
}

.qz-level-badge {
    position: absolute;
    right: -9px;
    bottom: -7px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding-top: 1px;
    color: var(--q-deep);
    background: url("/img/igrice/zajednicko/razina-znacka.svg") center / contain no-repeat;
    font-family: var(--news-font-head);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

.qz-game .qz-earned-gain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.6rem;
    color: var(--q-green);
}

.qz-earned-gain .qz-gain-coins {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: #8a5a00;
}

.qz-earned-gain .qz-gain-coins img {
    width: 20px;
    height: 20px;
}

/* The way to the next rank: a gold strand in a dark outline. */
.qz-game .qz-xp {
    height: 0.6rem;
    overflow: hidden;
    background: #ffffff;
    border: 1.5px solid var(--q-ink);
    border-radius: 999px;
}

.qz-game .qz-xp > span {
    background: linear-gradient(180deg, var(--q-gold-light), var(--q-gold) 60%, #d99a2b);
    border-radius: 999px;
}

.qz-game .qz-result .games-account {
    border: 2px solid var(--q-ink);
    border-top: 2px solid var(--q-ink);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff8dd, #fff0c2);
}

.qz-game .games-account-button {
    border-radius: 999px;
}

.qz-game .qz-today {
    padding-top: 0.9rem;
    border-top: 2px dashed rgba(22, 23, 28, 0.18);
}

.qz-game .qz-hist-bar {
    background: rgba(36, 87, 197, 0.32);
    border-radius: 4px 4px 0 0;
}

.qz-game .qz-hist li.is-mine .qz-hist-bar {
    background: var(--q-gold);
    box-shadow: inset 0 0 0 1.5px var(--q-ink);
}

.qz-game .qz-hist li.is-mine .qz-hist-label {
    color: var(--q-deep);
}

/* The next day's quiz on the owner's stopwatch. */
.qz-game .qz-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--q-soft);
}

.qz-game .qz-countdown img {
    flex: 0 0 auto;
    width: 38px;
    height: auto;
}

.qz-game .qz-countdown strong {
    color: var(--q-deep);
}

/* The day before: a cream pill with that day's type badge. */
.qz-game .qz-previous {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    margin: 0 auto 1rem;
    max-width: 26rem;
    padding: 0.45rem 1.1rem 0.5rem 0.45rem;
    color: var(--q-ink);
    background: linear-gradient(180deg, var(--q-cream-light) 0%, #ffffff 40%, var(--q-cream) 100%);
    border: 2.5px solid var(--q-ink);
    border-radius: 999px;
    box-shadow: 0 3px 0 var(--q-tan), 0 5.5px 0 var(--q-ink);
    text-align: left;
}

.qz-game .qz-previous:hover,
.qz-game .qz-previous:focus-visible {
    color: var(--q-ink);
    border-color: var(--q-ink);
    filter: brightness(1.03);
}

.qz-game .qz-previous .qz-badge {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
}

.qz-previous-copy {
    display: grid;
    min-width: 0;
}

/* The questions and answers once over: cream rows, the owner's tick or cross for each. */
.qz-game .qz-review {
    padding-top: 0.9rem;
    border-top: 2px dashed rgba(22, 23, 28, 0.18);
}

.qz-game .qz-review li {
    position: relative;
    padding: 0.55rem 0.75rem 0.55rem 2.6rem;
    background: #ffffff;
    border: 1.5px solid rgba(22, 23, 28, 0.2);
    border-left: 1.5px solid rgba(22, 23, 28, 0.2);
    border-radius: 14px;
}

.qz-game .qz-review li::before {
    position: absolute;
    top: 0.5rem;
    left: 0.45rem;
    width: 1.75rem;
    height: 1.75rem;
    background: url("/img/igrice/kviz/ui/tocka-tocno.svg") center / contain no-repeat;
    content: "";
}

.qz-game .qz-review li.is-wrong::before {
    background-image: url("/img/igrice/kviz/ui/tocka-krivo.svg");
}

.qz-game .qz-review-a i {
    display: none;
}

/* ---------- messages: on the dark glass, over the page's bottom ---------- */

.qz-game .qz-toast {
    color: var(--q-cream);
    background: rgba(16, 22, 44, 0.92);
    border: 2px solid var(--q-gold);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(8, 12, 24, 0.35);
}

/* ---------- the panels: cream paper (the pieces' cream, outline and base) ---------- */

.qz-game .qz-side {
    padding: 1.4rem 16px 0;
}

.qz-game .qz-side > .games-account,
.qz-game .qz-panel {
    margin: 0 0 1.2rem;
    padding: 0.9rem 1rem 1rem;
    color: var(--q-ink);
    background: linear-gradient(180deg, var(--q-cream-light) 0%, var(--q-cream) 30%);
    border: 2.5px solid var(--q-ink);
    border-radius: 20px;
    box-shadow: 0 3px 0 var(--q-paper-base), 0 5.5px 0 var(--q-ink);
}

.qz-game .qz-side > .games-account {
    border-top: 2.5px solid var(--q-ink);
}

.qz-game .qz-panel h2 {
    color: var(--q-deep);
}

.qz-game .qz-panel p {
    color: var(--q-soft);
}

.qz-game .qz-panel a {
    color: var(--q-deep);
}

.qz-game .qz-me-rank {
    column-gap: 1rem;
}

.qz-game .qz-me-facts img {
    width: 22px;
    height: 22px;
    vertical-align: -5px;
}

.qz-game .qz-me-facts i {
    color: var(--q-blue);
}

.qz-game .qz-stats > div {
    padding: 0.5rem 0.2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
}

.qz-game .qz-stats dd {
    color: var(--q-deep);
}

.qz-game .qz-topics a,
.qz-game .qz-more a {
    min-height: 42px;
    padding: 0.25rem 0.6rem 0.25rem 0.3rem;
    color: var(--q-ink);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
}

.qz-game .qz-topics a:hover,
.qz-game .qz-topics a:focus-visible,
.qz-game .qz-more a:hover,
.qz-game .qz-more a:focus-visible {
    color: var(--q-ink);
    background: #ffffff;
}

.qz-game .qz-topics .qz-badge {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
}

.qz-game .qz-more a {
    padding-left: 0.85rem;
}

.qz-game .qz-more i {
    color: var(--q-blue);
}

/* news.css squares every button, card, panel, note, input and picture on the site and takes their shadows (with !important,
   its selector weighing 0,2,1): the game's pieces are the owner's rounded ones, so inside the game (.qz.qz-game, 0,2,0 and
   more) they keep their roundness and their bases. */
.qz.qz-game .qz-btn,
.qz.qz-game .games-account-button,
.qz.qz-game .qz-name-row input,
.qz.qz-game .qz-choices .qz-choice,
.qz.qz-game .qz-tool {
    border-radius: 999px !important;
}

.qz.qz-game .qz-choices .qz-choice.is-flag {
    border-radius: 16px !important;
}

.qz.qz-game .qz-choices .qz-choice.is-flag img {
    border-radius: 6px !important;
}

.qz.qz-game .qz-flag img {
    border-radius: 10px !important;
}

.qz.qz-game .qz-note {
    border-radius: 14px !important;
}

.qz.qz-game .qz-panel {
    border-radius: 20px !important;
    box-shadow: 0 3px 0 var(--q-paper-base), 0 5.5px 0 var(--q-ink) !important;
}

.qz.qz-game .qz-result {
    border-radius: 22px !important;
    box-shadow: 0 3px 0 var(--q-paper-base), 0 6px 0 var(--q-ink), 0 18px 34px rgba(8, 12, 24, 0.32) !important;
}

/* The account box's buttons (the shared partial) as the game's pills: Otvori račun blue, Google cream. */
.qz-game .games-account-button {
    min-height: 44px;
    margin-bottom: 5px;
    color: var(--q-ink);
    background: linear-gradient(180deg, var(--q-cream-light) 0%, #ffffff 35%, var(--q-cream) 100%);
    border: 2.5px solid var(--q-ink);
    box-shadow: 0 3px 0 var(--q-tan), 0 5.5px 0 var(--q-ink);
    letter-spacing: 0.02em;
    text-transform: none;
    font-size: 0.95rem;
}

.qz-game .games-account-button:hover,
.qz-game .games-account-button:focus-visible {
    color: var(--q-ink);
    background: linear-gradient(180deg, #ffffff, var(--q-cream-light));
}

.qz-game .games-account-button.is-primary,
.qz-game .games-account-button.is-primary:hover,
.qz-game .games-account-button.is-primary:focus-visible {
    color: var(--q-cream);
    background: linear-gradient(180deg, var(--q-blue-light) 0%, var(--q-blue) 32%, var(--q-blue) 70%, var(--q-blue-dark) 100%);
    border-color: var(--q-ink);
    box-shadow: 0 3px 0 var(--q-deep), 0 5.5px 0 var(--q-ink);
    text-shadow: 0 1px 0 rgba(8, 12, 24, 0.5);
}

.qz-game .games-account-login a {
    color: var(--q-deep);
}

/* The words under the game keep the site's look and gutter. */
.qz-game .qz-about {
    width: min(var(--news-width, 1180px), calc(100% - 32px));
    margin: 2rem auto 0;
}

/* ---------- a computer: the stage in a frame of its painting out of focus, the panels beside it ---------- */

@media (min-width: 768px) {
    .qz-game {
        --q-s: 0.34;
        --q-k: 0.36;
        --q-dot: 30px;
    }

    .qz.qz-game {
        padding-top: 0;
    }

    .qz-frame {
        overflow: hidden;
        padding: 22px 16px 26px;
        background: #0c1222;
    }

    .qz-backdrop {
        position: absolute;
        inset: -60px;
        z-index: -1;
        display: block;
        background: var(--qz-picture, none) center / cover no-repeat, linear-gradient(165deg, var(--qz-from, #2457c5), var(--qz-to, #fff6df));
        filter: blur(30px) brightness(0.48) saturate(1.1);
    }

    .qz-game .qz-layout {
        display: grid;
        grid-template-columns: minmax(0, 640px);
        justify-content: center;
        gap: 1.4rem;
    }

    .qz-game .qz-stage {
        min-height: 760px;
        padding: 16px 20px 30px;
        border: 3px solid var(--q-ink);
        border-radius: 24px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    }

    .qz-logo {
        height: 50px;
    }

    .qz-game .qz-host-img {
        width: 84px;
        height: 84px;
    }

    .qz-game .qz-bubble {
        min-height: calc(2 * 1.3em + 0.9rem + 5px);
        font-size: 0.95rem;
    }

    .qz-game .qz-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        align-items: start;
        padding: 0;
    }

    .qz-game .qz-side > .games-account,
    .qz-game .qz-panel {
        margin: 0;
    }

    .qz-game .qz-choices .qz-choice {
        font-size: 1.1rem;
    }

    .qz-game .qz-choices .qz-choice .qz-letter {
        font-size: 1.22rem;
    }
}

@media (min-width: 992px) {
    .qz-game .qz-layout {
        grid-template-columns: minmax(0, 640px) minmax(270px, 320px);
        align-items: start;
    }

    .qz-game .qz-side {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* A low laptop screen: Bubi and the logo a notch smaller, so the question and its answers stay in view. */
@media (min-width: 768px) and (max-height: 820px) {
    .qz-game .qz-host-img {
        width: 70px;
        height: 70px;
    }

    .qz-logo {
        height: 44px;
    }
}

/* ---------- narrow phones ---------- */

@media (max-width: 575.98px) {
    .qz-game .qz-modes {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .qz-game .qz-mode {
        padding: 0 0.4rem;
        font-size: 0.82rem;
    }

    .qz-game .qz-mode-menu > .qz-mode {
        width: 100%;
    }
}

@media (max-width: 389.98px) {
    .qz-game {
        --q-dot: 24px;
    }

    .qz-logo {
        height: 36px;
    }

    .qz-coins {
        min-width: 92px;
        padding-left: 36px;
    }

    .qz-coins small {
        display: none;
    }

    .qz-game .qz-host-img {
        width: 60px;
        height: 60px;
    }

    .qz-game .qz-choices .qz-choice {
        font-size: 1rem;
    }
}

/* ---------- moves ---------- */

@keyframes qz-line-in {
    from { opacity: 0; transform: translateX(-8px) scale(0.95); }
}

@keyframes qz-bump {
    40% { transform: scale(1.12); }
}

@keyframes qz-card-in {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
}

@keyframes qz-choice-in {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
}

@keyframes qz-breathe {
    50% { filter: brightness(1.12); }
}

@keyframes qz-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

@keyframes qz-shake {
    10%, 90% { transform: translateX(-1px); }
    25%, 75% { transform: translateX(3px); }
    40%, 60% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
}

@keyframes qz-wait {
    50% { background-position: 100% 0; }
}

@keyframes qz-dot-pop {
    0% { transform: scale(0.4); opacity: 0; }
    60% { transform: scale(1.18); opacity: 1; }
    100% { transform: none; }
}

@keyframes qz-up {
    from { opacity: 0; transform: translateY(8px); }
}

@keyframes qz-result-in {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
}

@keyframes qz-ribbon {
    from { opacity: 0; transform: translateX(-50%) scale(0.4) rotate(-6deg); }
}

@keyframes qz-medal {
    0% { opacity: 0; transform: translateY(-14px) rotate(-16deg); }
    35% { opacity: 1; transform: rotate(10deg); }
    60% { transform: rotate(-5deg); }
    80% { transform: rotate(2deg); }
    100% { transform: none; }
}

@keyframes qz-twinkle {
    50% { transform: scale(1.25) rotate(18deg); opacity: 0.75; }
}

/* A right answer's sparkles (kviz-znanja.js puts the shared iskrice over the pill, then takes them away). */
.qz-sparkle {
    position: absolute;
    z-index: 2;
    width: 54px;
    height: 54px;
    pointer-events: none;
    animation: qz-sparkle 0.9s ease-out forwards;
}

@keyframes qz-sparkle {
    0% { opacity: 0; transform: scale(0.3) rotate(-20deg); }
    30% { opacity: 1; transform: scale(1.1) rotate(8deg); }
    100% { opacity: 0; transform: scale(1.3) rotate(20deg) translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    .qz-bg,
    .qz-coins.is-bump,
    .qz-game .qz-bubble.is-new,
    .qz-question.is-in,
    .qz-game .qz-choices.is-in .qz-choice,
    .qz-game .qz-choices .qz-choice.is-pending,
    .qz-game .qz-choices .qz-choice.is-right.is-chosen,
    .qz-game .qz-choices .qz-choice.is-wrong,
    .qz-game .qz-choices .qz-choice.is-waiting .qz-choice-text,
    .qz-game .qz-progress li.is-new,
    .qz-game .qz-after,
    .qz-game .qz-result.is-in,
    .qz-result.is-in .qz-ribbon,
    .qz-result.is-in .qz-medal,
    .qz-result.is-in .qz-grid img,
    .qz-medal.is-shining::after {
        animation: none;
    }

    .qz-sparkle {
        display: none;
    }

    .qz-game .qz-choices .qz-choice,
    .qz-game .qz-btn,
    .qz-game .qz-mode,
    .qz-bg.is-next {
        transition: none;
    }
}
