:root {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100vh;
    background: #2C2C2C;
    /* Main Body Font: Quantico */
    font-family: 'Quantico', sans-serif;
    color: #FFFFFF;
    overflow: hidden;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #2C2C2C;
}

/* =====================
   App Frame / Shell
   ===================== */

.app-frame {
    width: 100vw;
    height: 100vh;
    max-width: 393px;
    max-height: 852px;
    aspect-ratio: 393 / 852;
    border-radius: 40px;
    background: #22156A;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* =====================
   Utility helpers (replace Tailwind small set used in template)
   ===================== */

.hidden {
    display: none !important;
}

.relative {
    position: relative;
}

.space-y-5>*+* {
    margin-top: 1.25rem;
}

/* Generic logo sizing */
.logo-img {
    max-width: 260px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* =====================
   Screen Layouts
   ===================== */

.screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 38px 28px 28px;
    text-align: center;
    gap: 12px;
}

.screen.hidden {
    display: none;
}

/* =====================
   Loading Tip
   ===================== */

.loading-tip {
    width: 100%;
    opacity: 0;
    text-align: left;
    transform: translateY(18px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.loading-tip.visible {
    opacity: 1;
    transform: translateY(0);
}

.loading-label {
    margin: 0;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
}

.loading-text {
    margin: 8px 0 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #FCB737;
    text-align: left;
    font-weight: 400;
}

/* =====================
   Main shell & Scrolling
   ===================== */

.main-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    align-items: stretch;
}

.content-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
}

.content-scroll::-webkit-scrollbar {
    width: 6px;
}

.content-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
}

/* =====================
   Typography / Titles
   ===================== */
.section h1,

.section h2 {
    margin-bottom: 8px;
    font-weight: 400;
    width: 245px;
    color: #FFF;
    font-family: "Special Gothic Expanded One";
    font-style: normal;
    line-height: normal;
    font-size: 32px !important;
}

.game-title {
    margin: 0;
    font-family: "Special Gothic Expanded One", sans-serif;
    font-weight: 400;
    line-height: 1.05;
}

.section h1 {
    width: 336px;
    height: 90px;
    color: #FFF;
    text-align: center;
    font-family: "Special Gothic Expanded One";
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.section h2 {
    font-size: 2.1rem;
}

.game-title {
    font-size: 2.2rem;
    letter-spacing: 0.02em;
}

/* =====================
   Game Card / Question
   ===================== */
.game-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-top: 12px;
}

.game-card {
    width: 100%;
    max-width: 420px;
    padding: 24px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    text-align: center;
}

.game-question {
    margin: 0;
    color: #FFFFFF;
    font-size: 1rem;
    line-height: 1.8;
}

.game-action {
    width: 100%;
    margin: 0 auto;
    border: none;
    border-radius: 28px;
    padding: 18px 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    background: #31E7FF;
    color: #22156A;
    transition: transform 0.2s ease, background-color 0.2s ease;
    font-family: 'Quantico', sans-serif;
}

.game-action:active {
    transform: scale(0.98);
}

/* =====================
   Game controls / Reset
   ===================== */
.game-reset-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: underline;
    user-select: none;
}

.secret-bomb-button {
    width: 80px;
    height: 40px;
    margin: 0 auto;
    cursor: pointer;
    background: transparent;
    border: none;
    position: relative;
    opacity: 0;
    display: none;
}

/* =====================
   Small UI elements
   ===================== */
.subheader-label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.subheader-body {
    margin: 0;
    color: #FFFFFF;
    width: 271px;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;

}

/* =====================
   Text helpers / Muted
   ===================== */
.text-muted {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.95rem;
    padding: 0;
    line-height: 1;
    margin-bottom: 8px;
    ;
}

/* =====================
   Input rows / chips
   ===================== */
.input-row {
    height: 50px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.interest-input {
    height: 45px;
    flex: 1;
    width: 100%;
    min-width: 0;
    border-radius: 28px;
    border: none;
    background: #FFFFFF;
    padding: 18px 20px;
    color: #779093;
    font-size: 1rem;
    outline: none;
    font-family: 'Quantico', sans-serif;
    font-weight: 700;
}

.interest-input::placeholder {
    color: rgba(119, 144, 147, 0.6);
}

.chip-row {
    display: flex;
    height: auto;
    max-height: 120px;
    overflow-y: auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
    row-gap: 0px;
    flex-shrink: 0;
    align-self: stretch;
    padding-left: 9px;
}

.chip-row:empty {
    display: none;
    margin: 0;
    padding: 0;
}

.space-y-5>.chip-row:empty+.action-button {
    margin-top: 0.75rem;
}

.chip-row:not(:empty) {
    margin-bottom: 1rem;
}

.chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.96rem;
    margin-top: 8px;
}

.chip button {
    position: absolute;
    top: -9px;
    right: -9px;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #FFFFFF;
    color: #22156A;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.action-button {
    display: block;
    margin: 0 auto;
    border: none;
    border-radius: 28px;
    padding: 18px 48px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    font-family: 'Quantico', sans-serif;
}

.action-button:active {
    transform: scale(0.98);
}

.action-button+.action-button {
    margin-top: 0.9rem;
}

.action-button.primary {
    border-radius: 50px;
    padding: 10px 20px;
    width: auto;
    text-transform: none !important;
    background: #F231AB;
    color: #FFFFFF;
}

.action-button.ready {
    background: #9E2070;
}

.reset-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: underline;
    font-size: 0.95rem;
}

