/* ============================================================
   THE RENAULT GAME — xtra-style.css
   Samsung Galaxy Tab A9+ SM-X210  |  Portrait locked
   CSS viewport: 800 × 1280 px  (1920×1200 physical @ 1.5x DPR)
   Root: 1rem = 1vw = 8px CSS = 12dp physical
   ============================================================ */

/* ---- Root scale: 1rem = 1vw = 8px at 800px wide ---- */
:root {
    font-size: 1.5vw;

    --navy:      #1B2B6B;
    --navy-dark: #000;
    --white:     #ffffff;
    --green:     #2e7d52;
    --yellow:    #e8b020;
    --red:       #b5302a;
    --grey:      #c0c0c0;
    --btn-bg:    rgba(255,255,255,0.8);
    --r-btn:     0;
    --r-card:    4rem;    /* card border-radius   */
    --font:      NouvelR, Helvetica, Arial, sans-serif;
    --shadow:    0 1rem 5rem rgba(0,0,0,0.30);
    --shadow-sm: 0 0.4rem 2rem rgba(0,0,0,0.18);
}

/* ---- Base reset ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--navy-dark);
    font-family: var(--font);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

/* ---- Landscape guard ---- */
@media (orientation: landscape) {
    body::before {
        content: "Παρακαλώ περιστρέψτε τη συσκευή σε κατακόρυφη θέση";
        position: fixed;
        inset: 0;
        z-index: 99999;
        background: var(--navy-dark);
        color: var(--white);
        font-size: 3rem;
        font-family: var(--font);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 5rem;
    }
    body > * {
        visibility: hidden;
    }
}

/* ---- Page / layout ---- */
#main {
    display: block;
    height: 100vh;
    width: 100vw;
    background: var(--white);
}
#main .page {
    display: none;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.h-100 {
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
}

/* ================================================================
   BACKGROUNDS
   ================================================================ */
.renault-home-bg,
.renault-cat-bg,
.renault-result-bg {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    /* Samsung One UI safe areas */
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.img-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    touch-action: manipulation;
    left: 32%;
    width: 36%;
}
.img-btn img {
    height: auto;
    width: 100%;
    display: block;
}
.img-btn.back-btn{
    left: 42%;
    width: 16%;
    bottom: 8%;
}
.q-dot-img {
    width: 3.25rem;   /* ίδιο με .q-dot */
    height: 3.25rem;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
}
/* Result screen — μεγαλύτερα */
.result-card__dots .q-dot-img {
    width: 4rem;
    height: 4rem;
}
.renault-logo-img {
    position: absolute;
    top: -15px;
    left: 20%;
    width: 60%;
    height: auto;
    z-index: 10;
}
.renault-logo-img-small {
    left: 30%;
    width: 40%;
}
.renault-home-bg   {
    background-image: url(../img/background_categories.jpg);
}
.renault-cat-bg    {
    background-image: url(../img/background_all-rest.jpg);
}
.renault-result-bg {
    background-image: url(../img/background.jpg);
}

/* ================================================================
   LOGO BADGE  —  white rounded card
   "the / RENAULT / game"
   ================================================================ */
.renault-logo-badge {
    position: absolute;
    top: 3.5vh;            /* ~45px from top */
    left: 40%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 3.5rem;
    padding: 2.2rem 5.5rem 2rem;
    text-align: center;
    line-height: 1;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}
.renault-logo-badge--small {
    padding: 1.5rem 4rem 1.3rem;
    border-radius: 0 0 2.5rem 2.5rem;
    top: 0;
    left: 30%;
    transform: none;
    width: 40%;
}
.renault-logo-badge--inline {
    position: static;
    transform: none;
    display: inline-block;
    margin: 3rem auto -16em;
    padding: 2rem 4.5rem 1.8rem;
    border-radius: 3rem;
}

