    :root {
        --brand: #FF5001;
        /* GB Foods orange */
        --brand-700: #e34800;
        --brand-800: #c53e00;
        --bg: #ffffff;
        --card: #ffffff;
        --text: #0b0f12;
        --muted: #4b5563;
        --danger: #ef4444;
        --ok: #22c55e;
    }

    * {
        box-sizing: border-box
    }

    html,
    body {
        height: 100%
    }

    body {
        margin: 0;
        font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial;
        color: var(--text);
        background: #fff
    }

    .wrap {
        max-width: 980px;
        margin: 0 auto;
        padding: 24px
    }

    .card {
        background: #fff;
        border: 1px solid rgba(0, 0, 0, .06);
        border-radius: 20px;
        padding: 28px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .08)
    }

    /* Top brand bar */
    .brandbar {
        height: 56px;
        background: var(--brand);
        border-radius: 14px;
        margin: -10px -10px 18px -10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 14px
    }

    .brandbar img {
        height: 34px;
        object-fit: contain;
        filter: brightness(0) invert(1)
    }

    .brandbar .tag {
        color: #fff;
        font-weight: 700;
        letter-spacing: .3px
    }

    header.hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        margin-bottom: 8px
    }

    h1 {
        font-size: 28px;
        margin: 4px 0 0
    }

    .sub {
        color: var(--muted);
        margin-top: 6px
    }

    .progress {
        width: 100%;
        height: 10px;
        background: rgba(0, 0, 0, .06);
        border-radius: 999px;
        overflow: hidden
    }

    .progress>span {
        display: block;
        height: 100%;
        background: linear-gradient(90deg, var(--brand-800), var(--brand));
        width: 0%;
        transition: width .3s ease
    }

    .btn {
        appearance: none;
        border: none;
        background: var(--brand);
        color: #fff;
        padding: 12px 18px;
        border-radius: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
        box-shadow: 0 6px 16px rgba(255, 80, 1, .3)
    }

    .btn.secondary {
        background: transparent;
        border: 1px solid rgba(0, 0, 0, .12);
        color: var(--text)
    }

    .btn.ghost {
        background: transparent;
        color: var(--muted);
        border-color: transparent;
        box-shadow: none
    }

    .btn[disabled] {
        opacity: .6;
        cursor: not-allowed
    }

    .row {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        align-items: center
    }

    .spaced {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px
    }

    .q-card {
        margin-top: 18px;
        padding: 18px;
        border-radius: 16px;
        background: var(--card);
        border: 1px solid rgba(0, 0, 0, .06)
    }

    .q-meta {
        color: var(--muted);
        font-size: 13px;
        margin-bottom: 8px
    }

    .q-text {
        font-size: 18px;
        line-height: 1.45;
        color: var(--brand)
    }

    .opts {
        margin-top: 16px;
        display: grid;
        gap: 10px
    }

    .opt {
        border: 1px solid rgba(0, 0, 0, .12);
        border-radius: 12px;
        padding: 12px 12px;
        cursor: pointer;
        background: #fff;
        display: flex;
        align-items: flex-start;
        gap: 12px
    }

    .opt:hover {
        border-color: rgba(0, 0, 0, .2)
    }

    .opt input {
        margin-top: 3px
    }

    .opt.correct {
        border-color: rgba(34, 197, 94, .7);
        background: rgba(34, 197, 94, .08)
    }

    .opt.incorrect {
        border-color: rgba(239, 68, 68, .7);
        background: rgba(239, 68, 68, .08)
    }

    .opt .letter {
        width: 26px;
        height: 26px;
        border-radius: 8px;
        display: inline-grid;
        place-items: center;
        background: var(--brand);
        color: #fff;
        font-size: 12px;
        font-weight: 700
    }

    .opt .txt {
        flex: 1;
        color: #111
    }

    .hint {
        font-size: 13px;
        color: var(--muted);
        margin-top: 6px
    }

    .foot {
        margin-top: 18px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px
    }

    .rank-list {
        list-style: none;
        margin: 12px 0 0;
        padding: 0;
        display: grid;
        gap: 8px
    }

    .rank-item {
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px dashed rgba(0, 0, 0, .18);
        background: #fafafa;
        display: flex;
        align-items: center;
        gap: 10px
    }

    .drag {
        width: 26px;
        height: 26px;
        border-radius: 8px;
        display: inline-grid;
        place-items: center;
        background: #efefef;
        color: #666;
        font-size: 12px;
        cursor: grab
    }

    .stat {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 16px
    }

    .pill {
        padding: 10px 12px;
        background: #fafafa;
        border: 1px solid rgba(0, 0, 0, .08);
        border-radius: 12px
    }

    .small {
        font-size: 13px;
        color: var(--muted)
    }

    .explain {
        margin-top: 10px;
        font-size: 14px;
        color: var(--muted);
        border-left: 3px solid rgba(0, 0, 0, .12);
        padding-left: 10px
    }

    /* Hide inline per-question explanations; final page will show them */
    [id^="explain-"] {
        display: none !important;
    }


    /* === Override: remove per-question green/red correctness visuals === */
    [id^="wrong-"] {
        display: none !important;
    }

    /* hide 'Wrong' banners during questions */
    .correct,
    .incorrect {
        background: var(--surface, transparent) !important;
        border-color: var(--outline, rgba(0, 0, 0, 0.12)) !important;
        color: inherit !important;
        box-shadow: none !important;
        outline: none !important;
    }

    .correct::before,
    .correct::after,
    .incorrect::before,
    .incorrect::after {
        display: none !important;
    }

    .sticky-header {
        position: sticky;
        top: 0;
        z-index: 999;
        background: white;
        padding: 12px 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Intro sections */
.section-wrap {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.02));
  border: 1px solid rgba(0,0,0,0.06);
}

.section-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.section-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.section-pill:hover,
.section-pill:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.12);
}

.section-badge {
  flex: 0 0 30px;
  height: 30px;
  width: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  /* brand tint */
  background: var(--brand, #FF5001);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
}

.section-text {
  display: grid;
  line-height: 1.2;
}

.section-title {
  font-weight: 700;
  color: #111;
}

.section-sub {
  font-size: 12px;
  color: var(--muted, #6b7280);
}

/* optional: nicer neutral look for rank lists while interacting */
.rank-list {
  transition: border-color .15s ease, box-shadow .15s ease;
  border: 1px dashed rgba(0,0,0,.15);
  border-radius: 10px;
}
.rank-item.over {
  background: rgba(0,0,0,.03);
}
