* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #f8f2f3;
    color: #242126;
    font: 16px/1.6 system-ui, sans-serif
}

.shell {
    max-width: 740px;
    margin: 32px auto;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 50px #60102014
}

header {
    background: #c8102e;
    color: white;
    padding: 25px 32px;
    display: grid;
    gap: 4px
}

.brand {
    font-size: 32px;
    font-weight: 850;
    letter-spacing: -1px
}

header small {
    font-size: 13px
}

section {
    padding: 32px
}

h1,
h2,
h3 {
    line-height: 1.2
}

h1 {
    font-size: clamp(32px, 6vw, 48px);
    margin: 12px 0
}

h2 {
    font-size: clamp(24px, 5vw, 34px)
}

.eyebrow {
    color: #b51029;
    font-size: 13px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 1px
}

label {
    display: block;
    font-weight: 650;
    margin: 16px 0
}

input {
    display: block;
    width: 100%;
    padding: 13px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font: inherit;
    margin-top: 5px
}

.note,
footer {
    font-size: 13px;
    color: #625b60
}

button {
    font: inherit;
    cursor: pointer;
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 700;
    width: 100%;
    border: 1px solid #ddd
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid #1565c0;
    outline-offset: 3px
}

.primary {
    background: #c8102e;
    color: white;
    border: 0;
    margin-top: 12px
}

.primary:disabled {
    opacity: .55;
    cursor: wait
}

.meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700
}

progress {
    width: 100%;
    height: 12px;
    accent-color: #c8102e
}

#answers {
    display: grid;
    gap: 12px
}

.answer {
    background: white;
    text-align: left;
    color: #242126
}

.answer:not(:disabled):hover {
    border-color: #c8102e;
    background: #fff5f6
}

.answer:disabled {
    cursor: default
}

.correct {
    background: #e5f6eb !important;
    border-color: #22834b !important;
    color: #145c34 !important
}

.wrong {
    background: #fde9eb !important;
    border-color: #c8102e !important;
    color: #a20d25 !important
}

#feedback {
    margin-top: 20px;
    padding: 20px;
    border-radius: 14px;
    animation: appear .2s ease-out
}

#feedback h3 {
    margin-top: 0
}

.score {
    font-size: 64px;
    font-weight: 850;
    color: #c8102e;
    text-align: center;
    background: #fff3f5;
    border-radius: 20px;
    padding: 20px
}

.contact {
    display: block;
    color: #a20d25;
    padding: 10px 0;
    overflow-wrap: anywhere
}

footer {
    padding: 20px 32px;
    border-top: 1px solid #eee;
    text-align: center
}

#error {
    color: #a20d25
}

[hidden] {
    display: none !important
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(6px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media(max-width:600px) {
    .shell {
        margin: 0;
        min-height: 100vh;
        border-radius: 0
    }

    section,
    header {
        padding: 22px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important
    }
}

/* LoveRed 1.1 */
header {
    background: #fff;
    color: #242126;
    text-align: center;
    justify-items: center;
    border-bottom: 4px solid #c8102e
}

.brand {
    color: #c8102e
}

.brand-image {
    display: block;
    width: min(100%, 1000px);
    max-height: 200px;
    object-fit: contain
}

header small {
    margin-top: 8px
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0
}

.contact-grid .contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 12px;
    border: 1px solid #e6dce0;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 3px 12px #6010200a;
    transition: transform .2s, box-shadow .2s, border-color .2s
}

.contact-grid .contact img {
    width: 100%;
    height: 100px;
    object-fit: contain
}

.contact-grid .contact:hover {
    transform: translateY(-3px);
    border-color: #c8102e;
    box-shadow: 0 8px 20px #60102018
}

.contact-grid .contact:active {
    transform: scale(.98)
}

@media(max-width:420px) {
    .contact-grid {
        grid-template-columns: 1fr
    }

    .contact-grid .contact img {
        height: 90px
    }
}

@media(prefers-reduced-motion:reduce) {
    .contact-grid .contact {
        transition: none
    }
}
/* LoveRed 2.0 */
.category-picker{border:0;padding:0;margin:24px 0 12px;min-width:0}.category-picker legend{font-size:23px;font-weight:800}.category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.category-card{background:white;color:#242126;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;min-height:100px;padding:12px;overflow-wrap:anywhere}.category-card:first-child{grid-column:1/-1}.category-card small{font-size:12px;font-weight:400}.category-card[aria-pressed=true]{background:#c8102e;color:white;border-color:#c8102e}.category-card:hover{border-color:#c8102e}#review{margin:24px 0;border:1px solid #ddd;border-radius:12px;padding:16px}#review summary{cursor:pointer;font-weight:700}#mistakes article{border-top:1px solid #ddd;margin-top:12px}#mistakes p{margin:6px 0} @media(max-width:380px){.category-grid{grid-template-columns:1fr}}

/* LoveRed 3.2 — full width */
body{background:#fff;min-height:100vh}
.shell{width:100%;max-width:none;margin:0;border-radius:0;box-shadow:none;min-height:100vh;display:flex;flex-direction:column}
.shell>section{width:100%;padding:clamp(20px,4vw,64px);flex:1}
header{padding:24px clamp(20px,4vw,64px)}
.brand-image{max-height:160px;width:min(100%,760px)}
#intro{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}
#intro>label{margin:0}
#intro>:not(label){grid-column:1/-1}
.category-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:14px}
.category-card{min-height:105px;border-radius:14px}
.category-card:first-child{min-height:85px}
#answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#answers .answer{min-height:85px;margin:0;overflow-wrap:anywhere}
#question{font-size:clamp(26px,3vw,44px);margin:24px 0}
#feedback{padding:clamp(18px,3vw,36px)}
.contact-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}
.score{font-size:clamp(64px,9vw,110px)}
footer{margin-top:auto}
@media(max-width:600px){#intro,#answers{grid-template-columns:1fr}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-card{min-height:95px;font-size:14px}.brand-image{max-height:120px}}
@media(max-width:360px){.category-grid{grid-template-columns:1fr}}

.quiz-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:24px 0}.quiz-actions button{width:auto;margin:0;padding:12px 18px;font-size:15px;background:#fff;color:#333;border:1px solid #ccc;border-radius:10px}.quiz-actions #cancel-quiz{color:#c8102e;border-color:#c8102e}.quiz-actions button:hover:not(:disabled){background:#f8eeee}.quiz-actions button:disabled{opacity:.45;cursor:default}@media(max-width:380px){.quiz-actions button{padding:10px;font-size:13px}}

/* 3.4: natural height in embedded quiz */
html,body{height:auto;min-height:0}
.shell{min-height:0;overflow:visible}
.shell>section{flex:none}
#game{padding-block:clamp(16px,2vw,28px)}
#game #question{margin:12px 0 18px}
#answers .answer{min-height:64px}
.quiz-actions{margin:16px 0}