/* text inside badge */
.renault-the {
    display: block;
    font-size: 1.75rem;   /* 14px CSS | 21dp */
    font-weight: 300;
    color: var(--navy);
    letter-spacing: 0.07em;
    line-height: 1.3;
}
.renault-brand {
    display: block;
    font-size: 5.5rem;    /* 44px CSS | 66dp */
    font-weight: 900;
    color: var(--navy);
    line-height: 0.88;
    letter-spacing: -0.02em;
}
.renault-game-word {
    display: block;
    font-size: 2.75rem;   /* 22px CSS | 33dp */
    font-weight: 700;
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: 0.02em;
}

/* small variant overrides */
.renault-logo-badge--small .renault-the        {
    font-size: 1.4rem;
}
.renault-logo-badge--small .renault-brand      {
    font-size: 3.8rem;
}
.renault-logo-badge--small .renault-game-word  {
    font-size: 2.1rem;
}

/* inline (result card) overrides */
.renault-logo-badge--inline .renault-the       {
    font-size: 1.5rem;
}
.renault-logo-badge--inline .renault-brand     {
    font-size: 4.2rem;
}
.renault-logo-badge--inline .renault-game-word {
    font-size: 2.2rem;
}

/* ================================================================
   HOME SCREEN
   ================================================================ */
.home-cta-box {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -10%);
    background: var(--white);
    border-radius: var(--r-card);
    padding: 3rem 5rem;
    text-align: center;
    box-shadow: var(--shadow);
    width: 60vw;
    max-width: 640px;
}
.lets-get {
    font-size: 5rem;     /* 60px CSS | 90dp — bold statement */
    font-weight: 900;
    color: var(--navy);
    line-height: 1.0;
}

/* ================================================================
   SHARED CTA BUTTON
   ================================================================ */
.cta-btn {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: var(--r-btn);
    font-size: 3.25rem;    /* 26px CSS | 39dp */
    line-height: 1;
    padding: 2rem 6rem;  /* height ~47px CSS > 48dp tap target ✓ */
    font-weight: 700;
    font-family: var(--font);
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s, color 0.2s;
    touch-action: manipulation;
}
.cta-btn:hover,
.cta-btn:focus,
.cta-btn:active {
    background: rgba(255,255,255,0.95);
    color: var(--navy);
    text-decoration: none;
    outline: none;
}

.landing-cta {
    position: absolute;
    bottom: 0;
    z-index: 20;
}

/* ================================================================
   CATEGORY SCREEN
   ================================================================ */
.cat-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* push down below logo badge (~15vh) + some breathing room */
    padding: 16vh 5vw 10vh;
}

.cat-headline {
    color: var(--white);
    font-size: 5.2rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    text-shadow: 0 0.4rem 2.5rem rgba(0,0,0,0.40);
}
.cat-subheadline {
    color: var(--navy);
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3.5rem;
    opacity: 0.92;
    margin-top: 6rem;
}
.cat-list {
    width: 80vw;           /* 688px */
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;           /* 17.6px gap */
}
.cat-btn {
    display: block;
    background: var(--btn-bg);
    color: var(--navy);
    font-size: 4.2rem;
    font-weight: 400;
    text-align: center;
    border-radius: var(--r-btn);
    padding: 2rem 3.5rem;
    line-height: 1.1;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, transform 0.08s;
    border: none;
    text-decoration: none;
    font-family: var(--font);
    box-shadow: var(--shadow-sm);
    touch-action: manipulation;
}
.cat-btn:hover,
.cat-btn:focus,
.cat-btn:active {
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    transform: scale(1.01);
    outline: none;
}

/* ================================================================
   QUESTION SCREEN
   ================================================================ */
.question-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