/* =====================
   Bottom navigation / Tabs
   ===================== */
.bottom-nav {
    position: absolute;
    width: 353px;
    height: 84px;
    left: 20px;
    right: 20px;
    bottom: 17px;
    display: flex;
    align-items: flex-end;
    justify-content: space-evenly;
    padding-bottom: 7px;
    border-radius: 999px;
    background: #7465C880;
    border: 3px solid #7465C8;
}

.nav-button {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 65px;
    gap: 6px;
    border: none;
    border-radius: 26px;
    padding: 0;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    font-family: 'Quantico', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 86px;
}

.nav-button.active {
    background: #FCB737;
    color: #22156A;
    font-weight: 700;
    height: 65px;
    width: 86px;
    border-radius: 50px;
    padding: 0;
}

.nav-button img {
    width: auto;
    height: 35px;
    object-fit: contain;
}

.tab-screen {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.star-graphic {
    position: absolute;
    right: 20px;
    bottom: 8px;
    width: 48px;
    height: 48px;
    opacity: 0.95;
    pointer-events: none;
    z-index: 0;
}

.questions-bomb {
    display: block;
    width: 69px;
    height: 42px;
    margin-left: auto;
    margin-right: 23px;
    margin-bottom: -19px;
    margin-top: 137px;
}

.star-graphic img,
.star-img {
    width: 61.3px;
    height: 54.6px;
    transform: rotate(-13.475deg);
}

/* =====================
   Classes replacing inline template styles
   ===================== */
.section--questions {
    padding-top: 20px;
    padding-bottom: 25px;
    gap: 20px;
}

.questions-title {
    margin: 0;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #FFF;
    text-align: center;
    font-family: "Special Gothic Expanded One";
}

.reset-button--style {
    color: #FFF;
    background: transparent !important;
    font-family: Quantico;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.logo-img--small {
    max-width: 180px;
}

.tab--info {
    text-align: left;
    position: relative;
    width: 100%;
    align-items: flex-start;
    padding-right: 80px;
}

.info-title {
    font-size: 30px;
    width: 160px;
    text-align: left;
    margin: 30px 0 0 0;
    line-height: 1.3;
}

.subheader-label--blue {
    font-size: 15px;
    width: 73px;
    color: #31E7FF;
    margin: 4px 0 6px 0;
}

.subheader-label--pink {
    font-size: 15px;
    color: #F231AB;
    margin: 4px 0 6px 0;
}

.subheader-body--narrow {
    line-height: 1.3;
    width: 262px;
}

.info-bomb-decor {
    position: absolute;
    right: 52px;
    bottom: 7px;
    width: 75px;
    opacity: 0.9;
    pointer-events: none;
}

.decor-img {
    width: 100%;
    height: auto;
}

.tab--instructions {
    text-align: left;
    padding-right: 13px;
}

.instructions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    margin-bottom: -50px;
    margin-top: -50px;
}

.instructions-title {
    width: 236px;
    height: 90px;
    color: #FFF;
    font-style: normal;
    text-align: left;
    padding-top: 44px;
}

.bomb-icon-small {
    align-self: flex-end;
    width: 68.475px;
    height: 41.968px;
    object-fit: contain;
    position: absolute;
    top: 89px;
    right: 70px;
}

.no-margin-bottom {
    margin-bottom: 0px;
    margin-top: 22px;
}

.subheader-label--pink.mb-12 {
    margin-bottom: 12px;
}

.instructions-list {
    margin: 0;
    padding-left: 20px;
    color: #FFFFFF;
    line-height: 1.8;
}

.instruction-step {
    margin-bottom: 8px;
}

.subheader-label--blue.mb-12 {
    color: rgba(49, 231, 255, 0.94);
    font-family: Quantico;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    font-size: 15px;
    width: 73px;
    margin: 0;
    margin-top: 50px;
}

.theme-button {
    align-self: flex-end;
    background: #F231AB;
    color: #FFFFFF;
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Quantico', sans-serif;
}

.tip-text {
    color: #FCB737;
    font-family: 'Quantico', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    margin-top: 4px;
}

/* =====================
   Themes Page / Tab
   ===================== */

.tab--themes {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-top: 0;
    gap: 0;
    /* Voorkomt onverwachte flexbox-gaps */
}

.themes-title {
    align-self: stretch;
    color: #FFF;
    font-family: "Special Gothic Expanded One";
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    margin-top: 15px;
    /* Ruimte boven het hele blokje */
}

.themes-subtitle {
    align-self: stretch;
    color: var(--Prototype-geel, #FCB737);
    font-family: Quantico;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    margin-top: -6px;
    /* NIEUW: Trekt de subtitel strak omhoog tegen de titel aan */
    margin-bottom: 40px;
    /* Behoudt de exact gewenste 40px spacing tot Spicy */
}

.themes-container {
    display: flex;
    width: 328px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 0;
}

.theme-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
}

.theme-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.theme-name {
    color: #FFF;
    text-align: center;
    font-family: Quantico;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0;
}

.theme-description {
    color: var(--Prototype-wit-lettertype, #FFF);
    font-family: Quantico;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    width: 350px;
    margin: 0;
}

.theme-item:first-of-type {
    margin-top: 0;
}

.toggle-button {
    display: flex;
    width: 50px;
    height: 31px;
    flex-direction: column;
    align-items: flex-start;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.toggle-icon {
    width: 50px;
    height: 31px;
    object-fit: contain;
}