@font-face {
    font-family: 'GothamRnd';
    src: url('../fonts/GothamRnd-Book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GothamRnd';
    src: url('../fonts/GothamRnd-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: 'GothamRnd', 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #eee;
    height: 100%;
    overflow: hidden;
}

/* Wrapper */
#app {
    width: 100%;
    background: #fff;
    height: 100%;
    overflow-y: auto;
}

/* Screens */
.screen { display: none; }
.screen.active { display: block; }

/* ======================
   PAGE SHELL
   ====================== */
.page {
    position: relative;
    overflow: hidden;
    padding: 0 28px 60px;
    min-height: 100%;
}

/* Barevné kruhy – CSS pseudo */
.page::before, .page::after,
.page .c-ml, .page .c-bl, .page .c-br {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
}

/* Intro kruhy (sytější) */
.page--intro .c-tl { position: fixed; width: 110px; height: 110px; top: -40px; left: 14px; background: #e32213; }
.page--intro .c-tr { position: fixed; width: 200px; height: 200px; top: -60px; right: -70px; background: #a04592; }
.page--intro .c-ml { position: fixed; width: 160px; height: 160px; top: 26%; left: -105px; background: #f8b121; }
.page--intro .c-bl { position: fixed; width: 250px; height: 250px; bottom: -20px; left: -55px; background: #00ace8; }
.page--intro .c-br { position: fixed; width: 165px; height: 165px; bottom: 140px; right: -65px; background: #bdbe00; }

/* Quiz kruhy (pastelové) */
.page--quiz .c-tl { position: fixed; width: 110px; height: 110px; top: -40px; left: 14px; background: #f7bcb8; }
.page--quiz .c-tr { position: fixed; width: 200px; height: 200px; top: -60px; right: -70px; background: #e2c7de; }
.page--quiz .c-ml { position: fixed; width: 160px; height: 160px; top: 26%; left: -105px; background: #fde7bc; }
.page--quiz .c-bl { position: fixed; width: 250px; height: 250px; bottom: -20px; left: -55px; background: #b2e6f8; }
.page--quiz .c-br { position: fixed; width: 165px; height: 165px; bottom: 140px; right: -65px; background: #ebebb2; }

/* Obsah nad kruhy */
.page > * { position: relative; z-index: 1; }

/* Společný styl všech kruhů */
.c-tl, .c-tr, .c-ml, .c-bl, .c-br {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    display: block;
}

/* ======================
   LOGO
   ====================== */
.logo {
    display: flex;
    justify-content: center;
    padding-top: 28px;
    margin-bottom: 6px;
}

.logo-img {
    width: 55%;
    max-width: 200px;
    display: block;
}

#s-intro .logo {
    padding-top: 110px;
}

#s-contact .logo-img,
#s-question .logo-img,
#s-answer .logo-img {
    width: 38%;
    max-width: 150px;
}

/* ======================
   SCREEN 1 – ÚVOD
   ====================== */
.intro-body {
    text-align: center;
    margin-top: 52px;
}

.intro-body h1 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #747272;
    line-height: 1.25;
    margin-bottom: 20px;
}

.intro-body p {
    font-size: 1rem;
    color: #747272;
    line-height: 2;
    margin-bottom: 36px;
}

/* ======================
   SCREEN 2 – KONTAKT
   ====================== */
.contact-title {
    text-align: center;
    font-size: 1.45rem;
    font-weight: 700;
    color: #747272;
    margin-top: 36px;
    margin-bottom: 28px;
}

.field-label {
    font-size: .82rem;
    color: #747272;
    margin-bottom: 6px;
}

.field-input {
    display: block;
    width: 100%;
    border: 1.5px solid #ccc;
    border-radius: 30px;
    padding: 13px 20px;
    font-family: inherit;
    font-size: .95rem;
    color: #444;
    outline: none;
    margin-bottom: 16px;
    background: #fff;
    transition: border-color .2s;
}
.field-input:focus { border-color: #7a9c00; }

.contact-error {
    font-size: .82rem;
    color: #e32213;
    font-weight: 400;
    text-align: center;
    min-height: 1.2em;
    margin-bottom: 8px;
}

.contact-submit { text-align: center; margin: 16px 0 36px; }

.qr-section { text-align: center; }
.qr-section p   { font-size: .65rem; color: #747272; margin-bottom: 8px; }
.qr-section img { width: 110px; }

/* ======================
   ZELENÉ TLAČÍTKO
   ====================== */
.btn-green {
    display: inline-block;
    background: #7a9c00;
    color: #fff;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 999px;
    padding: 10px 25px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(123,191,46,.3);
}

/* ======================
   SCREEN 3 – OTÁZKA
   ====================== */
.q-header {
    display: flex;
    justify-content: center;
    margin-top: 28px;
    margin-bottom: 14px;
}

.q-num-circle {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #777;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.q-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #747272;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 28px;
}

.options {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.opt-btn {
    display: flex;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    margin-bottom: 14px;
}

.opt-btn:last-child {
    margin-bottom: 0;
}

.opt-letter {
    width: 42px; height: 42px; min-width: 42px;
    margin-right: 10px;
    border-radius: 50%;
    border: 2px solid #ccc;
    color: #747272;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    background: #fff;
    transition: all .15s;
}

.opt-box {
    font-weight: 400;
    flex: 1;
    border: 1.5px solid #ccc;
    border-radius: 30px;
    padding: 13px 18px;
    font-family: inherit;
    font-size: 0.9rem;

    color: #747272;
    line-height: 1.35;
    text-align: center;
    background: #fff;
    transition: all .15s;
}

/* Stavy */
.opt-btn.correct .opt-letter { background: #7a9c00; border-color: #7a9c00; color: #fff; }
.opt-btn.correct .opt-box    { background: #7a9c00; border-color: #7a9c00; color: #fff; font-size: 0.9rem; font-weight: 400; }
.opt-btn.wrong   .opt-letter { background: #e32213; border-color: #e32213; color: #fff; }
.opt-btn.wrong   .opt-box    { background: #e32213; border-color: #e32213; color: #fff; font-size: 0.9rem; font-weight: 400; }

.q-progress {
    text-align: center;
    font-size: .85rem;
    color: #747272;
    font-weight: 400;
}

/* ======================
   SCREEN 4 – ODPOVĚĎ
   ====================== */
.answer-feedback {
    text-align: center;
    margin-top: 22px;
}

.answer-label {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.answer-exp {
    font-size: .82rem;
    color: #747272;
    line-height: 1.55;
    margin-bottom: 20px;
}

.btn-next {
    background: none;
    border: none;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #747272;
    cursor: pointer;
    padding: 6px 0;
}

/* ======================
   SCREEN 5 – VÝSLEDKY
   ====================== */
.result-page {
    padding: 32px 28px 64px;
    background: #fff;
    min-height: 100vh;
}

.result-brand { text-align: center; margin-bottom: 22px; }
.result-brand strong { display: block; font-size: 1.4rem; font-weight: 700; color: #747272; }
.result-brand span   { font-size: .9rem; color: #747272; }

.score-wrap { text-align: center; margin-bottom: 18px; }

.score-circle {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    width: 100px; height: 100px;
    border-radius: 50%;
    border: 4px solid #7a9c00;
    background: #f8fdf0;
    margin-bottom: 12px;
}

.score-num   { font-size: 2.4rem; font-weight: 900; color: #747272; line-height: 1; }
.score-of    { font-size: .85rem; color: #747272; font-weight: 400; margin-left: 2px; }
.score-level { font-size: 1.2rem; font-weight: 700; color: #7a9c00; margin-bottom: 6px; }
.score-desc  { font-size: .87rem; color: #747272; line-height: 1.5; }

.prize-box {
    background: linear-gradient(135deg, #f3fce8, #e8f7ff);
    border: 1px solid #d4f0aa;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: .83rem;
    color: #747272;
    line-height: 1.8;
    margin: 18px 0;
    text-align: center;
}
.prize-box strong { color: #7a9c00; }

.review-heading { font-size: .93rem; font-weight: 700; color: #747272; margin-bottom: 10px; }

.review-item {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-left: 3px solid #ddd;
    background: #fafafa;
    font-size: .77rem;
}
.review-item.ok  { border-left-color: #7a9c00; background: #f7fcef; }
.review-item.bad { border-left-color: #e32213; background: #fff5f5; }
.review-q   { font-weight: 700; color: #747272; margin-bottom: 3px; line-height: 1.3; }
.review-ok  { color: #7a9c00; font-weight: 700; margin-bottom: 2px; }
.review-bad { color: #e32213; margin-bottom: 2px; }
.review-exp { color: #747272; font-style: italic; margin-top: 3px; line-height: 1.4; }

.btn-restart {
    display: block;
    margin: 22px auto 0;
    font-family: inherit;
    font-size: .85rem;
    font-weight: 700;
    background: none;
    color: #747272;
    border: 2px solid #eee;
    border-radius: 999px;
    padding: 9px 26px;
    cursor: pointer;
}

/* ======================
   KŘÍŽEK – zavřít kvíz
   ====================== */
.btn-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(227, 34, 19, 0.25);
    color: #e32213;
    border: none;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ======================
   DIALOG
   ====================== */
/* Nativní <dialog> – explicitní centrování přes transform,
   nezávislé na UA stylesheet (inset:0 + margin:auto se chová
   nekonzistentně mezi prohlížeči/WebView). */
.dialog-native {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    border: none;
    padding: 0;
    background: transparent;
    max-width: none;
    max-height: none;
}

.dialog-native::backdrop {
    background: rgba(0,0,0,.45);
}

.dialog-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 20px;
    width: 82vw;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.dialog-box p {
    font-size: 1rem;
    font-weight: 700;
    color: #747272;
    margin-bottom: 22px;
    line-height: 1.4;
}

.dialog-btns {
    display: flex;
    justify-content: center;
}

.dialog-btns .dialog-btn {
    margin: 0 5px;
}

.dialog-btn {
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    padding: 10px 24px;
    cursor: pointer;
}

.dialog-btn--cancel {
    background: #eee;
    color: #747272;
}

.dialog-btn--confirm {
    background: #e32213;
    color: #fff;
}

/* ======================
   CHECKBOX
   ====================== */
.checkbox-wrap {
    margin: 10px 0 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-box {
    width: 36px;
    height: 36px;
    min-width: 36px;
    margin-right: 12px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: border-color .2s, background .2s;
    margin-top: 2px;
}

.checkbox-check {
    color: #7a9c00;
    font-size: 1.1rem;
    font-weight: 700;
    display: none;
}

.checkbox-label input:checked ~ .checkbox-box {
    border-color: #7a9c00;
}

.checkbox-label input:checked ~ .checkbox-box .checkbox-check {
    display: block;
}

.checkbox-text {
    font-size: .62rem;
    color: #747272;
    line-height: 1.5;
}

/* Disabled stav tlačítka */
.btn-green--disabled {
    opacity: 0.45;
    cursor: not-allowed;
}