/* white header strip */
.q-header {
    flex-shrink: 0;
    background: var(--white);
    padding: calc(env(safe-area-inset-top, 0px) + 2.5rem) 4rem 2.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 0.3rem 1.5rem rgba(0,0,0,0.12);
    margin-top: 28%;
}
.q-category-label {
    font-size: 2.5rem;    /* 18px CSS | 27dp */
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

/* progress dots */
.q-dots {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.q-dot {
    display: inline-block;
    width: 3.25rem;        /* 26px CSS | 39dp */
    height: 3.25rem;
    border-radius: 50%;
    transition: background 0.35s ease;
    flex-shrink: 0;
}
.q-dot--pending  {
    background: var(--yellow);
}
.q-dot--correct  {
    background: var(--green);
}
.q-dot--wrong    {
    background: var(--red);
}
.q-dot--inactive {
    background: var(--grey);
}

/* scrollable body */
.q-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4vh 6vw 8vh;
}
.q-text {
    color: var(--navy);
    font-size: 3.25rem;    /* 26px CSS | 39dp */
    font-weight: 700;
    text-align: center;
    line-height: 1.2em;
    margin-bottom: 6vh;
    text-shadow: 0 0.3rem 1.5rem rgba(0,0,0,0.38);
    max-width: 84vw;
}
.q-answers {
    width: 80vw;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}
.q-btn {
    width: 100%;
    background: var(--btn-bg);
    color: var(--navy);
    font-size: 4rem;    /* 22px CSS | 33dp */
    font-weight: 600;
    border: 0.4rem solid transparent;
    border-radius: var(--r-btn);
    /* pad-y 18px + 22px text + 18px = 58px CSS ≈ 87dp tap ✓ */
    padding: 2rem 3.5rem;
    line-height: 1em;
    text-align: center;
    cursor: pointer;
    font-family: var(--font);
    box-shadow: var(--shadow-sm);
    transition: background 0.16s, border-color 0.16s, color 0.16s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.q-btn:active:not(.disabled):not(.correct):not(.wrong) {
    transform: scale(0.985);
}
.q-btn.selected {
    background: rgba(255,255,255,0.97);
    border-color: rgba(255,255,255,0.97);
    outline: none;
}
.q-btn.correct {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}
.q-btn.wrong {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}
.q-btn.disabled {
    pointer-events: none;
    opacity: 0.70;
}

/* ================================================================
   RESULT SCREENS
   ================================================================ */
.result-card {
    position: absolute;
    top: 20%;
    left: 18%;
    background-color: transparent;
    background-image: url(../img/end_borderAsset.png);
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center center;
    padding: 6rem 2rem 24rem 0rem;
    text-align: center;
    width: 64%;
    max-width: 740px;
}
.result-card__title {
    font-size: 7rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}
.result-card__title--retry {
    font-size: 4.5rem;
    line-height: 1.12;
}
.result-card__subtitle {
    font-size: 4rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 2.8rem;
}
.result-card__dots {
    display: flex;
    gap: 2.4rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.result-card__dots .q-dot {
    width: 4rem;           /* 32px CSS | 48dp */
    height: 4rem;
}

/* ================================================================
   LOADER
   ================================================================ */
.loader {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    z-index: 50;
    background: transparent;
}
.loader span {
    display: inline-block;
    width: 1.8rem;
    height: 1.8rem;
    background: var(--white);
    border-radius: 50%;
    animation: loaderBounce 0.9s infinite alternate;
}
.loader span:nth-of-type(2) {
    animation-delay: 0.3s;
}
.loader span:nth-of-type(3) {
    animation-delay: 0.6s;
}

@keyframes loaderBounce {
    from {
        transform: translateY(0);
        opacity: 0.35;
    }
    to   {
        transform: translateY(-1.4rem);
        opacity: 1;
    }
}

/* ================================================================
   ANIMATION DELAYS
   ================================================================ */
.delay-500ms {
    animation-delay: 0.5s !important;
}
.delay-600ms {
    animation-delay: 0.6s !important;
}
.delay-700ms {
    animation-delay: 0.7s !important;
}
.delay-800ms {
    animation-delay: 0.8s !important;
}
.delay-1s    {
    animation-delay: 1.0s !important;
}