:root {
  color-scheme: light;
  --ink: #17213a;
  --muted: #66718a;
  --surface: #ffffff;
  --background: #f2f5ff;
  --primary: #315cc8;
  --accent: #ffce54;
  font-family: Inter, ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--background); }
.app-shell { width: min(100%, 680px); margin: 0 auto; padding: 34px 20px 104px; }
.hero { padding: 4px 4px 26px; }
.eyebrow, .card-label { margin: 0 0 7px; color: var(--primary); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.2rem, 10vw, 3.4rem); letter-spacing: -.06em; line-height: 1; }
h2 { margin: 0; font-size: 1.16rem; letter-spacing: -.025em; }
.intro { max-width: 32rem; margin: 14px 0 0; color: var(--muted); line-height: 1.5; }
.today-card, .connection-card, .subject-card { border-radius: 24px; }
.today-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 22px; color: white; background: linear-gradient(135deg, #315cc8, #617fe2); box-shadow: 0 12px 28px #315cc840; }
.today-card .card-label { color: #dbe5ff; }
.today-card h2 { max-width: 15rem; }
button { border: 0; border-radius: 14px; padding: 12px 15px; color: var(--ink); background: var(--accent); font: inherit; font-weight: 800; cursor: pointer; }
section { margin-top: 30px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 12px; }
#subject-count { color: var(--muted); font-size: .85rem; }
.subject-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.subject-card { display: flex; min-height: 112px; flex-direction: column; justify-content: space-between; padding: 16px; color: var(--ink); background: var(--surface); border: 1px solid #e1e6f1; box-shadow: 0 3px 12px #253b6a0a; text-decoration: none; }
.subject-card:hover, .subject-card:focus-visible { border-color: var(--primary); transform: translateY(-2px); }
.subject-card .emoji { font-size: 1.6rem; }
.subject-card strong { font-size: .92rem; line-height: 1.15; }
.connection-card { padding: 23px; background: #e5ecff; }
.connection-card p:not(.card-label) { margin: 10px 0 17px; color: #4c5975; line-height: 1.5; }
.connection-card a { display: inline-block; padding: 10px 13px; border-radius: 12px; color: white; background: var(--primary); font-weight: 750; text-decoration: none; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--primary); font-weight: 750; text-decoration: none; }
.lesson-hero { padding-bottom: 8px; }
.lesson-hero h1 { font-size: clamp(1.9rem, 8vw, 2.9rem); }
.lesson-appbar { position: sticky; z-index: 70; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -18px -8px 23px; padding: 12px 8px; background: #f8f8fff0; backdrop-filter: blur(14px); }
.lesson-appbar::after { content: ''; position: absolute; right: 8px; bottom: 0; left: 8px; height: 1px; background: #dfe3ee; opacity: .75; }
.lesson-appbar .dashboard-brand { position: relative; z-index: 1; }
.lesson-menu-wrap { position: relative; z-index: 2; }
.lesson-user-menu { max-height: min(620px, calc(100dvh - 85px)); overflow-y: auto; }
.user-menu-link { display: grid; grid-template-columns: 29px 1fr; gap: 7px; align-items: center; width: 100%; margin: 5px 0 0; padding: 10px; border-radius: 13px; color: var(--ink); background: transparent; font-size: .78rem; text-decoration: none; }
.user-menu-link[hidden] { display: none; }
.user-menu-link > span:last-child { display: grid; gap: 2px; text-align: left; }
.user-menu-link:hover, .user-menu-link:focus-visible { background: #fff0f6; }
.lesson-page > .back-link { margin-bottom: 22px; }
.svt-page .eyebrow, .svt-page .back-link, .svt-page .quiz-result { color: #237652; }
.svt-page .lesson-intro { background: #e0f4e9; }
.svt-page .quiz-question input { accent-color: #237652; }
.maths-page .eyebrow, .maths-page .back-link, .maths-page .quiz-result { color: #6040b8; }
.maths-page .lesson-intro { background: #eee8ff; }
.maths-page .quiz-question input { accent-color: #6040b8; }
.techno-page .eyebrow, .techno-page .back-link, .techno-page .quiz-result { color: #b95608; }
.techno-page .lesson-intro { background: #fff0df; }
.techno-page .quiz-question input { accent-color: #b95608; }
.pc-page .eyebrow, .pc-page .back-link, .pc-page .quiz-result { color: #a82d55; }
.pc-page .lesson-intro { background: #ffe8ef; }
.pc-page .quiz-question input { accent-color: #a82d55; }
.english-page .eyebrow, .english-page .back-link, .english-page .quiz-result { color: #a52f48; }
.english-page .lesson-intro { background: #ffe8ec; }
.english-page .quiz-question input { accent-color: #a52f48; }
.spanish-page .eyebrow, .spanish-page .back-link, .spanish-page .quiz-result { color: #ae6410; }
.spanish-page .lesson-intro { background: #fff1d9; }
.spanish-page .quiz-question input { accent-color: #ae6410; }
.lesson-intro, .key-dates { padding: 20px; border-radius: 20px; background: #e5ecff; }
.lesson-intro p, .key-dates p { margin: 10px 0 0; line-height: 1.5; }
.fact-list { display: grid; gap: 12px; margin-top: 13px; }
.fact-list article { display: grid; grid-template-columns: 42px 1fr; gap: 8px; align-items: start; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid #e1e6f1; }
.fact-list span { font-size: 1.5rem; }
.fact-list p { margin: 0; line-height: 1.42; }
.key-dates { background: #fff4cf; }
.quiz { padding: 22px; border-radius: 24px; background: var(--surface); border: 1px solid #e1e6f1; }
.quiz-question { display: grid; gap: 9px; margin: 18px 0; padding: 0; border: 0; }
.quiz-question legend { margin-bottom: 8px; font-weight: 800; line-height: 1.35; }
.quiz-question label { padding: 11px; border-radius: 12px; background: #f3f6fc; cursor: pointer; }
.quiz-question input { accent-color: var(--primary); }
.quiz-result { min-height: 24px; margin: 16px 0 0; color: var(--primary); font-weight: 750; }
.source-pages { display: none; margin: 30px 0; padding: 18px; border: 1px solid #dce4f2; border-radius: 18px; background: #fff; }
.can-view-source-pages .source-pages { display: block; }
.source-pages summary { cursor: pointer; font-weight: 800; }
.source-pages p { margin: 10px 0 0; color: var(--muted); line-height: 1.45; }
.source-pages a { display: inline-block; margin: 9px 7px 0 0; padding: 8px 10px; border-radius: 9px; background: #eaf2ff; color: #1c4f9c; font-weight: 750; text-decoration: none; }

/* Mini-quiz dynamiques des leçons */
.quiz-dynamic { padding: 18px; overflow: hidden; border: 0; color: #fff; background: radial-gradient(circle at 95% 5%, #ff4f913b, transparent 35%), linear-gradient(145deg, #182341, #302757); box-shadow: 0 16px 36px #151c3730; }
.quiz-dynamic > .eyebrow { color: #ffb4d1; }
.quiz-dynamic > h2 { color: #fff; }
.lesson-quiz-head { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; color: #d9deec; font-size: .73rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.lesson-quiz-head strong { padding: 6px 9px; border-radius: 10px; color: #3d2c05; background: #ffdc72; }
.lesson-quiz-head i { font-style: normal; }
.lesson-quiz-timer { position: relative; height: 6px; margin: 12px 0 17px; overflow: visible; border-radius: 99px; background: #ffffff1a; }
.lesson-quiz-timer .lesson-timer-bar { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff4f91, #ffd36b); }
.lesson-quiz-timer .lesson-timer-bar.is-urgent { background: #ff675d; }
.lesson-quiz-timer small { position: absolute; top: -20px; right: 0; color: #aeb9d2; font-size: .6rem; font-weight: 750; }
.lesson-quiz-timer.is-warmup { background: transparent; }
.lesson-quiz-timer.is-warmup .lesson-timer-bar { display: none; }
.lesson-question-card { min-height: 340px; padding: 20px; border-radius: 22px; color: var(--ink); background: #fff; box-shadow: 0 13px 30px #0c10212e; transition: transform .18s, box-shadow .18s; }
.lesson-question-card > p { margin: 0 0 9px; color: var(--pink-dark); font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.lesson-question-card h3 { min-height: 66px; margin: 0; font-size: 1.35rem; line-height: 1.18; letter-spacing: -.03em; }
.lesson-choice-list { display: grid; gap: 9px; margin-top: 19px; }
.lesson-choice-list button { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; width: 100%; padding: 11px; color: var(--ink); background: #f1f3f9; text-align: left; }
.lesson-choice-list button > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #fff; background: #7657e8; font-size: .72rem; }
.lesson-choice-list button.is-correct { color: #156542; background: #dff7ea; }
.lesson-choice-list button.is-correct > span { background: #27a56a; }
.lesson-choice-list button.is-wrong { color: #9a2d40; background: #ffe3e8; }
.lesson-choice-list button.is-wrong > span { background: #dd5066; }
.lesson-question-card.is-correct { box-shadow: 0 0 0 3px #4bd08a, 0 13px 30px #0c10212e; }
.lesson-question-card.is-wrong { box-shadow: 0 0 0 3px #ec687d, 0 13px 30px #0c10212e; }
.lesson-live-feedback { display: grid; gap: 3px; min-height: 45px; margin-top: 14px; font-size: .78rem; line-height: 1.35; }
.lesson-live-feedback span { color: var(--muted); }
.quiz-dynamic .quiz-result { min-height: 18px; margin: 11px 2px 0; color: #cbd2e6 !important; font-size: .7rem; text-align: center; }
.lesson-quiz-finish { display: grid; min-height: 320px; place-content: center; justify-items: center; padding: 24px; text-align: center; }
.lesson-quiz-finish > span { font-size: 3rem; }
.lesson-quiz-finish h3 { margin: 13px 0 8px; color: #fff; font-size: 1.35rem; }
.lesson-quiz-finish p { max-width: 300px; margin: 0 0 18px; color: #c9d0e1; line-height: 1.45; }
.lesson-memory-tip { display: grid; max-width: 340px; gap: 4px; margin: 0 0 15px; padding: 12px 14px; border: 1px solid #ffffff19; border-radius: 15px; background: #ffffff0c; text-align: left; }.lesson-memory-tip strong { color: #ffe078; font-size: .72rem; }.lesson-memory-tip span { color: #cbd2e3; font-size: .66rem; line-height: 1.4; }.lesson-quiz-finish > small { margin-bottom: 14px; color: #929db6; font-size: .62rem; }
.lesson-quiz-finish button { color: #fff; background: linear-gradient(135deg, var(--pink), var(--pink-dark)); }
.subject-quiz-launch { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; margin-top: 14px; padding: 18px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #ff4f91, #7657e8); box-shadow: 0 12px 25px #743f8930; text-decoration: none; }
.subject-quiz-launch > span:first-child { display: grid; width: 47px; height: 47px; place-items: center; border-radius: 15px; background: #ffffff20; font-size: 1.5rem; }
.subject-quiz-launch > span:nth-child(2) { display: grid; gap: 2px; }
.subject-quiz-launch small { color: #ffe0ec; font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.subject-quiz-launch strong { font-size: .92rem; }
.subject-quiz-launch em { color: #f1eaff; font-size: .68rem; font-style: normal; }
nav { position: fixed; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-around; padding: 13px max(20px, env(safe-area-inset-right)) calc(13px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); background: #fffffff2; border-top: 1px solid #dde3f0; backdrop-filter: blur(12px); }
nav a { color: var(--muted); font-size: .82rem; font-weight: 750; text-decoration: none; }
nav a.active { color: var(--primary); }
@media (min-width: 700px) { .app-shell { padding-top: 60px; } }
@media (max-width: 360px) { .subject-grid { grid-template-columns: 1fr; } }

/* Dashboard 2026 */
:root { --pink: #ff4f91; --pink-dark: #d92f73; --purple: #7657e8; --navy: #16213d; --soft-pink: #ffe8f1; }
body { background: radial-gradient(circle at 90% 0, #ffe5f0 0, transparent 30%), linear-gradient(180deg, #f8f8ff, #f2f4fb); }
.dashboard-body { background-attachment: fixed; }
.dashboard { padding-top: 28px; }
.dashboard-header { display: block; padding: 8px 2px 18px; }
.dashboard-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dashboard-copy { min-width: 0; }
.dashboard-greeting-line { display: flex; gap: 10px; align-items: flex-start; }
.dashboard-greeting-line h1 { flex: 0 1 auto; }
.greeting-info-wrap { position: relative; z-index: 20; flex: 0 0 auto; margin-top: 27px; }
.greeting-info { display: grid; width: 27px; height: 27px; min-height: 0; place-items: center; margin: 0; padding: 0; border: 1px solid #d8d9e7; border-radius: 50%; color: #6650b8; background: #fff; box-shadow: 0 5px 13px #27315318; font: 900 .78rem/1 Georgia, serif; }
.greeting-info[aria-expanded="true"] { color: #fff; border-color: var(--purple); background: var(--purple); }
.greeting-translation { position: absolute; top: calc(100% + 9px); right: 0; width: min(270px, calc(100vw - 45px)); padding: 11px 13px; border: 1px solid #e2def2; border-radius: 13px; color: #32364a; background: #fff; box-shadow: 0 15px 35px #222a4730; font-size: .76rem; font-weight: 700; line-height: 1.4; }
.greeting-translation[hidden] { display: none; }
.dashboard-brand { display: inline-flex; gap: 8px; align-items: center; margin: 0; color: var(--navy); font-size: 1.05rem; font-weight: 900; letter-spacing: -.04em; text-decoration: none; }
.dashboard-brand img { width: 33px; height: 33px; border-radius: 11px; box-shadow: 0 6px 14px #202a4b24; transform: rotate(-3deg); }
.dashboard-brand span strong { color: var(--pink-dark); }
.dashboard-header h1 { max-width: 620px; margin-top: 24px; font-size: clamp(1.9rem, 7.4vw, 2.85rem); letter-spacing: -.055em; line-height: 1.04; }
.dashboard-header .intro { margin-top: 9px; }
.avatar { display: grid; flex: 0 0 54px; width: 54px; height: 54px; padding: 0; place-items: center; border: 3px solid #fff; border-radius: 18px; color: #fff; background: linear-gradient(145deg, var(--profile-color, var(--pink)), color-mix(in srgb, var(--profile-color, var(--pink)) 70%, white)); box-shadow: 0 10px 24px #303b6330; font-size: 1.25rem; font-weight: 900; transform: rotate(4deg); }
.progress-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 23px; border-radius: 26px; color: #fff; background: linear-gradient(130deg, #192647, #344776); box-shadow: 0 15px 35px #1b2a4d35; overflow: hidden; position: relative; }
.progress-card::before { content: ''; position: absolute; width: 150px; height: 150px; right: -62px; top: -70px; border-radius: 50%; background: #ff4f9130; }
.progress-card .card-label { color: #f4bfd4; }
.progress-card h2 { font-size: 1.55rem; }
.progress-card #level-copy { margin: 7px 0 0; color: #cbd4ea; font-size: .84rem; }
.score-share { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; padding: 8px 10px; border: 1px solid #ffffff24; border-radius: 11px; color: #fff; background: #ffffff12; font-size: .7rem; font-weight: 850; text-decoration: none; transition: background .18s, transform .18s; }
.player-title { display: inline-flex; margin: 5px 0 1px; padding: 5px 9px; border: 1px solid #ffbad42e; border-radius: 99px; color: #ffb7d2; background: #ffffff0c; font-size: .66rem; font-weight: 900; }
.score-share:hover, .score-share:focus-visible { background: #ffffff20; transform: translateY(-1px); }
.score-share span { color: #ff8fba; font-size: .9rem; }
.level-ring { --level-progress: 0deg; display: grid; flex: 0 0 76px; width: 76px; height: 76px; place-content: center; border-radius: 50%; background: radial-gradient(circle, #24355f 57%, transparent 59%), conic-gradient(var(--pink) var(--level-progress), #ffffff24 0); text-align: center; }
.level-ring span { font-size: .67rem; color: #dfe5f5; text-transform: uppercase; }
.level-ring strong { font-size: 1.55rem; line-height: 1; }
.important-card { display: grid; grid-template-columns: auto 1fr; gap: 15px; padding: 19px; border: 1px solid #ffd3e4; border-radius: 22px; background: linear-gradient(135deg, #fff, #fff0f6); box-shadow: 0 8px 22px #ad3e7210; }
.important-card .important-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 14px; background: var(--soft-pink); font-size: 1.2rem; }
.important-card p:last-child { margin: 7px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.dashboard .section-heading { align-items: flex-end; margin: 0 2px 13px; }
.dashboard .section-heading .eyebrow { margin-bottom: 4px; }
.text-link { color: var(--pink-dark); font-size: .85rem; font-weight: 800; text-decoration: none; }
.challenge-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 75%); gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.challenge-strip::-webkit-scrollbar { display: none; }
.challenge-card { display: flex; min-height: 94px; gap: 13px; align-items: center; padding: 17px; border-radius: 22px; color: #fff; text-decoration: none; scroll-snap-align: start; box-shadow: 0 10px 22px #4e3e8420; }
.challenge-card > span { font-size: 1.8rem; }
.challenge-card strong, .challenge-card small { display: block; }
.challenge-card small { margin-top: 5px; color: #ffffffc9; }
.challenge-pink { background: linear-gradient(135deg, #ff4f91, #ee387f); }
.challenge-purple { background: linear-gradient(135deg, #7254dc, #997bec); }
.challenge-disabled { position: relative; cursor: not-allowed; filter: grayscale(1); opacity: .55; background: linear-gradient(135deg, #6e7280, #999ca5); }
.challenge-disabled[hidden], .express-disabled-panel[hidden] { display: none; }
.challenge-disabled b { position: absolute; top: 10px; right: 10px; padding: 5px 7px; border-radius: 8px; color: #4f535d; background: #ffffffd9; font-size: .62rem; text-transform: uppercase; }
.dashboard .subject-grid { gap: 11px; }
.dashboard .subject-card { min-height: 132px; padding: 15px; border: 0; border-radius: 22px; box-shadow: 0 8px 24px #3140670d; position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.dashboard .subject-card::after { content: ''; position: absolute; width: 70px; height: 70px; right: -25px; bottom: -30px; border-radius: 50%; background: currentColor; opacity: .08; }
.dashboard .subject-card:hover, .dashboard .subject-card:focus-visible { transform: translateY(-4px) rotate(-.5deg); box-shadow: 0 13px 26px #3140671d; }
.dashboard .subject-card > span:last-child { display: grid; gap: 5px; }
.dashboard .subject-card small { color: var(--muted); font-size: .72rem; font-weight: 700; }
.dashboard .subject-card .subject-name { color: currentColor; font-size: .65rem; font-weight: 900; letter-spacing: .06em; opacity: .72; text-transform: uppercase; }
.dashboard .subject-card strong { min-height: 2.3em; }
.express-home-section { padding: 18px; border: 1px solid #f0dfff; border-radius: 26px; background: linear-gradient(155deg, #fff 15%, #fff4fa 58%, #f3efff); box-shadow: 0 13px 32px #7b4fa515; }
.express-home-section .section-heading { margin-bottom: 5px; }
.express-home-section .section-heading > span { padding: 6px 9px; border-radius: 999px; color: #fff; background: #ee3f83; font-size: .72rem; font-weight: 900; }
.express-home-intro { margin: 0 0 14px; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.quiz-alert-priority { margin-top: 2px; }
.subject-emoji { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 15px; background: #fff9; font-size: 1.5rem; box-shadow: 0 5px 12px #30406010; }
.subject-pink { background: #ffeaf2; color: #b62e68; }.subject-purple { background: #eeeaff; color: #5d43bb; }.subject-orange { background: #fff0df; color: #a9580d; }.subject-blue { background: #e6f2ff; color: #2362a7; }.subject-red { background: #ffe8e8; color: #b74343; }.subject-violet { background: #f3e9ff; color: #7a45ae; }.subject-green { background: #e4f7ed; color: #287653; }.subject-yellow { background: #fff6d8; color: #9a7011; }
.subject-card.is-coming { opacity: .58; filter: saturate(.65); }
.express-complete { display: grid; grid-column: 1 / -1; justify-items: center; gap: 4px; padding: 24px 18px; border: 1px dashed #bcdcca; border-radius: 22px; color: #236d50; background: #ecfaf3; text-align: center; text-decoration: none; }
.express-complete > span { display: grid; width: 42px; height: 42px; margin-bottom: 5px; place-items: center; border-radius: 14px; color: #fff; background: #36a978; font-size: 1.25rem; font-weight: 900; }
.express-complete small { color: #5e7d70; }
.recent-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; border-radius: 22px; background: #fff; border: 1px solid #e9eaf3; }
.recent-card p:last-child { margin: 7px 0 0; color: var(--muted); font-size: .85rem; }
.recent-card a { padding: 9px 12px; border-radius: 12px; color: #fff; background: var(--navy); text-decoration: none; font-weight: 800; font-size: .82rem; }
.answer-history-card { padding: 20px; border: 1px solid #e7e8f1; border-radius: 24px; background: #fff; box-shadow: 0 10px 28px #2731530c; }
.answer-history-card .section-heading { margin-bottom: 14px; }
.history-refresh { display: grid; width: 38px; height: 38px; min-height: 0; place-items: center; padding: 0; border: 0; border-radius: 13px; color: #6650b8; background: #f1edff; font-size: 1.2rem; transition: transform .2s ease; }
.history-refresh:active { transform: rotate(90deg) scale(.92); }
.answer-history-list { display: grid; gap: 8px; transition: opacity .2s ease; }
.answer-history-list.is-loading { opacity: .55; }
.answer-history-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 10px; gap: 10px; align-items: center; width: 100%; min-height: 0; padding: 12px 10px; border: 0; border-radius: 17px; color: var(--ink); background: #f7f7fb; text-align: left; transition: transform .18s ease, background .18s ease; }
.answer-history-row:hover, .answer-history-row:focus-visible { background: #f0edf9; transform: translateX(2px); }
.answer-history-state { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 11px; color: #fff; background: #df5b73; font-weight: 900; }
.answer-history-row.is-correct .answer-history-state { background: #2cab73; }
.answer-history-copy { min-width: 0; }
.answer-history-copy small, .answer-history-copy strong, .answer-history-copy em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.answer-history-copy small { color: #838697; font-size: .66rem; font-style: normal; font-weight: 750; }
.answer-history-copy strong { margin-top: 3px; font-size: .84rem; }
.answer-history-copy em { margin-top: 3px; color: #6e7183; font-size: .72rem; font-style: normal; }
.answer-history-points { font-size: .72rem; font-weight: 900; }.answer-history-points.is-positive { color: #16845a; }.answer-history-points.is-negative { color: #d33e5c; }
.answer-history-row > b { color: #a1a3b0; font-size: 1.25rem; }
.history-empty { display: grid; gap: 5px; justify-items: center; margin: 0; padding: 24px 12px; color: #7d8090; text-align: center; }
.history-empty > span { font-size: 1.75rem; }.history-empty strong { color: var(--ink); }.history-empty small { max-width: 260px; line-height: 1.4; }
.answer-modal { position: fixed; z-index: 660; inset: 0; display: grid; align-items: end; background: #11172c00; backdrop-filter: blur(0); transition: background .28s ease, backdrop-filter .28s ease; }
.answer-modal[hidden] { display: none; }.answer-modal.is-open { background: #11172ca6; backdrop-filter: blur(7px); }
.answer-sheet { position: relative; width: min(100%, 560px); max-height: min(88dvh, 760px); margin: 0 auto; overflow-y: auto; padding: 40px 23px max(28px, env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; color: var(--ink); background: radial-gradient(circle at 100% 0, #ffe4ef, transparent 34%), #fff; box-shadow: 0 -24px 70px #080c1f52; transform: translateY(105%); transition: transform .3s cubic-bezier(.2, .82, .25, 1); }
.answer-modal.is-open .answer-sheet { transform: translateY(0); }
.answer-detail-meta { display: flex; gap: 7px; align-items: center; padding-right: 48px; }
.answer-detail-meta span { padding: 6px 9px; border-radius: 99px; color: #a62b62; background: #ffe5f0; font-size: .7rem; font-weight: 850; }
.answer-detail-meta small { color: #858899; font-size: .68rem; }
.answer-sheet h2 { margin-top: 13px; font-size: 1.55rem; }
.answer-detail-question { margin: 12px 0 18px; font-size: 1.12rem; font-weight: 850; line-height: 1.35; }
.answer-comparison { display: grid; gap: 9px; }
.answer-comparison > div { padding: 13px 15px; border-radius: 16px; background: #f5f4fa; }
.answer-comparison small, .answer-comparison strong { display: block; }.answer-comparison small { color: #7d8090; font-size: .68rem; font-weight: 750; }.answer-comparison strong { margin-top: 4px; font-size: .9rem; line-height: 1.35; }
.answer-detail-result { margin: 13px 0; padding: 10px 13px; border-radius: 13px; color: #aa334e; background: #fff0f2; font-size: .8rem; font-weight: 850; }.answer-detail-result.is-correct { color: #187d58; background: #e9f9f1; }
.answer-report { width: 100%; margin-top: 5px; color: #6a5276; background: #f1edf5; }
.answer-report:disabled { opacity: .7; }
.answer-report-status { min-height: 18px; margin: 9px 3px 0; color: #737687; font-size: .72rem; line-height: 1.4; text-align: center; }
.home-links { display: grid; gap: 10px; }
.home-link-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 13px; align-items: center; width: 100%; min-height: 0; margin: 0; padding: 15px; border: 1px solid #e7e7f1; border-radius: 21px; color: var(--ink); background: #fff; box-shadow: 0 8px 24px #2731530b; text-align: left; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.home-link-card:hover, .home-link-card:focus-visible { border-color: #f0bfd4; box-shadow: 0 12px 28px #7c315916; transform: translateY(-2px); }
.home-link-card > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.home-link-card small, .home-link-card strong, .home-link-card em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-link-card small { color: var(--pink-dark); font-size: .65rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.home-link-card strong { font-size: .94rem; }
.home-link-card em { color: #797c8e; font-size: .7rem; font-style: normal; font-weight: 650; }
.home-link-card > b { color: #a4a5b3; font-size: 1.4rem; }
.home-link-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #7657e8, #a079ef); box-shadow: 0 7px 16px #7657e833; font-size: 1.15rem; font-weight: 900; }
.about-entry .home-link-icon { color: #6f5010; background: linear-gradient(145deg, #ffe38c, #ffcb58); box-shadow: 0 7px 16px #d99d2928; font-family: Georgia, serif; }
.about-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: #fff0bd; font-size: 1.25rem; }
.about-modal { position: fixed; z-index: 650; inset: 0; display: grid; align-items: end; background: #11172c00; backdrop-filter: blur(0); transition: background .28s ease, backdrop-filter .28s ease; }
.about-modal[hidden] { display: none; }
.about-modal.is-open { background: #11172c9c; backdrop-filter: blur(7px); }
.about-sheet { position: relative; width: min(100%, 560px); max-height: min(82dvh, 720px); margin: 0 auto; overflow-y: auto; padding: 38px 25px max(28px, env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; color: var(--ink); background: radial-gradient(circle at 100% 0, #ffe5f0, transparent 35%), linear-gradient(155deg, #fff, #f6f3ff); box-shadow: 0 -24px 70px #080c1f52; transform: translateY(105%); transition: transform .3s cubic-bezier(.2, .82, .25, 1); }
.about-modal.is-open .about-sheet { transform: translateY(0); }
.about-sheet-handle { position: absolute; top: 11px; left: 50%; width: 46px; height: 5px; border-radius: 99px; background: #d7d8e2; transform: translateX(-50%); }
.about-close { position: absolute; top: 17px; right: 17px; display: grid; width: 38px; height: 38px; min-height: 0; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 50%; color: #55596b; background: #ececf4; font: 300 1.65rem/1 sans-serif; }
.about-sheet > .about-icon { margin-bottom: 16px; }
.about-sheet h2 { margin-top: 5px; font-size: 1.7rem; }
.about-sheet p:not(.card-label) { margin: 12px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.58; }
.about-sheet strong { color: #6650b8; }
.about-sheet sup { font-size: .62em; }

/* Activité du joueur */
.activity-page { padding-top: max(24px, env(safe-area-inset-top)); }
.activity-hero { display: grid; grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 13px; align-items: start; padding: 8px 0 22px; }
.activity-back { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #e3e4ed; border-radius: 14px; color: var(--navy); background: #fff; box-shadow: 0 7px 18px #27315313; font-size: 1.2rem; font-weight: 900; text-decoration: none; }
.activity-hero h1 { margin: 3px 0 7px; font-size: clamp(2rem, 9vw, 3.1rem); letter-spacing: -.06em; }
.activity-hero p:last-child { max-width: 470px; margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.48; }
.activity-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.activity-summary > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 15px; border: 1px solid #e6e8f0; border-radius: 20px; background: #fff; box-shadow: 0 8px 22px #2731530a; }
.activity-summary span { display: grid; grid-row: 1 / 3; width: 36px; height: 36px; place-items: center; border-radius: 12px; color: #fff; background: #2cab73; font-weight: 900; }
.activity-summary > div:last-child span { background: #df5b73; }
.activity-summary strong { font-size: 1.25rem; line-height: 1; }
.activity-summary small { color: var(--muted); font-size: .66rem; }
.activity-history { padding: 17px 12px 12px; }
.activity-history .section-heading { padding: 0 5px; }
.activity-history .answer-history-row { padding: 13px 11px; background: #f8f8fc; }
.activity-history .answer-history-row + .answer-history-row { border-top: 1px solid #ececf3; }
.suggestion-entry { display: grid; grid-template-columns: 45px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; min-height: 0; margin: 0 0 16px; padding: 14px; border: 1px solid #eadcf4; border-radius: 21px; color: #342347; background: linear-gradient(135deg, #fff, #f7edff); box-shadow: 0 9px 24px #55316d10; text-align: left; }.suggestion-entry > span:first-child { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 14px; background: #ffe996; box-shadow: 0 6px 14px #c9902922; font-size: 1.2rem; }.suggestion-entry > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }.suggestion-entry small, .suggestion-entry strong, .suggestion-entry em { display: block; }.suggestion-entry small { color: #8d559f; font-size: .65rem; font-weight: 850; }.suggestion-entry strong { font-size: .92rem; }.suggestion-entry em { overflow: hidden; color: #7c7184; font-size: .68rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }.suggestion-entry > b { color: #a78eb1; font-size: 1.35rem; }.suggestion-entry:active { transform: scale(.985); }
.suggestion-sheet { background: radial-gradient(circle at 100% 0, #fff1bb, transparent 31%), linear-gradient(155deg, #fff, #f7f0ff); }.suggestion-icon { display: grid; width: 48px; height: 48px; margin-bottom: 15px; place-items: center; border-radius: 16px; background: #ffe894; font-size: 1.35rem; }.suggestion-sheet h2 { margin: 5px 0 7px; font-size: 1.65rem; }.suggestion-copy { margin: 0 0 17px; color: var(--muted); font-size: .8rem; line-height: 1.45; }.suggestion-sheet form { display: grid; gap: 8px; }.suggestion-sheet label { margin-top: 5px; color: #5b5263; font-size: .7rem; font-weight: 850; }.suggestion-sheet select, .suggestion-sheet textarea { width: 100%; border: 1px solid #ded7e5; border-radius: 14px; color: var(--ink); background: #fff; font: inherit; outline: none; }.suggestion-sheet select { min-height: 46px; padding: 0 12px; }.suggestion-sheet textarea { min-height: 122px; padding: 12px; resize: vertical; line-height: 1.45; }.suggestion-sheet select:focus, .suggestion-sheet textarea:focus { border-color: #9660ba; box-shadow: 0 0 0 3px #9660ba18; }.suggestion-form-foot { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 4px; }.suggestion-form-foot small { color: #96909c; font-size: .65rem; }.suggestion-form-foot button { min-height: 45px; margin: 0; padding: 0 16px; color: #fff; background: linear-gradient(135deg, #7657e8, #a44db7); }.suggestion-form-foot button:disabled { opacity: .7; }.suggestion-status { min-height: 20px; margin: 2px 0 0; color: #aa3557; font-size: .7rem; line-height: 1.4; text-align: center; }.suggestion-status.is-success { color: #16734f; }

/* Bibliothèque de révisions */
.revisions-page { padding-top: 22px; }
.revisions-topbar { position: sticky; z-index: 60; top: 0; display: flex; align-items: center; justify-content: space-between; margin: -12px -8px 20px; padding: 12px 8px; background: #f8f8fff0; backdrop-filter: blur(14px); }
.revisions-topbar::after { content: ''; position: absolute; right: 8px; bottom: 0; left: 8px; height: 1px; background: #dfe3ee; opacity: .75; }
.revision-points { display: inline-flex; gap: 5px; align-items: center; padding: 8px 11px; border-radius: 12px; color: #6b5010; background: #fff0bd; font-size: .8rem; }
.revision-points i { color: #e49a13; font-style: normal; }
.revisions-hero { padding: 9px 3px 7px; }
.revisions-hero h1 { margin-top: 4px; font-size: clamp(2.45rem, 12vw, 4rem); letter-spacing: -.065em; }
.revisions-hero > p:last-child { margin: 8px 0 0; color: var(--muted); line-height: 1.45; }
.revision-summary, .revision-library { margin-top: 24px; }
.revision-toc { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(142px, 44%); gap: 9px; overflow-x: auto; padding: 2px 2px 9px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.revision-toc::-webkit-scrollbar { display: none; }
.revision-toc button { position: relative; display: grid; min-height: 93px; align-content: space-between; justify-items: start; margin: 0; padding: 13px; border: 0; border-radius: 19px; color: currentColor; text-align: left; scroll-snap-align: start; box-shadow: 0 7px 18px #2532550d; }
.revision-toc button > span { font-size: 1.45rem; }
.revision-toc button > strong { max-width: 110px; font-size: .78rem; line-height: 1.2; }
.revision-toc button > i { position: absolute; top: 10px; right: 10px; display: grid; min-width: 21px; height: 21px; place-items: center; border-radius: 99px; color: #fff; background: #182341; font-size: .62rem; font-style: normal; }
.toc-pink { color: #b62e68 !important; background: #ffeaf2; }.toc-purple { color: #5d43bb !important; background: #eeeaff; }.toc-orange { color: #a9580d !important; background: #fff0df; }.toc-blue { color: #2362a7 !important; background: #e6f2ff; }.toc-red { color: #b74343 !important; background: #ffe8e8; }.toc-violet { color: #7a45ae !important; background: #f3e9ff; }.toc-green { color: #287653 !important; background: #e4f7ed; }.toc-yellow { color: #9a7011 !important; background: #fff6d8; }
.revision-subjects { display: grid; gap: 11px; }
.revision-subject { scroll-margin-top: 80px; overflow: hidden; border-radius: 23px; box-shadow: 0 8px 22px #2731530c; }
.revision-subject-trigger { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%; min-height: 76px; margin: 0; padding: 14px 15px; border: 0; color: currentColor; background: transparent; text-align: left; }
.revision-subject-trigger > span:nth-child(2) { display: grid; gap: 3px; }
.revision-subject-trigger > span:nth-child(2) > strong { font-size: .96rem; }
.revision-subject-trigger small { color: var(--muted); font-size: .7rem; }
.revision-subject-trigger > b { font-size: 1.1rem; transition: transform .24s ease; }
.revision-subject.is-open .revision-subject-trigger > b { transform: rotate(180deg); }
.revision-subject-content { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s cubic-bezier(.2, .82, .25, 1), opacity .2s ease; }
.revision-subject.is-open .revision-subject-content { grid-template-rows: 1fr; opacity: 1; }
.revision-subject-content-inner { min-height: 0; overflow: hidden; }
.revision-discipline { margin: 0 10px 10px; padding: 14px; border-radius: 17px; background: #ffffffc7; }
.revision-discipline h3 { margin: 0 0 10px; color: #565a6d; font-size: .69rem; letter-spacing: .06em; text-transform: uppercase; }
.revision-chapters { display: grid; gap: 8px; }
.revision-chapter { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 13px; border: 1px solid #ececf3; border-radius: 15px; color: var(--ink); background: #fff; text-decoration: none; box-shadow: 0 5px 13px #2831530a; }
.revision-chapter > span { display: grid; gap: 4px; }
.revision-chapter small { color: #888b9b; font-size: .62rem; font-weight: 750; text-transform: uppercase; }
.revision-chapter strong { font-size: .86rem; line-height: 1.25; }
.revision-chapter em { width: max-content; color: #a62b61; font-size: .65rem; font-style: normal; font-weight: 800; }
.revision-chapter em.is-done { color: #27805b; }
.revision-chapter > b { color: var(--pink-dark); font-size: .66rem; white-space: nowrap; }
.revision-empty { display: flex; gap: 11px; align-items: center; margin: 0 10px 10px; padding: 14px; border: 1px dashed #ffffff; border-radius: 17px; background: #ffffff75; }
.revision-empty > span { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: #fff; font-weight: 900; }
.revision-empty p, .revision-empty strong, .revision-empty small { display: block; margin: 0; }
.revision-empty small { margin-top: 3px; color: var(--muted); font-size: .68rem; line-height: 1.35; }
.source-info { position: relative; display: inline-block; margin-left: 6px; vertical-align: middle; }
.source-info > button { display: grid; width: 21px; height: 21px; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #7657e8; font: 850 .7rem/1 sans-serif; }
.source-info-tooltip { position: absolute; z-index: 30; left: 0; bottom: calc(100% + 8px); width: min(255px, calc(100vw - 58px)); padding: 10px 11px; border-radius: 11px; color: #fff; background: #17213a; box-shadow: 0 10px 25px #17213a38; font-size: .72rem; font-weight: 650; line-height: 1.4; opacity: 0; visibility: hidden; transform: translateY(5px); transition: opacity .16s, transform .16s, visibility .16s; }
.source-info:hover .source-info-tooltip, .source-info:focus-within .source-info-tooltip { opacity: 1; visibility: visible; transform: translateY(0); }
nav { z-index: 50; padding-top: 9px; box-shadow: 0 -7px 24px #18234110; }
nav a { display: grid; gap: 3px; justify-items: center; min-width: 70px; }
nav a span { font-size: 1.1rem; }
nav a.active { color: var(--pink-dark); }

/* Accès privé */
.access-locked { overflow: hidden; }
.access-gate { position: fixed; z-index: 999; inset: 0; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at 15% 10%, #ffb9d4 0, transparent 32%), linear-gradient(145deg, #131d38, #2d3c67); }
.access-panel { width: min(100%, 390px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 30px 25px; border-radius: 28px; background: #fff; box-shadow: 0 30px 70px #0b102653; }
.access-logo { display: grid; width: 60px; height: 60px; place-items: center; margin-bottom: 24px; border-radius: 19px; color: #fff; background: var(--navy); font-weight: 900; font-size: 1.25rem; transform: rotate(-4deg); }
.access-logo span { color: var(--pink); }
.access-panel h1 { font-size: 2.15rem; }
.access-panel > p:not(.eyebrow):not(.access-error) { margin: 12px 0 22px; color: var(--muted); line-height: 1.5; }
.access-panel label { display: block; margin-bottom: 7px; font-size: .82rem; font-weight: 800; }
.access-panel input, .access-panel select { width: 100%; padding: 14px 15px; border: 2px solid #e2e5ef; border-radius: 13px; color: var(--ink); background: #fff; outline: none; font: inherit; font-size: 1rem; }.access-panel input[type="password"] { letter-spacing: .12em; }
.access-panel input:focus, .access-panel select:focus { border-color: var(--pink); box-shadow: 0 0 0 4px #ff4f9117; }
.access-panel button { width: 100%; margin-top: 12px; color: #fff; background: linear-gradient(135deg, var(--pink), var(--pink-dark)); }
.access-error { min-height: 20px; margin: 10px 0 0; color: #c12c52; font-size: .84rem; }
.multi-access { width: min(100%, 430px); }
.access-brand-logo { display: block; width: 68px; height: 68px; margin-bottom: 20px; border-radius: 21px; box-shadow: 0 14px 28px #1e28443b; transform: rotate(-4deg); }
.multi-access h1 span { color: var(--pink-dark); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 21px 0 17px; padding: 4px; border-radius: 14px; background: #f0f1f6; }
.access-panel .auth-tab { width: auto; margin: 0; padding: 10px; color: #657087; background: transparent; box-shadow: none; font-size: .78rem; }
.access-panel .auth-tab.active { color: var(--navy); background: #fff; box-shadow: 0 4px 12px #1a244114; }
.auth-form[hidden] { display: none; }
.auth-form label { margin-top: 12px; }.auth-form label:first-child { margin-top: 0; }
.auth-form .remember-login { display: flex; gap: 10px; align-items: flex-start; margin: 13px 1px 3px; padding: 11px 12px; border: 1px solid #ebe3ef; border-radius: 14px; background: #faf7fc; cursor: pointer; }
.remember-login input { width: 19px; height: 19px; flex: 0 0 auto; margin: 1px 0 0; accent-color: #ff4f91; }
.remember-login span { display: grid; gap: 2px; }
.remember-login strong { color: #3c2c49; font-size: .76rem; line-height: 1.25; }
.remember-login small { color: #817687; font-size: .62rem; line-height: 1.35; }
.register-copy { margin: 0 0 17px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.profile-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 21px 0; }
.profile-choice { display: grid; gap: 7px; justify-items: center; min-width: 0; padding: 11px 6px; border: 2px solid transparent; color: var(--ink); background: #f3f4f9; transition: transform .16s, border-color .16s, background .16s; }
.profile-choice span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; color: #fff; background: var(--profile-color); font-size: 1.05rem; }
.profile-choice strong { font-size: .78rem; }
.profile-choice.selected { border-color: var(--profile-color); background: color-mix(in srgb, var(--profile-color) 9%, white); transform: translateY(-2px); }
.access-submit:disabled { opacity: .65; cursor: wait; }
.access-panel .auth-text-button { min-height: 0; margin: 8px 0 0; padding: 7px; color: #7657a6; background: transparent; box-shadow: none; font-size: .74rem; text-decoration: underline; text-underline-offset: 3px; }.recovery-register-block { margin-top: 16px; padding: 14px; border-radius: 16px; background: #f6f1fb; }.recovery-register-block > strong, .recovery-register-block > small { display: block; }.recovery-register-block > strong { color: #5f3d78; font-size: .8rem; }.recovery-register-block > small { margin-top: 3px; color: #807487; font-size: .67rem; line-height: 1.4; }.access-panel .auth-back-button { width: auto; min-height: 0; margin: 0 0 13px; padding: 5px 0; color: #6b6074; background: transparent; box-shadow: none; font-size: .72rem; }.access-panel .recovery-question-button { min-height: 43px; color: #65447d; background: #eee5f4; box-shadow: none; }.recovery-question-copy { margin: 13px 0 3px; padding: 12px; border-radius: 13px; color: #56386d; background: #f6ecfb; font-size: .8rem; font-weight: 850; line-height: 1.4; }.guest-access { position: relative; display: grid; gap: 7px; margin-top: 19px; padding-top: 17px; border-top: 1px solid #e5e6ed; text-align: center; }.guest-access[hidden] { display: none; }.guest-access > span { position: absolute; top: -9px; left: 50%; padding: 0 9px; color: #9a9caa; background: #fff; font-size: .68rem; transform: translateX(-50%); }.access-panel .guest-access > button { margin: 0; color: #2f3c59; background: #edf0f6; box-shadow: none; }.guest-access small { color: #858897; font-size: .64rem; line-height: 1.4; }

/* Classement familial */
.leaderboard-card { padding: 20px; border: 1px solid #e7e8f1; border-radius: 24px; background: #fff; box-shadow: 0 10px 28px #2731530c; }
.leaderboard-card .section-heading { margin-bottom: 14px; }
.boost-entry { display: grid; grid-template-columns: 45px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; min-height: 0; margin-top: -2px; padding: 14px; border: 1px solid #cdeadd; border-radius: 21px; color: #173e31; background: linear-gradient(135deg, #f8fffb, #e7f8ef); box-shadow: 0 8px 24px #1c6f4d0d; text-align: left; }.boost-entry > span:first-child { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 14px; background: #bff0d7; font-size: 1.2rem; }.boost-entry > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }.boost-entry small, .boost-entry strong, .boost-entry em { display: block; }.boost-entry small { color: #31805f; font-size: .63rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }.boost-entry strong { font-size: .92rem; }.boost-entry em { overflow: hidden; color: #628074; font-size: .68rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }.boost-entry > b { color: #61a98a; font-size: 1.35rem; }.boost-entry:active { transform: scale(.985); }
.live-badge { display: inline-flex; gap: 6px; align-items: center; color: #64708a; font-size: .7rem; font-weight: 800; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #35bb79; box-shadow: 0 0 0 4px #35bb7918; }
.leaderboard-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.leader-row { display: grid; grid-template-columns: 30px 43px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 16px; background: #f7f8fc; transition: transform .2s; }
.leader-row:first-child { background: linear-gradient(100deg, #fff7da, #fffaf0); }
.leader-row.is-me { outline: 2px solid #ff4f9136; }
.leader-rank { font-size: .87rem; font-weight: 900; text-align: center; }
.leader-avatar { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; color: #fff; background: var(--profile-color); font-weight: 900; }
.leader-name { display: grid; gap: 2px; }.leader-name strong { font-size: .9rem; }.leader-name small { color: var(--muted); font-size: .67rem; }
.leader-points { color: var(--navy); font-size: 1rem; }.leader-points small { color: var(--muted); font-size: .68rem; }
.share-card { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 20px; overflow: hidden; border-radius: 24px; color: #fff; background: radial-gradient(circle at 100% 0, #ff4f9150 0, transparent 34%), linear-gradient(135deg, #192442, #3d315d); box-shadow: 0 13px 30px #1a23432e; }
.share-icon { display: grid; grid-row: span 2; width: 46px; height: 46px; place-items: center; border-radius: 15px; background: #ffffff13; font-size: 1.35rem; }
.share-card .card-label { color: #ffb9d3; }.share-card h2 { color: #fff; }
.share-copy > p:last-child { margin: 6px 0 0; color: #cbd2e6; font-size: .82rem; line-height: 1.4; }
.share-actions { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.share-actions button, .share-actions a { display: grid; min-height: 43px; place-items: center; margin: 0; padding: 10px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--pink), var(--pink-dark)); font: inherit; font-size: .78rem; font-weight: 850; text-align: center; text-decoration: none; }
.share-actions #share-whatsapp { color: #103e2b; background: #5de397; }
.share-actions .share-secondary { grid-column: 1 / -1; color: #e8eaf3; background: #ffffff14; }
.share-status { grid-column: 1 / -1; min-height: 17px; margin: 6px 0 0; color: #aeb9d4; font-size: .7rem; text-align: center; }

/* Menu joueur, appels aux quiz et invitation */
.user-menu-wrap { position: relative; z-index: 80; width: max-content; margin: 0; }
.user-menu-trigger { display: grid; width: 44px; height: 44px; min-height: 0; place-items: center; margin: 0; padding: 0; border: 1px solid #e5e6ef; border-radius: 14px; color: var(--navy); background: #fff; box-shadow: 0 6px 16px #28315314; font: inherit; }
.burger-glyph { font-size: 1.35rem; font-weight: 900; line-height: 1; transform: translateY(-1px); }
.user-menu { position: absolute; z-index: 90; top: calc(100% + 8px); right: 0; left: auto; width: min(310px, calc(100vw - 28px)); padding: 9px; border: 1px solid #e7e8f1; border-radius: 19px; background: #fff; box-shadow: 0 22px 54px #17213a35; }
.user-menu[hidden] { display: none; }
.user-menu-head { display: flex; gap: 10px; align-items: center; padding: 9px 9px 13px; border-bottom: 1px solid #eff0f5; }
.user-menu-head > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--pink), #795ad9); font-weight: 900; }
.user-menu-head div, .user-menu button > span:last-child, .user-menu-coming > span:last-child { display: grid; gap: 2px; text-align: left; }
.user-menu small { color: var(--muted); font-size: .67rem; font-weight: 650; }
.user-menu button, .user-menu-coming { display: grid; grid-template-columns: 29px 1fr; gap: 7px; align-items: center; width: 100%; margin: 5px 0 0; padding: 10px; border: 0; border-radius: 13px; color: var(--ink); background: transparent; font: inherit; font-size: .78rem; }
.user-menu button:hover, .user-menu button:focus-visible { background: #fff0f6; }
.user-menu-coming { opacity: .58; }
.quiz-alert-card { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; padding: 16px; border-radius: 21px; color: #fff; background: linear-gradient(135deg, #ff4f91, #7555dc); box-shadow: 0 12px 28px #a0437b30; text-decoration: none; animation: quiz-pulse 3.5s ease-in-out infinite; }
.quiz-alert-card > span:nth-child(2) { display: grid; gap: 3px; }
.quiz-alert-card small { color: #ffe1ed; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.quiz-alert-card strong { font-size: .9rem; line-height: 1.25; }
.quiz-alert-card em { color: #fff3f8; font-size: .7rem; font-style: normal; }
.quiz-alert-icon { position: relative; display: grid; width: 47px; height: 47px; place-items: center; border-radius: 15px; background: #ffffff1f; font-size: 1.35rem; }
.quiz-alert-icon i { position: absolute; top: -7px; right: -7px; min-width: 21px; padding: 3px 5px; border-radius: 99px; color: #ab2860; background: #fff; font: 900 .65rem/1 sans-serif; text-align: center; }
.quiz-alert-card.is-complete { background: linear-gradient(135deg, #269a69, #45bd82); animation: none; }
.subject-quiz { display: flex !important; gap: 5px; align-items: center; color: #9b2458 !important; }
.subject-quiz b { padding: 3px 5px; border-radius: 7px; color: #fff; background: var(--pink-dark); font-size: .61rem; }
.subject-quiz.is-done { color: #238158 !important; }
@keyframes quiz-pulse { 0%, 88%, 100% { transform: scale(1); } 92% { transform: scale(1.015) rotate(-.25deg); } 96% { transform: scale(1.01) rotate(.25deg); } }
.modal-open { overflow: hidden; }
.invite-modal { position: fixed; z-index: 500; inset: 0; display: grid; place-items: center; padding: 20px; background: #11172cbd; backdrop-filter: blur(8px); }
.invite-modal[hidden] { display: none; }
.invite-dialog { position: relative; width: min(100%, 410px); padding: 28px 22px 22px; border-radius: 28px; color: #fff; background: radial-gradient(circle at 95% 5%, #ff4f9154, transparent 34%), linear-gradient(145deg, #192442, #3d315d); box-shadow: 0 30px 80px #090d1e66; text-align: center; }
.invite-dialog > img { width: 66px; height: 66px; margin-bottom: 13px; border-radius: 20px; transform: rotate(-4deg); }
.invite-dialog h2 { margin-top: 5px; color: #fff; font-size: 1.55rem; }
.invite-dialog > p:not(.eyebrow):not(.share-status) { margin: 9px auto 4px; color: #dbe0ed; line-height: 1.45; }
.invite-dialog .share-actions { margin-top: 19px; }
.invite-close { position: absolute; top: 11px; right: 11px; display: grid; width: 38px; height: 38px; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #ffffff17; font: 300 1.7rem/1 sans-serif; }
.boost-dialog { background: radial-gradient(circle at 90% 0, #36b77b55, transparent 35%), linear-gradient(145deg, #162b2a, #243f3b); }.boost-dialog-icon { display: grid; width: 60px; height: 60px; margin: 0 auto 13px; place-items: center; border-radius: 20px; background: #c9f3de; font-size: 1.65rem; transform: rotate(-4deg); }.boost-player-list { display: grid; max-height: min(38dvh, 290px); gap: 7px; margin-top: 17px; overflow-y: auto; text-align: left; }.boost-player-list > button { display: grid; grid-template-columns: 39px 1fr auto; gap: 10px; align-items: center; width: 100%; min-height: 58px; margin: 0; padding: 8px 10px; border: 1px solid #ffffff13; border-radius: 15px; color: #fff; background: #ffffff0b; text-align: left; }.boost-player-list > button > span:first-child { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: #fff; background: var(--boost-color); font-size: .7rem; font-weight: 900; }.boost-player-list strong, .boost-player-list small { display: block; }.boost-player-list small { margin-top: 2px; color: #bcd1c9; font-size: .65rem; }.boost-player-list b { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: transparent; background: #ffffff0e; }.boost-player-list > button.is-selected { border-color: #76d7aa; background: #65c99c1c; }.boost-player-list > button.is-selected b { color: #173d31; background: #7fe1b4; }.boost-player-list > p { color: #ccd8d3; font-size: .78rem; text-align: center; }.boost-whatsapp { display: grid; min-height: 49px; margin-top: 14px; place-items: center; border-radius: 14px; color: #123c2b; background: #64df99; font-size: .78rem; font-weight: 900; text-decoration: none; }.boost-whatsapp[aria-disabled="true"] { pointer-events: none; opacity: .5; }

/* Installation de l’application */
.user-menu button.is-installed { color: #217250; background: #e9f8f1; }
.install-modal { position: fixed; z-index: 700; inset: 0; display: grid; place-items: center; padding: 20px; background: #11172cc7; backdrop-filter: blur(9px); }
.install-modal[hidden] { display: none; }
.install-dialog { position: relative; width: min(100%, 430px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px 22px 22px; border: 1px solid #ffffffb8; border-radius: 29px; color: var(--ink); background: radial-gradient(circle at 100% 0, #ffe4ef, transparent 36%), linear-gradient(155deg, #fff, #f5f2ff); box-shadow: 0 30px 90px #080c1f7d; text-align: center; }
.install-dialog > img { width: 70px; height: 70px; margin-bottom: 13px; border-radius: 21px; box-shadow: 0 12px 28px #202a4b2e; transform: rotate(-4deg); }
.install-dialog .eyebrow { color: var(--pink-dark); }
.install-dialog h2 { margin: 5px 0 0; font-size: 1.62rem; }
.install-dialog > p:not(.eyebrow) { margin: 10px auto 0; color: var(--muted); line-height: 1.5; }
.install-close { position: absolute; top: 11px; right: 11px; display: grid; width: 38px; height: 38px; min-height: 0; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 50%; color: #4d5060; background: #eef0f7; font: 300 1.65rem/1 sans-serif; }
.install-steps { display: grid; gap: 9px; margin: 20px 0; padding: 0; list-style: none; counter-reset: install-step; text-align: left; }
.install-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; color: #3c4051; font-size: .88rem; line-height: 1.4; counter-increment: install-step; }
.install-steps li::before { content: counter(install-step); display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--pink), var(--purple)); font-size: .74rem; font-weight: 900; }
.install-action { width: 100%; min-height: 54px; color: #fff; background: linear-gradient(135deg, var(--pink), var(--pink-dark)); box-shadow: 0 12px 25px #ff4f9132; }
.install-dialog .install-note { padding: 10px 12px; border-radius: 13px; background: #f0ecff; font-size: .72rem; }

/* Challenges */
.challenge-page { padding-top: 34px; }
.challenge-hero { padding: 10px 3px 6px; }
.challenge-hero h1 { font-size: clamp(2.2rem, 10vw, 3.3rem); }
.points-pill { display: inline-flex; gap: 7px; align-items: center; margin-top: 17px; padding: 9px 13px; border-radius: 99px; color: #9a5912; background: #fff0bd; font-size: .88rem; }
.game-card { padding: 22px; border-radius: 26px; background: #fff; border: 1px solid #e5e6f0; box-shadow: 0 12px 30px #26335812; }
.game-top { display: flex; align-items: center; gap: 12px; }
.game-top .game-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; background: var(--soft-pink); font-size: 1.4rem; }
.game-top .reward { margin-left: auto; padding: 7px 9px; border-radius: 10px; color: var(--pink-dark); background: var(--soft-pink); font-size: .78rem; font-weight: 900; }
.game-card button { width: 100%; color: #fff; background: linear-gradient(135deg, var(--pink), var(--pink-dark)); }
.express-disabled-panel { filter: grayscale(1); opacity: .58; }
.express-disabled-panel > p { margin: 18px 0 0; color: var(--muted); }
.streak-card { display: flex; gap: 15px; align-items: center; padding: 20px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #7254dc, #9b7eec); }
.streak-card > span { font-size: 2rem; }.streak-card .card-label { color: #e8defe; }.streak-card p:last-child { margin: 7px 0 0; color: #eee8ff; font-size: .86rem; }

@media (min-width: 700px) { .dashboard .subject-grid { grid-template-columns: repeat(3, 1fr); }.challenge-strip { grid-auto-columns: minmax(260px, 48%); } }

/* Culture G */
.culture-body {
  min-height: 100dvh;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 8%, #743a89 0, transparent 27%),
    radial-gradient(circle at 88% 80%, #4a315f 0, transparent 28%),
    linear-gradient(155deg, #11172c 0%, #1b2340 52%, #11172c 100%);
  overscroll-behavior: none;
}
.culture-body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .22; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, #000, transparent 72%); }
.culture-app { position: relative; display: grid; grid-template-rows: auto 5px 1fr; width: min(100%, 620px); height: 100dvh; min-height: 520px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom)); isolation: isolate; }
.culture-topbar { display: grid; grid-template-columns: 42px 36px 1fr auto; gap: 8px; align-items: center; min-height: 54px; }
.culture-close { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #ffffff1f; border-radius: 50%; color: #fff; background: #ffffff0e; font-size: 1.7rem; line-height: 1; text-decoration: none; }
.culture-music { display: grid; width: 34px; height: 34px; min-height: 0; place-items: center; margin: 0; padding: 0; border: 1px solid #ffffff1f; border-radius: 50%; color: #ffd66b; background: #ffffff0e; font-size: 1rem; }.culture-music.is-muted { color: #8f98b0; }
.culture-progress-wrap { display: grid; gap: 5px; }
.culture-progress-wrap small { color: #bfc7df; font-size: .67rem; font-weight: 750; }
.culture-progress { height: 6px; overflow: hidden; border-radius: 99px; background: #ffffff17; }
.culture-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff4f91, #ff9fc3); transition: width .35s ease; }
.culture-points { display: flex; gap: 5px; align-items: center; padding: 8px 10px; border-radius: 99px; color: #ffd66b; background: #ffffff0e; font-size: .85rem; }
.culture-score-stack { display: flex; gap: 5px; align-items: center; }
.culture-session, .culture-points { position: relative; min-width: 50px; justify-content: center; }
.culture-session { display: grid; gap: 0; justify-items: center; padding: 5px 8px; border-radius: 12px; color: #fff; background: #ffffff0e; }
.culture-session small { color: #aeb8d1; font-size: .52rem; font-weight: 800; line-height: 1; text-transform: uppercase; }
.culture-session strong { font-size: .86rem; line-height: 1.15; }
.score-delta { position: absolute; z-index: 20; top: -8px; right: -3px; padding: 3px 6px; border-radius: 99px; color: #fff; font-size: .66rem; font-weight: 950; animation: score-fly .82s ease both; pointer-events: none; }
.score-delta.is-positive { background: #20b878; }.score-delta.is-negative { background: #e33f62; }
.score-bump-positive { animation: score-good .38s ease both; }.score-bump-negative { animation: score-bad .38s ease both; }
.culture-timer { height: 5px; margin: 7px 0 0; overflow: hidden; border-radius: 99px; background: #ffffff12; }
.culture-timer span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff4f91, #ffbd52); will-change: width; }
.culture-timer span.is-urgent { background: #ff465d; box-shadow: 0 0 12px #ff465d; }
.culture-stage { position: relative; display: flex; min-height: 0; flex-direction: column; justify-content: center; padding: 12px 0 2px; }
.culture-stage[hidden], .culture-start[hidden], .culture-finish[hidden], .culture-exit[hidden] { display: none; }
.culture-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 2px 10px; }
.culture-meta > span { padding: 6px 9px; border: 1px solid #ffffff14; border-radius: 99px; color: #dce2f2; background: #ffffff0c; font-size: .66rem; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.culture-meta .culture-subject { color: #fff; background: #ff4f9130; border-color: #ff75a942; }
.culture-meta .culture-origin.is-bonus { color: #ffe17f; background: #e3ad2821; border-color: #ffd45a42; }
.culture-joker { min-height: 29px; margin: 0 0 0 auto; padding: 4px 9px; border: 1px solid #bd8cff45; border-radius: 99px; color: #f0ddff; background: #8d55c32b; font-size: .65rem; font-weight: 900; }.culture-joker:disabled { opacity: .42; }.culture-joker strong { display: inline-grid; min-width: 17px; height: 17px; place-items: center; margin-left: 3px; border-radius: 50%; color: #5c3174; background: #ffe27a; font-size: .58rem; }
.pop-theme-form { display: grid; gap: 7px; margin-top: 12px; padding: 13px; border: 1px solid #ffffff18; border-radius: 16px; background: #ffffff0b; }.pop-theme-form label { color: #f2eaff; font-size: .72rem; font-weight: 850; }.pop-theme-form > div { display: grid; grid-template-columns: 1fr auto; gap: 7px; }.pop-theme-form input { min-width: 0; height: 42px; padding: 0 11px; border: 1px solid #ffffff1d; border-radius: 11px; color: #fff; background: #ffffff0d; font: inherit; }.pop-theme-form input::placeholder { color: #9fa8c0; }.pop-theme-form button { min-height: 42px; margin: 0; padding: 0 12px; color: #3b284e; background: #ffe277; font-size: .7rem; }.pop-theme-form small { color: #9fa8c0; font-size: .59rem; line-height: 1.35; }.pop-theme-form small.is-success { color: #71e0ae; }
.reward-toast { position: fixed; z-index: 40; top: max(18px, env(safe-area-inset-top)); left: 50%; display: grid; width: min(calc(100% - 28px), 370px); grid-template-columns: 42px 1fr; gap: 10px; align-items: center; padding: 12px 15px; border: 1px solid #ffe99c55; border-radius: 17px; color: #fff; background: #37214ff2; box-shadow: 0 16px 45px #06030c70; transform: translateX(-50%); }.reward-toast[hidden] { display: none; }.reward-toast.is-showing { animation: reward-toast-in .35s cubic-bezier(.2,.85,.25,1); }.reward-toast > span { font-size: 1.7rem; }.reward-toast strong, .reward-toast small { display: block; }.reward-toast strong { color: #ffe278; }.reward-toast small { margin-top: 2px; color: #d8cbe3; font-size: .67rem; }
@keyframes reward-toast-in { from { opacity: 0; transform: translate(-50%, -20px) scale(.94); } }
.context-feedback-button { position: fixed; z-index: 120; right: max(14px, env(safe-area-inset-right)); bottom: calc(78px + env(safe-area-inset-bottom)); display: flex; width: auto; min-width: 52px; height: 52px; min-height: 0; gap: 7px; align-items: center; justify-content: center; margin: 0; padding: 0 14px; border: 2px solid #ffffffb8; border-radius: 18px; color: #fff; background: linear-gradient(145deg, #ff4f91, #8e4bd0); box-shadow: 0 12px 30px #30154755; font-size: .72rem; font-weight: 900; animation: context-tool-in .35s cubic-bezier(.2,.85,.25,1); }.context-feedback-button span { font-size: 1.35rem; }.context-feedback-button small { font-size: .64rem; font-weight: 900; }.context-feedback-button:active { transform: scale(.95); }.context-feedback-modal { position: fixed; z-index: 210; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 15px; background: #11172ca8; backdrop-filter: blur(8px); }.context-feedback-modal[hidden] { display: none; }.context-feedback-sheet { position: relative; width: min(100%, 540px); padding: 24px 21px max(21px, env(safe-area-inset-bottom)); border-radius: 27px 27px 20px 20px; color: var(--ink); background: radial-gradient(circle at 100% 0, #ffe8ad, transparent 30%), #fff; box-shadow: 0 24px 70px #0b061755; animation: sheet-up .28s cubic-bezier(.2,.85,.25,1); }.context-feedback-handle { position: absolute; top: 9px; left: 50%; width: 43px; height: 4px; border-radius: 99px; background: #d9cfdf; transform: translateX(-50%); }.context-feedback-close { position: absolute; top: 15px; right: 15px; display: grid; width: 34px; height: 34px; min-height: 0; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 50%; color: #665873; background: #f0eaf4; font-size: 1.25rem; }.context-feedback-sheet h2 { margin: 3px 45px 8px 0; font-size: 1.55rem; }.context-feedback-context { margin: 0 0 15px; padding: 9px 11px; border-radius: 11px; color: #765f83; background: #f5eef9; font-size: .66rem; }.context-feedback-sheet form { display: grid; gap: 9px; }.context-feedback-sheet label { color: #574b60; font-size: .7rem; font-weight: 900; }.context-feedback-sheet textarea { width: 100%; min-height: 126px; padding: 13px; border: 1px solid #ded5e4; border-radius: 15px; color: var(--ink); background: #fff; font: inherit; line-height: 1.45; resize: vertical; }.context-feedback-sheet form small { min-height: 18px; color: #8b8290; font-size: .62rem; line-height: 1.4; }.context-feedback-sheet form small.is-success { color: #187b57; }.context-feedback-sheet form small.is-error { color: #bd375b; }.context-feedback-sheet form > button { min-height: 49px; margin: 0; color: #fff; background: linear-gradient(135deg, #ff4f91, #9150d4); }.context-feedback-sheet form > button:disabled { opacity: .65; }.context-feedback-modal + * { pointer-events: none; }
@keyframes context-tool-in { from { opacity: 0; transform: translateY(15px) scale(.85); } }
@media (max-width: 430px) { .context-feedback-button { width: 50px; min-width: 50px; padding: 0; border-radius: 17px; }.context-feedback-button small { display: none; } }

/* ¡Vamos! */
.challenge-card.challenge-spanish { color: #fff; background: linear-gradient(135deg, #ff7448, #dd3d6e 52%, #7d3bc6); }.challenge-card.challenge-spanish > span { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 14px; color: #8a320e; background: #ffd95d; font-size: 1.25rem; font-weight: 1000; }.challenge-card.challenge-spanish small { color: #fff2ed; font-weight: 750; }.spanish-promo { color: #fff; background: linear-gradient(125deg, #ff7848, #dc3d73 58%, #7a3cc7); }.spanish-promo > span { color: #8f340e; background: #ffdc5e; }#spanish-preview[hidden], #spanish-challenge[hidden] { display: none; }
.challenge-card.is-points-locked, .culture-promo.is-points-locked { cursor: default; filter: grayscale(.72); opacity: .62; }.challenge-card.is-points-locked > b { display: block; flex: 0 0 auto; padding: 5px 7px; border-radius: 9px; color: #463d55; background: #ffffffc7; font-size: .52rem; white-space: nowrap; }.culture-promo.is-points-locked > b { width: auto; padding: 7px 9px; border-radius: 11px; color: #51485a; background: #ffffffd4; font-size: .58rem; white-space: nowrap; }.lock-nudge { animation: lock-nudge .35s ease; }@keyframes lock-nudge { 35% { transform: translateX(-5px); } 70% { transform: translateX(5px); } }
.challenge-card.is-points-locked > b, .culture-promo.is-points-locked > b { display: grid; gap: 2px; text-align: center; }.challenge-card.is-points-locked > b span, .culture-promo.is-points-locked > b span { display: block; font-weight: 950; }.challenge-card.is-points-locked > b small, .culture-promo.is-points-locked > b small { display: block; margin: 0; color: #6a5e72; font-size: .52rem; font-style: normal; font-weight: 850; line-height: 1.15; }
.vamos-body { min-height: 100dvh; margin: 0; color: #211833; background: #f8f5ff; font-family: Inter, ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif; }.vamos-body button, .vamos-body input { font: inherit; }.vamos-app { width: min(100%, 650px); min-height: 100dvh; margin: 0 auto; overflow: hidden; background: linear-gradient(180deg, #fff 0, #f8f5ff 75%); box-shadow: 0 0 60px #35245c18; }.vamos-topbar { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: 46px 1fr auto; gap: 11px; align-items: center; padding: max(12px, env(safe-area-inset-top)) 16px 12px; color: #fff; background: #3c215fef; backdrop-filter: blur(14px); }.vamos-topbar > a { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; color: #fff; background: #ffffff18; font-size: 1.6rem; text-decoration: none; }.vamos-topbar div strong, .vamos-topbar div small { display: block; }.vamos-topbar div small { margin-top: 1px; color: #e8d9fb; font-size: .68rem; }.vamos-topbar > span { padding: 8px 11px; border-radius: 13px; color: #38205b; background: #ffda58; font-size: .75rem; }.vamos-map { padding-bottom: 38px; }.vamos-hero { padding: 34px 24px 30px; color: #fff; background: radial-gradient(circle at 85% 8%, #ffdc58 0 8%, transparent 8.5%), linear-gradient(145deg, #6e36bb, #be3d99 55%, #ff704b); }.vamos-hero > span { display: grid; width: 64px; height: 64px; place-items: center; border: 2px solid #ffffff55; border-radius: 22px; background: #ffffff24; font-size: 2rem; transform: rotate(-4deg); }.vamos-hero .eyebrow { margin: 22px 0 5px; color: #ffe677; }.vamos-hero h1 { margin: 0; font-size: clamp(2.35rem, 10vw, 4.1rem); line-height: .97; letter-spacing: -.06em; }.vamos-hero h1 em { color: #ffe470; font-style: normal; }.vamos-hero > p:not(.eyebrow) { max-width: 490px; margin: 18px 0; color: #f8eafa; line-height: 1.55; }.vamos-hero > div { display: inline-flex; gap: 7px; align-items: center; padding: 10px 13px; border-radius: 14px; color: #fff; background: #26143a40; font-size: .7rem; }.vamos-hero > div b { color: #ffe36b; font-size: .9rem; }.vamos-path { display: grid; gap: 13px; padding: 24px 18px; }.vamos-level { display: grid; width: 100%; min-height: 94px; grid-template-columns: 57px 1fr auto; gap: 13px; align-items: center; margin: 0; padding: 14px; border: 1px solid #ebe4f3; border-radius: 23px; color: #2d2140; background: #fff; box-shadow: 0 9px 25px #43275d0c; text-align: left; }.vamos-level.is-current { border-color: #dc4e96; box-shadow: 0 10px 28px #ce418b25; }.vamos-level.is-locked { opacity: .48; filter: grayscale(.45); }.vamos-level-icon { display: grid; width: 55px; height: 55px; place-items: center; border-radius: 18px; background: linear-gradient(145deg, #fff1c1, #ffd65a); font-size: 1.7rem; }.vamos-level:nth-child(3n+2) .vamos-level-icon { background: linear-gradient(145deg, #f3e6ff, #ca9cff); }.vamos-level:nth-child(3n) .vamos-level-icon { background: linear-gradient(145deg, #ffe9ef, #ff9db7); }.vamos-level span:nth-child(2) small, .vamos-level span:nth-child(2) strong, .vamos-level span:nth-child(2) em, .vamos-level span:nth-child(2) i { display: block; }.vamos-level small { color: #9c8ca8; font-size: .58rem; font-weight: 850; text-transform: uppercase; }.vamos-level strong { margin: 2px 0; font-size: 1rem; }.vamos-level em { color: #776b80; font-size: .67rem; font-style: normal; }.vamos-level i { margin-top: 5px; color: #f4b629; font-size: .7rem; font-style: normal; letter-spacing: .08em; }.vamos-level > b { color: #c24891; font-size: 1.5rem; }
.vamos-lesson, .vamos-game, .vamos-summary, .vamos-locked { min-height: calc(100dvh - 70px); padding: 25px 21px max(30px, env(safe-area-inset-bottom)); }.vamos-map[hidden], .vamos-lesson[hidden], .vamos-game[hidden], .vamos-summary[hidden], .vamos-locked[hidden], .vamos-timer[hidden], .vamos-combo[hidden], .vamos-listen[hidden], .vamos-write[hidden], .vamos-answers[hidden] { display: none; }.vamos-lesson { display: flex; flex-direction: column; }.vamos-lesson-progress { display: flex; gap: 6px; margin-bottom: 28px; }.vamos-lesson-progress i { height: 5px; flex: 1; overflow: hidden; border-radius: 9px; background: #e7dfee; }.vamos-lesson-progress i.active { background: linear-gradient(90deg, #ff664e, #9d43bf); }.vamos-lesson-visual { display: grid; width: 96px; height: 96px; place-items: center; margin: 8px auto 25px; border-radius: 31px; background: linear-gradient(145deg, #fff0bd, #ffd15e); box-shadow: 0 15px 35px #a05e1625; font-size: 3rem; transform: rotate(-3deg); }.vamos-lesson h1 { margin: 5px 0 12px; font-size: clamp(2rem, 8vw, 3rem); line-height: 1; letter-spacing: -.045em; }.vamos-lesson > p:not(.eyebrow) { min-height: 88px; margin: 0 0 18px; color: #645a6b; font-size: .97rem; line-height: 1.62; }.vamos-example { display: grid; width: 100%; grid-template-columns: 42px 1fr; gap: 2px 10px; align-items: center; margin: 0 0 22px; padding: 14px; border: 1px solid #eadcf2; border-radius: 19px; color: #42245d; background: #f8f0ff; text-align: left; }.vamos-example > span { grid-row: 1 / 3; font-size: 1.35rem; }.vamos-example strong, .vamos-example small { display: block; }.vamos-example small { color: #776881; }.vamos-main-action { width: 100%; min-height: 54px; margin: auto 0 0; border: 0; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #ff664c, #d84489 55%, #7d3ec4); box-shadow: 0 12px 26px #bd3f7630; font-weight: 900; }.vamos-quiet-action { width: 100%; min-height: 42px; margin: 8px 0 0; border: 0; color: #74657f; background: transparent; font-weight: 750; }
.vamos-game { display: flex; flex-direction: column; padding-top: 17px; background: radial-gradient(circle at 50% 15%, #fff 0, #f8f3ff 62%, #f2eaff); }.vamos-game-head { display: grid; grid-template-columns: 42px 1fr 54px; gap: 11px; align-items: center; }.vamos-game-head button { width: 42px; height: 42px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 14px; color: #695b72; background: #ebe4f0; font-size: 1.4rem; }.vamos-game-head > div { height: 10px; overflow: hidden; border-radius: 99px; background: #e6dfec; }.vamos-game-head > div span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff6a4b, #d4448e, #783ec6); transition: width .35s ease; }.vamos-game-head > strong { color: #a03cb1; text-align: right; }.vamos-timer { height: 4px; margin: 15px 0 0; overflow: hidden; border-radius: 9px; background: #e9e1ee; }.vamos-timer span { display: block; width: 100%; height: 100%; background: #ffbd36; transform-origin: left; }.vamos-combo { align-self: center; margin: 13px 0 -1px; padding: 6px 11px; border-radius: 99px; color: #783417; background: #ffe49b; font-size: .65rem; font-weight: 850; animation: combo-pop .3s ease; }.vamos-card { display: flex; min-height: 430px; flex: 1; flex-direction: column; justify-content: center; padding: 24px 0 12px; text-align: center; }.vamos-card .eyebrow { color: #ad3f9a; }.vamos-card h1 { margin: 10px auto 24px; font-size: clamp(1.75rem, 8vw, 2.85rem); line-height: 1.12; letter-spacing: -.035em; }.vamos-listen { width: max-content; min-height: 48px; margin: -9px auto 20px; padding: 0 19px; border: 0; border-radius: 16px; color: #fff; background: #6938ac; font-weight: 850; }.vamos-answers { display: grid; width: 100%; gap: 10px; }.vamos-answers > button { min-height: 58px; margin: 0; padding: 11px 15px; border: 2px solid #e8e0ed; border-radius: 18px; color: #32253d; background: #fff; box-shadow: 0 5px 14px #4323540a; font-weight: 800; }.vamos-answers > button:active { transform: scale(.98); }.vamos-answers > button.is-correct, .vamos-word-bank button.is-correct { border-color: #34b87c; color: #126b47; background: #e4faef; }.vamos-answers > button.is-wrong { border-color: #f0697b; color: #a52d44; background: #fff0f2; animation: answer-shake .25s ease; }.vamos-write { display: grid; grid-template-columns: 1fr auto; gap: 8px; }.vamos-write input { min-width: 0; min-height: 56px; padding: 0 15px; border: 2px solid #ded3e5; border-radius: 17px; background: #fff; font-size: 1rem; }.vamos-write button { min-height: 56px; margin: 0; padding: 0 17px; border: 0; border-radius: 17px; color: #fff; background: #7540b9; font-weight: 850; }.vamos-feedback { min-height: 45px; margin-top: 13px; font-weight: 850; }.vamos-feedback.is-good { color: #16875b; }.vamos-feedback.is-help { color: #b36c12; }.vamos-feedback.is-correction { color: #ad3557; }.vamos-game-tip { margin: 0; color: #877b8d; font-size: .65rem; text-align: center; }.vamos-order-target { min-height: 60px; padding: 16px; border: 2px dashed #cdbbda; border-radius: 17px; color: #613490; background: #fff; font-weight: 850; }.vamos-word-bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 13px; }.vamos-word-bank button { min-height: 43px; margin: 0; padding: 8px 13px; border: 1px solid #d9c9e3; border-radius: 13px; color: #3d2b4c; background: #fff; font-weight: 800; }.vamos-word-bank button:disabled { opacity: .35; }
.vamos-summary { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }.vamos-summary-burst { display: grid; width: 94px; height: 94px; place-items: center; border-radius: 30px; color: #9d5500; background: #ffdb58; box-shadow: 0 16px 40px #bd711735; font-size: 3rem; animation: level-badge-in .5s cubic-bezier(.2,.85,.25,1); }.vamos-summary h1 { margin: 8px 0 0; font-size: 2.45rem; }.vamos-stars { margin: 13px 0; color: #f5b51e; font-size: 2.2rem; letter-spacing: .08em; }.vamos-summary > p:not(.eyebrow) { max-width: 440px; color: #716579; line-height: 1.5; }.vamos-summary-grid { display: grid; width: 100%; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0; }.vamos-summary-grid span { padding: 13px 6px; border-radius: 17px; background: #f3edf7; }.vamos-summary-grid small, .vamos-summary-grid strong { display: block; }.vamos-summary-grid small { min-height: 30px; color: #887993; font-size: .55rem; }.vamos-summary-grid strong { color: #6c359a; font-size: 1.1rem; }.vamos-locked { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }.vamos-locked > span { font-size: 3rem; }.vamos-locked h1 { margin-bottom: 6px; }.vamos-locked p { color: #776b80; }.vamos-locked a { margin-top: 18px; padding: 13px 18px; border-radius: 15px; color: #fff; background: #7140aa; text-decoration: none; font-weight: 850; }
@media (min-width: 620px) { .vamos-path { grid-template-columns: 1fr 1fr; }.vamos-level:nth-child(even) { transform: translateY(22px); }.vamos-path { padding-bottom: 60px; } }
.culture-combo { position: absolute; z-index: 4; top: 7px; right: 4px; padding: 7px 10px; border-radius: 99px; color: #52220c; background: #ffb64c; box-shadow: 0 7px 18px #ff8f3040; font-size: .72rem; font-weight: 900; animation: combo-pop .3s ease both; }
.culture-card { position: relative; display: flex; min-height: min(68dvh, 650px); max-height: 710px; flex-direction: column; overflow: hidden; padding: clamp(20px, 5vw, 30px); border: 1px solid #ffffff14; border-radius: 31px; color: var(--ink); background: linear-gradient(165deg, #fff, #f7f3fb); box-shadow: 0 25px 70px #05091970; touch-action: pan-y; }
.culture-card::before { content: ''; position: absolute; width: 150px; height: 150px; top: -90px; right: -65px; border-radius: 50%; background: #ff4f9112; transition: background .2s; }
.culture-card.card-enter { animation: card-enter .28s cubic-bezier(.2,.8,.2,1) both; }
.culture-card.is-correct { animation: correct-pulse .38s ease both; }
.culture-card.is-correct::before { background: #43c78c42; }
.culture-card.is-wrong { animation: wrong-shake .38s ease both; }
.culture-card.is-skipped { animation: skip-away .42s ease both; }
.culture-kicker { margin: 0 0 12px; color: #8a6a82; font-size: .75rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.culture-card h1 { min-height: 2.65em; margin: 0; font-size: clamp(1.7rem, 7.1vw, 2.5rem); line-height: 1.08; letter-spacing: -.045em; }
.culture-answers { display: grid; flex: 1; gap: 10px; align-content: center; margin: 0; padding: 16px 0; }
.culture-choice { display: grid; grid-template-columns: 38px 1fr; gap: 11px; align-items: center; min-height: 59px; padding: 9px 12px; border: 1px solid #e5dfe9; border-radius: 17px; color: #2b2940; background: #fff; box-shadow: 0 5px 14px #32213f0c; text-align: left; transition: transform .12s, border-color .12s, background .12s; }
.culture-choice:active { transform: scale(.975); }
.culture-choice span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #775469; background: #f7eaf1; font-size: .77rem; font-weight: 900; }
.culture-choice strong { font-size: clamp(.91rem, 3.7vw, 1.02rem); line-height: 1.24; }
.culture-choice.selected-correct { color: #176744; border-color: #5aca9a; background: #e7f8f0; }
.culture-choice.selected-wrong { color: #a3203e; border-color: #ef7990; background: #fff0f3; }
.culture-feedback { position: absolute; z-index: 6; right: 16px; bottom: 16px; left: 16px; display: grid; gap: 2px; padding: 12px 15px; border-radius: 15px; color: #fff; opacity: 0; transform: translateY(12px); pointer-events: none; }
.culture-feedback.good, .culture-feedback.bad { opacity: 1; transform: none; transition: .18s ease; }
.culture-feedback.good { background: #187a53; }.culture-feedback.bad { background: #a82948; }
.culture-feedback strong { font-size: .9rem; }.culture-feedback span { font-size: .72rem; opacity: .88; }
.culture-swipe-hint { margin: 9px 0 0; color: #9da8c5; font-size: .7rem; font-weight: 650; text-align: center; }
.culture-swipe-hint span { margin-right: 4px; font-size: 1rem; }.culture-swipe-hint strong { color: #e591a8; }
.number-answer { display: grid; gap: 10px; }
.number-answer output { display: grid; min-height: 54px; place-items: center; border: 2px solid #eddfeb; border-radius: 16px; color: #442c51; background: #fff; font-size: 1.65rem; font-weight: 900; }
.number-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.number-pad button { min-height: 43px; padding: 6px; border-radius: 12px; color: #392c43; background: #f2eaf4; }
.number-submit { min-height: 47px; color: #fff; background: linear-gradient(135deg, #ff4f91, #d92f73); }
.culture-start, .culture-finish { position: absolute; z-index: 8; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: max(28px, env(safe-area-inset-top)) 27px max(28px, env(safe-area-inset-bottom)); overflow-y: auto; background: radial-gradient(circle at 50% 20%, #69345f 0, transparent 28%), linear-gradient(155deg, #11172c, #202a4b 58%, #15182e); }
.culture-start-icon { display: grid; width: 78px; height: 78px; place-items: center; margin-bottom: 28px; border: 1px solid #ffb6d250; border-radius: 25px; color: #fff; background: linear-gradient(145deg, #ff4f91, #b83781); box-shadow: 0 18px 40px #ff4f9140; font-size: 2.65rem; font-weight: 900; transform: rotate(-5deg); }
.culture-start .eyebrow, .culture-finish .eyebrow { color: #ff9fc3; }
.culture-start h1, .culture-finish h1 { font-size: clamp(3.2rem, 16vw, 5.5rem); letter-spacing: -.075em; }
.culture-start > p:not(.eyebrow), .culture-finish > p:not(.eyebrow) { max-width: 30rem; margin: 18px 0; color: #cbd1e2; line-height: 1.5; }
.culture-start ul { display: grid; gap: 12px; margin: 4px 0 26px; padding: 0; list-style: none; color: #e8ebf4; font-size: .9rem; }
.culture-start li { display: flex; gap: 10px; align-items: center; }.culture-start li span { font-size: 1.25rem; }
.culture-start button, .culture-finish button { width: 100%; min-height: 57px; color: #fff; background: linear-gradient(135deg, #ff4f91, #d92f73); box-shadow: 0 13px 28px #ff4f9133; }
.culture-start > a, .culture-finish > a { margin-top: 18px; color: #aeb8d1; font-size: .82rem; font-weight: 750; text-align: center; text-decoration: none; }
.culture-start .pop-theme-form button { width: auto; min-height: 42px; padding: 0 12px; color: #3b284e; background: #ffe277; box-shadow: none; }
@media (max-height: 720px) { .culture-start { justify-content: flex-start; }.culture-start-icon { width: 58px; height: 58px; margin-bottom: 16px; }.culture-start > p:not(.eyebrow) { margin: 10px 0; }.culture-start ul { gap: 7px; margin-bottom: 14px; }.pop-theme-form { margin-top: 9px; } }
.culture-exit { position: absolute; z-index: 10; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: max(30px, env(safe-area-inset-top)) 26px max(30px, env(safe-area-inset-bottom)); overflow: hidden; color: #fff; background: radial-gradient(circle at 50% 27%, #66355f 0, transparent 34%), linear-gradient(155deg, #10162b, #202a4b 58%, #14172c); text-align: center; }
.culture-exit.summary-pop > * { animation: exit-rise .55s cubic-bezier(.2,.8,.25,1) both; }.culture-exit.summary-pop > *:nth-child(3) { animation-delay: .08s; }.culture-exit.summary-pop > *:nth-child(4) { animation-delay: .14s; }.culture-exit.summary-pop > *:nth-child(5) { animation-delay: .2s; }
.culture-exit .eyebrow { color: #ff9fc3; }.culture-exit h1 { margin-top: 7px; font-size: clamp(2rem, 10vw, 3.4rem); letter-spacing: -.06em; }
.exit-delta { display: grid; min-width: 118px; min-height: 96px; place-items: center; margin: 25px 0 20px; padding: 12px; border: 1px solid #ffffff26; border-radius: 28px; color: #60e3aa; background: #ffffff0e; box-shadow: 0 20px 48px #0004; font-size: 2.8rem; }.exit-delta.is-negative { color: #ff7f98; }
.exit-score-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; width: min(100%, 330px); padding: 16px 18px; border-radius: 20px; background: #ffffff0b; }.exit-score-line span { display: grid; gap: 3px; }.exit-score-line small { color: #aeb8d1; font-size: .67rem; }.exit-score-line strong { font-size: 1.3rem; }.exit-score-line b { color: #ff8fba; }
.culture-exit > p:not(.eyebrow) { max-width: 340px; margin: 20px 0; color: #cbd1e2; font-size: .84rem; line-height: 1.5; }
.exit-home, .exit-continue { width: min(100%, 380px); min-height: 55px; border-radius: 17px; font-weight: 850; }.exit-home { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff4f91, #d92f73); box-shadow: 0 13px 28px #ff4f9133; text-decoration: none; }.exit-continue { margin-top: 10px; color: #c6cce0; background: #ffffff10; }
.exit-burst { position: absolute; inset: 0; pointer-events: none; }.exit-burst i { position: absolute; left: 50%; top: 38%; width: 9px; height: 25px; border-radius: 9px; background: #ff4f91; animation: burst 1.2s ease-out both; }.exit-burst i:nth-child(2) { background: #ffd25d; transform: rotate(70deg); }.exit-burst i:nth-child(3) { background: #65dfad; transform: rotate(140deg); }.exit-burst i:nth-child(4) { background: #8c7df0; transform: rotate(220deg); }.exit-burst i:nth-child(5) { background: #69b8ff; transform: rotate(290deg); }
.culture-promo { display: flex; gap: 16px; align-items: center; padding: 21px; border-radius: 25px; color: #fff; background: linear-gradient(140deg, #171e38, #503263); box-shadow: 0 14px 32px #1b1e422e; text-decoration: none; }
.culture-promo > span { display: grid; flex: 0 0 54px; width: 54px; height: 54px; place-items: center; border-radius: 18px; background: #ff4f91; font-size: 1.7rem; font-weight: 900; }
.culture-promo strong, .culture-promo small { display: block; }.culture-promo strong { font-size: 1.15rem; }.culture-promo small { margin-top: 5px; color: #d6d8e5; line-height: 1.35; }
.culture-promo b { margin-left: auto; font-size: 1.2rem; }
@keyframes card-enter { from { opacity: .25; transform: translateY(18px) scale(.98); } }
@keyframes combo-pop { 50% { transform: scale(1.12) rotate(2deg); } }
@keyframes correct-pulse { 50% { transform: scale(1.018); box-shadow: 0 25px 70px #2dad6a55; } }
@keyframes wrong-shake { 25% { transform: translateX(-7px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
@keyframes skip-away { to { opacity: .2; transform: translateX(34px) rotate(2deg); } }
@keyframes score-fly { 0% { opacity: 0; transform: translateY(8px) scale(.7); } 30% { opacity: 1; transform: translateY(-7px) scale(1.05); } 100% { opacity: 0; transform: translateY(-26px); } }
@keyframes score-good { 50% { color: #54e5a5; transform: scale(1.35); } }
@keyframes score-bad { 35% { color: #ff6682; transform: translateX(-3px) scale(1.25); } 70% { transform: translateX(3px) scale(1.1); } }
@keyframes exit-rise { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes burst { from { opacity: 1; translate: -50% 0; } to { opacity: 0; translate: calc(-50% + 38vw) -32vh; rotate: 260deg; } }
@media (max-height: 700px) {
  .culture-card { min-height: 70dvh; padding: 18px; }.culture-card h1 { font-size: clamp(1.45rem, 6.2vw, 2rem); }.culture-choice { min-height: 49px; }.culture-answers { gap: 7px; padding: 10px 0; }.culture-swipe-hint { display: none; }
  .number-pad button { min-height: 37px; }.number-answer output { min-height: 45px; }
}
@media (max-width: 390px) { .culture-topbar { grid-template-columns: 37px 31px 1fr auto; gap: 5px; }.culture-close { width: 36px; height: 36px; }.culture-music { width: 30px; height: 30px; }.culture-points, .culture-session { min-width: 42px; padding-right: 5px; padding-left: 5px; }.culture-progress-wrap small { font-size: .56rem; }.culture-joker { margin-left: 0; } }
@media (min-width: 700px) { .culture-card { min-height: min(69dvh, 680px); } }
@media (prefers-reduced-motion: reduce) { .culture-card, .culture-combo, .culture-exit > *, .exit-burst i { animation: none !important; }.culture-progress span, .about-modal, .about-sheet, .answer-modal, .answer-sheet, .revision-subject-content, .revision-subject-trigger > b { transition: none; } }

/* Math Rush */
.challenge-card.challenge-math { color: #0e4775; background: #e7f5ff; }.challenge-card.challenge-math strong { color: #0a3d68; text-shadow: 0 1px #fff; }.challenge-card.challenge-math small { color: #3e6680; font-weight: 750; line-height: 1.35; }.challenge-card.challenge-math > span { color: #fff; background: linear-gradient(145deg, #28a7dc, #4b69d8); }
.challenge-card.challenge-cypher { color: #fff; background: radial-gradient(circle at 82% 18%, #2ad8ff55, transparent 27%), linear-gradient(135deg, #0a0d1c, #492076 58%, #ec2b96); }.challenge-card.challenge-cypher > span { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border: 1px solid #ffffff48; border-radius: 15px; color: #15101c; background: linear-gradient(145deg, #ffe37a, #ff9e40); box-shadow: 0 7px 20px #09051255; font-size: .56rem; font-weight: 1000; transform: rotate(-4deg); }.challenge-card.challenge-cypher small { color: #f2e9f7; font-weight: 750; line-height: 1.35; }.cypher-promo { color: #fff; background: radial-gradient(circle at 85% 10%, #28dbff55, transparent 25%), linear-gradient(130deg, #090d1d, #4d247d 58%, #eb329b); }.cypher-promo > span { color: #23142b; background: linear-gradient(145deg, #ffe477, #ff9f43); font-size: .58rem; font-weight: 1000; }
#cypher-preview[hidden], #cypher-challenge[hidden] { display: none !important; }
.challenge-card.challenge-words { color: #fff; background: linear-gradient(135deg, #e84186, #704ac6); }.challenge-card.challenge-words > span { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 14px; color: #63357f; background: #ffe47b; font-size: .8rem; font-weight: 1000; transform: rotate(-4deg); }.challenge-card.challenge-words small { color: #f9edf7; font-weight: 750; line-height: 1.35; }.words-promo { color: #fff; background: linear-gradient(125deg, #e84687, #754bc7); }.words-promo > span { color: #60367b; background: #ffe47a; font-size: .82rem; font-weight: 1000; }
.math-promo { background: linear-gradient(140deg, #102848, #176184); }.math-promo > span { background: linear-gradient(145deg, #29b9d5, #4567d9); }
.challenge-card.challenge-music { color: #fff; background: linear-gradient(135deg, #6844cc, #a34fc2); }.challenge-card.challenge-music > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; color: #4b2c83; background: #ffe67d; box-shadow: 0 7px 16px #39246230; }.challenge-card.challenge-music small { color: #f5eaff; font-weight: 700; line-height: 1.35; }
.music-promo { background: linear-gradient(140deg, #3c245f, #7b3d91); }.music-promo > span { color: #4d2e75; background: linear-gradient(145deg, #fff092, #f5be52); }
#music-preview[hidden], #music-challenge[hidden] { display: none; }

/* Do Ré Play */
.note-rush-body { min-height: 100dvh; overflow: hidden; color: #fff; background: radial-gradient(circle at 50% 12%, #5c3278 0, transparent 31%), linear-gradient(155deg, #160d2d, #281648 58%, #100a25); }
.note-rush-body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .17; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 25px 25px; mask-image: linear-gradient(to bottom, #000, transparent 78%); }
.note-app { position: relative; display: grid; grid-template-rows: auto 5px 1fr; width: min(100%, 620px); height: 100dvh; min-height: 540px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 15px max(11px, env(safe-area-inset-bottom)); isolation: isolate; }
.note-app[hidden] { display: none; }
.note-topbar { display: grid; grid-template-columns: 43px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding-bottom: 11px; }
.note-close { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #ffffff21; border-radius: 14px; color: #fff; background: #ffffff10; font-size: 1.65rem; font-weight: 300; line-height: 1; text-decoration: none; }
.note-level-progress { min-width: 0; }.note-level-progress > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }.note-level-progress strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }.note-level-progress small { flex: none; color: #cab8dd; font-size: .62rem; }
.note-level-bar { height: 5px; margin-top: 6px; overflow: hidden; border-radius: 99px; background: #ffffff18; }.note-level-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffe36e, #ff76ad); transition: width .35s ease; }
.note-score-stack { display: flex; gap: 7px; }.note-score-stack > div { position: relative; display: grid; min-width: 49px; height: 43px; align-content: center; justify-items: center; padding: 4px 8px; border: 1px solid #ffffff20; border-radius: 13px; background: #ffffff0d; }.note-score-stack small { color: #c7b5db; font-size: .52rem; text-transform: uppercase; }.note-score-stack strong { font-size: .9rem; }.note-score-stack span { color: #ffe36e; font-size: .72rem; }
.note-timer { overflow: hidden; border-radius: 99px; background: #ffffff15; }.note-timer span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffcc56, #ff68aa); transform-origin: left; }.note-timer span.is-urgent { background: #ff5374; }
.note-stage { display: flex; min-height: 0; flex-direction: column; padding: 12px 0 3px; }
.note-stage[hidden], .note-start[hidden], .note-exit[hidden], .note-lesson[hidden], .note-locked[hidden], .note-listen[hidden], .note-streak[hidden], .note-flash[hidden] { display: none; }
.note-meta { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; margin-bottom: 8px; color: #cbb9de; font-size: .65rem; font-weight: 800; text-transform: uppercase; }.note-meta > span:last-child { text-align: right; }.note-meta button { min-height: 30px; margin: 0; padding: 5px 10px; border: 1px solid #ffffff24; border-radius: 99px; color: #ffe176; background: #ffffff0c; font-size: .58rem; font-weight: 900; text-transform: uppercase; }
.note-streak, .note-flash { position: absolute; z-index: 6; top: 82px; padding: 7px 10px; border-radius: 11px; font-size: .68rem; font-weight: 900; animation: note-pop .25s ease both; }.note-streak { left: 21px; color: #4e316a; background: #ffe47a; }.note-flash { right: 21px; color: #fff; background: #e83f87; box-shadow: 0 7px 19px #e83f8750; }
.note-card { position: relative; display: flex; min-height: 0; flex: 1; flex-direction: column; align-items: center; padding: clamp(17px, 3.3dvh, 26px) 17px 15px; overflow: hidden; border: 1px solid #ffffff75; border-radius: 27px; color: #2b1d43; background: radial-gradient(circle at 100% 0, #fff1bc 0, transparent 34%), linear-gradient(150deg, #fff, #f7f0ff); box-shadow: 0 22px 55px #05020f59; transition: border-color .18s, transform .18s; }
.note-card.card-enter { animation: note-card-in .28s cubic-bezier(.2,.82,.25,1); }.note-card.is-correct { border-color: #58d39b; }.note-card.is-wrong { border-color: #ee6b86; animation: note-shake .28s ease; }.note-card.is-retry { border-color: #f0b53c; box-shadow: 0 0 0 3px #f0b53c28, 0 22px 55px #05020f59; }
.note-card > p:first-child { margin: 0; color: #846d91; font-size: clamp(.7rem, 2.8vw, .82rem); font-weight: 760; text-align: center; }
.note-card h1 { margin: 7px 0 4px; font-size: clamp(1.55rem, 7vw, 2.35rem); letter-spacing: -.045em; line-height: 1.06; text-align: center; }
.note-visual { display: grid; width: 100%; min-height: 58px; flex: 1; place-items: center; margin: 3px 0 7px; }
.note-sequence { display: flex; max-width: 100%; gap: 4px; justify-content: center; flex-wrap: wrap; }.note-sequence span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: #67408c; background: #eee3fa; font-size: .68rem; font-weight: 900; }
.note-memory-step { display: flex; align-items: center; gap: 18px; color: #6c4a88; }.note-memory-step i { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(145deg, #7650d4, #ed4387); font-size: 1.5rem; font-style: normal; box-shadow: 0 10px 22px #673b9130; }.note-memory-step i:last-child { transform: translateY(-18px); }.note-memory-step span { font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.music-staff { display: block; width: min(100%, 330px); height: min(21dvh, 155px); overflow: visible; }.staff-lines line, .staff-ledger { stroke: #4b3d59; stroke-width: 2; }.staff-clef { fill: #4b2e68; font-family: serif; font-size: 82px; }.staff-note { fill: #e84083; }.staff-stem { stroke: #e84083; stroke-width: 4; stroke-linecap: round; }
.sound-waves { display: flex; height: 72px; gap: 7px; align-items: center; }.sound-waves i { width: 8px; height: 24px; border-radius: 99px; background: linear-gradient(#ed438c, #7750d8); animation: sound-wave .8s ease-in-out infinite alternate; }.sound-waves i:nth-child(2), .sound-waves i:nth-child(4) { height: 50px; animation-delay: -.3s; }.sound-waves i:nth-child(3) { height: 68px; animation-delay: -.55s; }
.mystery-note { display: grid; width: 82px; height: 82px; place-items: center; border: 2px solid #d9c4eb; border-radius: 27px; color: #7a4fa0; background: #f2e9fa; box-shadow: 0 11px 25px #5a357225; font-size: 2.7rem; font-weight: 950; transform: rotate(-4deg); }
.note-listen { display: flex; width: min(100%, 210px); min-height: 43px; gap: 8px; align-items: center; justify-content: center; margin: -1px 0 10px; padding: 8px 15px; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #7650d4, #a248b3); box-shadow: 0 8px 18px #74469c35; font-size: .78rem; }.note-listen span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #613c91; background: #fff; font-size: .62rem; }.note-listen.is-playing { animation: listen-pulse .55s ease infinite alternate; }
.note-answers { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }.note-answers > button { min-height: 49px; margin: 0; padding: 10px; border: 1px solid #e3d8ed; border-radius: 15px; color: #4e3564; background: #fff; box-shadow: 0 6px 14px #2d183c0d; font-size: .82rem; font-weight: 900; }.note-answers > button:active { transform: scale(.97); }.note-answers > button.is-missed { color: #a93452; border-color: #ed9caf; background: #fff0f3; }.note-answers > button.is-solution { color: #126345; border-color: #6ccfa5; background: #e7f9f1; box-shadow: 0 0 0 3px #48b98720; }
.note-answers.is-piano { display: block; }.piano-board { position: relative; display: grid; height: clamp(104px, 19dvh, 145px); grid-template-columns: repeat(7, 1fr); padding: 0 3px 3px; border-radius: 8px 8px 15px 15px; background: #3a2c47; box-shadow: 0 9px 20px #2b17372b; }.piano-key { position: relative; min-width: 0; min-height: 0; margin: 0 1px; padding: 0; border: 0; border-radius: 2px 2px 9px 9px; color: #8f8199; background: linear-gradient(#fff, #f4eef7); box-shadow: inset 0 -5px 0 #e2d8e8; }.piano-key span { position: absolute; right: 0; bottom: 8px; left: 0; font-size: .58rem; }.piano-key.is-missed { background: #ffdce5; }.piano-key.is-solution { background: #cbf4df; box-shadow: inset 0 -5px 0 #80d8ab; }.black-key { position: absolute; z-index: 2; top: 0; width: 8.5%; height: 58%; border-radius: 0 0 7px 7px; background: linear-gradient(90deg, #17121e, #42344e, #17121e); box-shadow: 0 5px 8px #150d1e55; pointer-events: none; }.black-1 { left: 10%; }.black-2 { left: 24.4%; }.black-4 { left: 52.8%; }.black-5 { left: 67.1%; }.black-6 { left: 81.5%; }
.piano-board.is-guided .piano-key span { color: #67457f; font-size: .54rem; font-weight: 900; }
.note-feedback { position: absolute; z-index: 7; right: 14px; bottom: 13px; left: 14px; display: grid; gap: 2px; padding: 11px 14px; border-radius: 14px; color: #fff; opacity: 0; transform: translateY(10px); pointer-events: none; }.note-feedback.good, .note-feedback.bad, .note-feedback.retry { opacity: 1; transform: none; transition: .18s ease; }.note-feedback.good { background: #187a58; }.note-feedback.bad { background: #a52e50; }.note-feedback.retry { background: #ad7519; }.note-feedback strong { font-size: .82rem; }.note-feedback span { font-size: .67rem; line-height: 1.35; opacity: .94; }
.note-hint { margin: 8px 4px 0; color: #cbbbda; font-size: .64rem; line-height: 1.35; text-align: center; }
.note-start, .note-exit { position: absolute; z-index: 10; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: max(27px, env(safe-area-inset-top)) 27px max(27px, env(safe-area-inset-bottom)); overflow: hidden; background: radial-gradient(circle at 50% 19%, #673985 0, transparent 32%), linear-gradient(155deg, #160d2d, #281648 60%, #100a25); }
.note-locked { position: absolute; z-index: 30; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; color: #fff; background: radial-gradient(circle at 50% 20%, #673985 0, transparent 34%), linear-gradient(155deg, #160d2d, #281648 60%, #100a25); text-align: center; }.note-locked > span { font-size: 3.4rem; }.note-locked .eyebrow { margin: 12px 0 4px; color: #ffd968; }.note-locked h1 { margin: 0; font-size: clamp(2.6rem, 12vw, 4.5rem); letter-spacing: -.065em; }.note-locked > p:not(.eyebrow) { max-width: 390px; color: #d6c7e3; line-height: 1.55; }.note-locked a { margin-top: 16px; padding: 13px 18px; border-radius: 15px; color: #3f265b; background: #ffe274; text-decoration: none; font-weight: 900; }
.note-lesson { position: absolute; z-index: 11; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 9px; padding: max(25px, env(safe-area-inset-top)) 22px max(18px, env(safe-area-inset-bottom)); overflow: hidden; color: #2c1c41; background: radial-gradient(circle at 100% 0, #fff0b3 0, transparent 31%), linear-gradient(155deg, #fff, #f4ecff); animation: note-card-in .3s cubic-bezier(.2,.82,.25,1); }.note-lesson-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 4px 2px 12px; }.note-lesson .eyebrow { margin: 0 0 8px; color: #a23878; }.note-lesson h1 { max-width: 520px; margin: 0; font-size: clamp(2rem, 9vw, 3.3rem); letter-spacing: -.055em; line-height: .98; }.note-lesson-lead { margin: 16px 0; color: #695776; font-size: .92rem; line-height: 1.55; }.note-lesson-demo { margin: 18px 0; padding: 17px 13px; border: 1px solid #eadcf3; border-radius: 22px; background: #fff; box-shadow: 0 13px 30px #35204412; }.note-demo-label { margin: 0 0 14px; color: #7b6687; font-size: .68rem; font-weight: 850; text-align: center; text-transform: uppercase; }.note-lesson-rule { display: grid; gap: 4px; padding: 14px 16px; border-radius: 17px; color: #fff; background: linear-gradient(135deg, #523174, #8e3b91); }.note-lesson-rule strong { color: #ffe37a; font-size: .72rem; text-transform: uppercase; }.note-lesson-rule span { font-size: .82rem; line-height: 1.45; }.note-lesson-tip { margin: 13px 3px 0; color: #765f82; font-size: .75rem; line-height: 1.45; }.note-lesson > button { width: 100%; min-height: 52px; margin: 0; border: 0; border-radius: 15px; font-size: .8rem; font-weight: 900; }.note-lesson-action, #note-lesson-action { color: #3e2855; background: linear-gradient(135deg, #ffe274, #f6b34e); box-shadow: 0 10px 22px #d9a3382b; }.note-lesson-back { min-height: 41px !important; color: #725d80; background: transparent; }.note-learning-scale { display: flex; align-items: flex-end; justify-content: center; gap: 4px; }.note-learning-scale button { display: grid; width: min(12.5vw, 48px); min-width: 35px; height: calc(50px + var(--step) * 6px); place-items: end center; padding: 7px 2px; border: 0; border-radius: 10px 10px 6px 6px; color: #fff; background: linear-gradient(180deg, #e94289, #7551d3); }.note-learning-scale span { font-size: .62rem; font-weight: 950; }.note-learning-scale small { opacity: .65; font-size: .5rem; }.lesson-piano { height: 132px; }.lesson-piano .piano-key span { color: #755583; font-size: .55rem; font-weight: 900; }.lesson-piano .piano-key.is-anchor { background: #ffd7e7; box-shadow: inset 0 -5px 0 #f390b7; }.lesson-staff-wrap .music-staff { height: 125px; }.lesson-staff-notes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }.lesson-staff-notes button { min-width: 0; min-height: 34px; margin: 0; padding: 4px; border: 0; border-radius: 9px; color: #705184; background: #f1e8f8; font-size: .6rem; font-weight: 900; }.lesson-staff-notes button.is-active { color: #fff; background: #df3e84; }.note-pitch-demo, .note-ear-demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }.note-pitch-demo button, .note-ear-demo button { min-width: 0; min-height: 64px; margin: 0; padding: 8px 4px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #7650d4, #9a429d); font-size: .67rem; font-weight: 900; }.note-pitch-demo button:nth-child(1) { transform: translateY(10px); }.note-pitch-demo button:nth-child(3) { transform: translateY(-10px); }.note-pitch-demo small { display: block; margin-top: 4px; font-size: .47rem; font-weight: 600; opacity: .72; }
.note-start-icon { display: grid; width: 78px; height: 78px; place-items: center; margin-bottom: 25px; border: 1px solid #fff2a45c; border-radius: 25px; color: #4c2d70; background: linear-gradient(145deg, #fff08a, #f7b94d); box-shadow: 0 18px 40px #e8af3c35; font-size: 2.5rem; font-weight: 900; transform: rotate(-5deg); }.note-start .eyebrow, .note-exit .eyebrow { color: #ffd968; }.note-start h1, .note-exit h1 { margin: 0; font-size: clamp(3rem, 15vw, 5.2rem); letter-spacing: -.075em; }.note-start > p:not(.eyebrow):not(.note-headphones) { max-width: 31rem; margin: 16px 0; color: #d6c7e3; line-height: 1.5; }.note-start ul { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; color: #f0e8f5; font-size: .84rem; list-style: none; }.note-start li { display: flex; gap: 10px; align-items: center; }.note-start li > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 9px; color: #513273; background: #ffe277; font-weight: 950; }.note-headphones { margin: 0 0 18px; color: #bda9ce; font-size: .7rem; }.note-start > button { width: 100%; min-height: 56px; color: #38204f; background: linear-gradient(135deg, #ffe271, #f4ae4b); box-shadow: 0 13px 28px #e0a23a32; }.note-start > a { margin-top: 16px; color: #bcaaca; font-size: .78rem; font-weight: 750; text-align: center; text-decoration: none; }
.note-exit { align-items: center; text-align: center; }.note-exit > *:not(.note-summary-orbit) { position: relative; z-index: 2; }.note-exit-delta { display: block; margin: 18px 0; font-size: clamp(3.5rem, 18vw, 6rem); letter-spacing: -.07em; }.note-exit-delta.is-positive { color: #ffe271; }.note-exit-delta.is-negative { color: #ff739c; }.note-summary-stats { display: grid; width: 100%; grid-template-columns: repeat(3, 1fr); gap: 8px; }.note-summary-stats span { padding: 12px 6px; border: 1px solid #ffffff18; border-radius: 16px; background: #ffffff0b; }.note-summary-stats small, .note-summary-stats strong { display: block; }.note-summary-stats small { min-height: 27px; color: #baa9c9; font-size: .59rem; }.note-summary-stats strong { margin-top: 4px; font-size: 1.25rem; }.note-total-line { display: flex; width: 100%; align-items: center; justify-content: center; gap: 20px; margin: 15px 0 18px; }.note-total-line span { display: grid; }.note-total-line small { color: #b8a7c8; font-size: .58rem; }.note-total-line strong { font-size: 1.25rem; }.note-total-line b { color: #ffd968; }.note-summary-home, .note-summary-continue { display: grid; width: 100%; min-height: 51px; place-items: center; border-radius: 15px; font-size: .82rem; font-weight: 900; text-decoration: none; }.note-summary-home { color: #3f265b; background: #ffe274; }.note-summary-continue { margin-top: 9px; border: 1px solid #ffffff20; color: #fff; background: #ffffff0c; }.note-summary-orbit { position: absolute; inset: 0; pointer-events: none; }.note-summary-orbit i { position: absolute; color: #ffe271; font-size: 2rem; font-style: normal; opacity: .35; animation: note-float 3s ease-in-out infinite; }.note-summary-orbit i:nth-child(1) { top: 15%; left: 10%; }.note-summary-orbit i:nth-child(2) { top: 20%; right: 9%; animation-delay: -.8s; }.note-summary-orbit i:nth-child(3) { right: 16%; bottom: 14%; animation-delay: -1.5s; }
@keyframes note-card-in { from { opacity: .35; transform: translateX(16px) scale(.985); } }
@keyframes note-shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@keyframes note-pop { from { opacity: 0; transform: translateY(-5px) scale(.9); } }
@keyframes sound-wave { to { transform: scaleY(.45); opacity: .55; } }
@keyframes listen-pulse { to { transform: scale(1.025); box-shadow: 0 0 0 6px #8b54b720; } }
@keyframes note-float { 50% { transform: translateY(-12px) rotate(8deg); } }
@media (max-height: 630px) { .note-card { padding-top: 13px; }.note-card h1 { margin-top: 4px; }.note-visual { min-height: 44px; margin: 0 0 4px; }.music-staff { height: 110px; }.mystery-note { width: 62px; height: 62px; border-radius: 20px; font-size: 2rem; }.sound-waves { height: 50px; }.note-answers > button { min-height: 43px; }.note-hint { display: none; }.note-start-icon { width: 62px; height: 62px; margin-bottom: 16px; }.note-start > p:not(.eyebrow):not(.note-headphones) { margin: 10px 0; }.note-start ul { gap: 6px; }.note-headphones { margin-bottom: 10px; } }
@media (prefers-reduced-motion: reduce) { .note-card, .note-streak, .note-flash, .sound-waves i, .note-listen, .note-summary-orbit i { animation: none !important; }.note-level-bar span { transition: none; } }
.math-rush-body { min-height: 100dvh; overflow: hidden; color: #fff; background: radial-gradient(circle at 12% 8%, #176b8e 0, transparent 29%), radial-gradient(circle at 88% 82%, #243f8a 0, transparent 30%), linear-gradient(155deg, #0a1832, #13284f 55%, #08162d); overscroll-behavior: none; }
.math-rush-body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .16; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, #000, transparent 82%); }
.rush-app { position: relative; display: grid; grid-template-rows: auto 5px 1fr; width: min(100%, 620px); height: 100dvh; min-height: 520px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 15px max(11px, env(safe-area-inset-bottom)); isolation: isolate; }
.rush-topbar { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; min-height: 55px; }
.rush-close { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid #ffffff22; border-radius: 50%; color: #fff; background: #ffffff0e; font-size: 1.7rem; line-height: 1; text-decoration: none; }
.rush-level-progress { display: grid; gap: 5px; min-width: 0; }.rush-level-progress > div:first-child { display: flex; gap: 7px; align-items: baseline; justify-content: space-between; }.rush-level-progress strong { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }.rush-level-progress small { flex: 0 0 auto; color: #9fb7d5; font-size: .58rem; font-weight: 800; }
.rush-level-bar { height: 6px; overflow: hidden; border-radius: 99px; background: #ffffff17; }.rush-level-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #25d4d0, #55a8ff); transition: width .3s ease; }
.rush-score-stack { display: flex; gap: 5px; }.rush-session, .rush-points { position: relative; display: grid; min-width: 48px; justify-items: center; padding: 6px 8px; border-radius: 13px; background: #ffffff0e; }.rush-session small { color: #9fb7d5; font-size: .5rem; font-weight: 850; line-height: 1; text-transform: uppercase; }.rush-session strong, .rush-points strong { font-size: .84rem; }.rush-points { display: flex; gap: 4px; align-items: center; color: #ffd66b; }
.rush-timer { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: #ffffff12; }.rush-timer span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #25d4d0, #ffd45f); will-change: width; }.rush-timer span.is-urgent { background: #ff526d; box-shadow: 0 0 13px #ff526d; }
.rush-stage { position: relative; display: flex; min-height: 0; flex-direction: column; justify-content: center; padding: 10px 0 0; }.rush-stage[hidden], .rush-start[hidden], .rush-exit[hidden] { display: none; }
.rush-meta { display: flex; gap: 6px; align-items: center; margin: 0 2px 8px; }.rush-meta span { padding: 5px 8px; border: 1px solid #ffffff17; border-radius: 99px; color: #d8e6f5; background: #ffffff0d; font-size: .61rem; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }.rush-meta .rush-boss { color: #182c4a; border-color: #ffd969; background: #ffd969; }
.rush-streak { position: absolute; z-index: 5; top: 7px; right: 2px; padding: 7px 10px; border-radius: 99px; color: #54260e; background: #ffb64c; box-shadow: 0 8px 20px #ff9b3040; font-size: .68rem; font-weight: 900; animation: combo-pop .3s ease both; }
.rush-flash { position: absolute; z-index: 8; top: 54px; left: 50%; padding: 9px 14px; border-radius: 99px; color: #44320a; background: linear-gradient(135deg, #fff29b, #ffc941); box-shadow: 0 12px 28px #ffc94258; font-size: .76rem; font-weight: 900; translate: -50% 0; }.rush-flash.flash-pop { animation: rush-flash .62s cubic-bezier(.2,.8,.2,1) both; }
.rush-card { position: relative; display: flex; min-height: min(70dvh, 660px); max-height: 720px; flex-direction: column; overflow: hidden; padding: clamp(18px, 4.8vw, 28px); border: 1px solid #ffffff18; border-radius: 31px; color: #17233a; background: linear-gradient(165deg, #fff, #edf7fb); box-shadow: 0 25px 70px #020a1f78; }
.rush-card::before { content: ''; position: absolute; width: 170px; height: 170px; top: -105px; right: -75px; border-radius: 50%; background: #34b7d81b; }.rush-card.card-enter { animation: card-enter .25s cubic-bezier(.2,.8,.2,1) both; }.rush-card.is-correct { animation: correct-pulse .35s ease both; }.rush-card.is-wrong { animation: wrong-shake .38s ease both; }
.rush-card.is-retry { border-color: #f1bf50; box-shadow: 0 25px 70px #020a1f78, 0 0 0 3px #f3c65b26; }.rush-card.is-retry::before { background: #f5c65b2b; }.rush-card.is-retry .rush-answer { border-color: #e6bd61; background: #fffaf0; }
.rush-card > p:first-child { margin: 0; color: #638095; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }.rush-card h1 { display: grid; min-height: 1.6em; place-items: center; margin: 10px 0 8px; color: #13264a; font-size: clamp(2.35rem, 12vw, 4.8rem); line-height: 1; letter-spacing: -.06em; text-align: center; }
.rush-answer { display: grid; min-height: 58px; place-items: center; margin-bottom: 11px; border: 2px solid #d8e7ee; border-radius: 17px; color: #9aaab6; background: #fff; box-shadow: inset 0 2px 8px #1a3f5710; font-size: 1.8rem; font-weight: 950; }.rush-answer.has-value { color: #173c67; border-color: #64bad6; }
.rush-keypad { display: grid; flex: 1; grid-template-columns: repeat(3, 1fr); gap: 7px; align-content: center; }.rush-keypad button { min-height: 45px; padding: 7px; border: 1px solid #d9e6eb; border-radius: 13px; color: #17304e; background: #f5fbfd; box-shadow: 0 4px 11px #1739500b; font-size: 1.05rem; font-weight: 900; transition: transform .1s ease, background .1s ease; }.rush-keypad button:active { background: #dff3f8; transform: scale(.96); }.rush-keypad .rush-key-special { color: #42677b; background: #e8f3f6; }.rush-keypad .rush-delete { color: #8b5368; background: #f8eaf0; }.rush-keypad .rush-submit { grid-column: span 2; color: #fff; border: 0; background: linear-gradient(135deg, #169cb9, #4665d8); box-shadow: 0 8px 18px #326abd35; font-size: .84rem; }
.rush-feedback { position: absolute; z-index: 7; right: 16px; bottom: 16px; left: 16px; display: grid; gap: 2px; padding: 12px 15px; border-radius: 15px; color: #fff; opacity: 0; transform: translateY(12px); pointer-events: none; }.rush-feedback.good, .rush-feedback.bad { opacity: 1; transform: none; transition: .18s ease; }.rush-feedback.good { background: #137a61; }.rush-feedback.bad { background: #a62d4b; }.rush-feedback strong { font-size: .88rem; }.rush-feedback span { font-size: .7rem; opacity: .9; }
.rush-speed-hint { margin: 8px 3px 0; color: #a8bdd4; font-size: .65rem; font-weight: 700; text-align: center; }
.rush-start, .rush-exit { position: absolute; z-index: 10; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: max(27px, env(safe-area-inset-top)) 27px max(27px, env(safe-area-inset-bottom)); overflow: hidden; background: radial-gradient(circle at 52% 19%, #176c8d 0, transparent 31%), linear-gradient(155deg, #09172f, #142b52 60%, #08152c); }
.rush-start-icon { display: grid; width: 78px; height: 78px; place-items: center; margin-bottom: 26px; border: 1px solid #9be8f853; border-radius: 25px; color: #fff; background: linear-gradient(145deg, #28bed1, #4363d7); box-shadow: 0 18px 40px #1cbdd248; font-size: 2.6rem; font-weight: 900; transform: rotate(-5deg); }.rush-start .eyebrow, .rush-exit .eyebrow { color: #70e3ed; }.rush-start h1, .rush-exit h1 { margin: 0; font-size: clamp(3rem, 15vw, 5.3rem); letter-spacing: -.075em; }.rush-start > p:not(.eyebrow) { max-width: 31rem; margin: 17px 0; color: #c6d4e4; line-height: 1.5; }.rush-start ul { display: grid; gap: 11px; margin: 2px 0 25px; padding: 0; list-style: none; color: #e5eef7; font-size: .88rem; }.rush-start li { display: flex; gap: 10px; align-items: center; }.rush-start li > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 9px; color: #15364a; background: #76e3e4; font-weight: 950; }.rush-start button { width: 100%; min-height: 57px; color: #fff; background: linear-gradient(135deg, #20b8ca, #4462d5); box-shadow: 0 13px 28px #279fc43b; }.rush-start > a { margin-top: 17px; color: #a6bdd3; font-size: .8rem; font-weight: 750; text-align: center; text-decoration: none; }
.rush-exit { align-items: center; text-align: center; }.rush-exit.summary-pop > *:not(.rush-summary-orbit) { animation: exit-rise .52s cubic-bezier(.2,.8,.25,1) both; }.rush-exit h1 { margin-top: 6px; font-size: clamp(2.2rem, 11vw, 3.7rem); }.rush-exit-delta { display: grid; min-width: 112px; min-height: 91px; place-items: center; margin: 20px 0 15px; border: 1px solid #ffffff25; border-radius: 27px; color: #61e7c4; background: #ffffff0e; box-shadow: 0 18px 45px #0004; font-size: 2.65rem; }.rush-exit-delta.is-negative { color: #ff819a; }
.rush-summary-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; width: min(100%, 380px); }.rush-summary-stats span, .rush-total-line span { display: grid; gap: 3px; padding: 11px 8px; border-radius: 15px; background: #ffffff0d; }.rush-summary-stats small, .rush-total-line small { color: #9fb7d5; font-size: .57rem; font-weight: 750; }.rush-summary-stats strong { font-size: 1.15rem; }.rush-total-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; width: min(100%, 310px); margin: 10px 0 18px; }.rush-total-line strong { font-size: 1.18rem; }.rush-total-line b { color: #65dde4; }
.rush-summary-home, .rush-summary-continue { width: min(100%, 380px); min-height: 53px; border-radius: 16px; font-weight: 850; }.rush-summary-home { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #20b8ca, #4462d5); box-shadow: 0 13px 28px #279fc43b; text-decoration: none; }.rush-summary-continue { margin-top: 9px; color: #c4d3e5; background: #ffffff10; }
.rush-summary-orbit { position: absolute; inset: 0; pointer-events: none; }.rush-summary-orbit i { position: absolute; color: #73e5e7; font-size: 1.5rem; font-style: normal; font-weight: 900; opacity: .32; animation: rush-orbit 4s ease-in-out infinite; }.rush-summary-orbit i:nth-child(1) { top: 14%; left: 13%; }.rush-summary-orbit i:nth-child(2) { top: 20%; right: 14%; animation-delay: -.9s; }.rush-summary-orbit i:nth-child(3) { right: 10%; bottom: 17%; animation-delay: -1.7s; }.rush-summary-orbit i:nth-child(4) { bottom: 14%; left: 12%; animation-delay: -2.5s; }
@keyframes rush-flash { 0% { opacity: 0; transform: translateY(12px) scale(.7); } 45% { opacity: 1; transform: translateY(-5px) scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes rush-orbit { 50% { transform: translateY(-12px) rotate(18deg) scale(1.2); opacity: .7; } }
@media (max-height: 700px) { .rush-card { min-height: 70dvh; padding: 15px 18px; }.rush-card h1 { margin: 5px 0; font-size: clamp(2rem, 9vw, 3rem); }.rush-answer { min-height: 45px; margin-bottom: 7px; }.rush-keypad { gap: 5px; }.rush-keypad button { min-height: 36px; }.rush-speed-hint { display: none; } }
@media (max-width: 390px) { .rush-topbar { grid-template-columns: 36px 1fr auto; gap: 7px; }.rush-close { width: 35px; height: 35px; }.rush-session, .rush-points { min-width: 43px; padding-right: 6px; padding-left: 6px; }.rush-card { padding-right: 17px; padding-left: 17px; } }
@media (min-width: 700px) { .rush-card { min-height: min(71dvh, 680px); } }
@media (prefers-reduced-motion: reduce) { .rush-card, .rush-flash, .rush-streak, .rush-exit > *, .rush-summary-orbit i { animation: none !important; }.rush-level-bar span { transition: none; } }

/* Suivi parental des révisions d’Oscar */
.oscar-revision-monitor { display: grid; gap: 13px; padding: 19px; border: 1px solid #ffbed5; border-radius: 24px; background: linear-gradient(145deg, #fff 0%, #fff1f7 54%, #f2edff 100%); box-shadow: 0 14px 34px #6f477515; }
.oscar-revision-monitor[hidden] { display: none; }
.oscar-monitor-head { display: flex; align-items: center; justify-content: space-between; }
.oscar-monitor-head h2 { margin: 3px 0 0; font-size: 1.35rem; letter-spacing: -.035em; }
.oscar-monitor-toggle { display: flex; gap: 7px; align-items: center; padding: 8px 10px; border: 1px solid #efcada; border-radius: 12px; color: #c82c6a; background: #fff8fb; font-size: .65rem; font-weight: 900; }.oscar-monitor-toggle b { font-size: 1rem; transition: transform .2s ease; }.oscar-monitor-toggle[aria-expanded="true"] b { transform: rotate(180deg); }
.oscar-monitor-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.oscar-monitor-stats span { display: grid; gap: 2px; padding: 12px 8px; border: 1px solid #ffffffb8; border-radius: 17px; background: #ffffffb3; text-align: center; }
.oscar-monitor-stats strong { color: #241941; font-size: 1.35rem; }
.oscar-monitor-stats small { color: #746c86; font-size: .62rem; font-weight: 750; line-height: 1.15; }
.oscar-monitor-today { margin: -3px 0 0; padding: 9px 11px; border-radius: 13px; color: #713859; background: #ffffffa8; font-size: .65rem; font-weight: 800; line-height: 1.35; }
.oscar-monitor-progress { height: 8px; overflow: hidden; border-radius: 99px; background: #e8dce9; }
.oscar-monitor-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff4f91, #8e52dc); transition: width .45s cubic-bezier(.2,.8,.2,1); }
.oscar-monitor-status { margin: -6px 0 0; color: #746c86; font-size: .72rem; font-weight: 700; }
.oscar-monitor-list { display: grid; gap: 8px; }
.oscar-monitor-list > a { display: grid; grid-template-columns: 40px 1fr 18px; gap: 10px; align-items: center; padding: 11px; border: 1px solid #eadde9; border-radius: 17px; color: #241941; background: #fff; text-decoration: none; }
.oscar-monitor-list > a > span:first-child { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: #f7eff8; font-size: 1.15rem; }
.oscar-monitor-list > a > span:nth-child(2) { display: grid; min-width: 0; }
.oscar-monitor-list small { color: #9b6c88; font-size: .58rem; font-weight: 850; text-transform: uppercase; }
.oscar-monitor-list strong { overflow: hidden; font-size: .79rem; text-overflow: ellipsis; white-space: nowrap; }
.oscar-monitor-list em { margin-top: 2px; color: #736a80; font-size: .64rem; font-style: normal; }
.oscar-monitor-list i { display: block; height: 4px; margin-top: 6px; overflow: hidden; border-radius: 99px; background: #eee6ef; }
.oscar-monitor-list i b { display: block; height: 100%; border-radius: inherit; background: #ff4f91; }
.oscar-monitor-list > a > b { color: #d92e73; font-size: 1.35rem; }
.oscar-monitor-all { display: flex; align-items: center; justify-content: space-between; color: #cf2a6c; font-size: .75rem; font-weight: 850; text-decoration: none; }
.oscar-monitor-details { display: grid; gap: 12px; padding-top: 3px; animation: oscar-details-in .24s ease both; }.oscar-monitor-details[hidden] { display: none; }
@keyframes oscar-details-in { from { opacity: 0; transform: translateY(-7px); } }
.oscar-monitor-complete { display: grid; justify-items: center; gap: 4px; padding: 18px; border-radius: 18px; background: #fff; text-align: center; }
.oscar-monitor-complete span { font-size: 1.8rem; }.oscar-monitor-complete small { color: #756d82; font-size: .68rem; }
@media (max-width: 390px) { .oscar-revision-monitor { padding: 16px; }.oscar-monitor-stats small { font-size: .56rem; }.oscar-monitor-toggle span { display: none; }.oscar-monitor-toggle { width: 38px; height: 38px; justify-content: center; padding: 0; } }

/* Récompenses et fidélité quotidienne */
.reward-hub { display: grid; gap: 13px; padding: 19px; border: 1px solid #f2d6e3; border-radius: 27px; background: linear-gradient(145deg, #fff 0%, #fff5f9 52%, #f5efff 100%); box-shadow: 0 14px 36px #583a6714; }
.reward-hub-head { display: flex; gap: 12px; align-items: flex-end; justify-content: space-between; }
.reward-hub-head h2 { margin: 3px 0 0; font-size: 1.35rem; letter-spacing: -.04em; }
.reward-hub-head button { display: flex; gap: 7px; align-items: center; padding: 7px 9px; border: 0; color: #d72e73; background: transparent; font-size: .7rem; font-weight: 900; }
.reward-hub-head button span { font-size: 1.1rem; }
.reward-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.reward-stat { display: grid; min-width: 0; grid-template-columns: 41px 1fr; gap: 9px; align-items: center; padding: 13px 11px; border-radius: 19px; }
.reward-stat > span { display: grid; width: 41px; height: 41px; place-items: center; border-radius: 14px; font-size: 1.25rem; }
.reward-stat > div { display: grid; min-width: 0; }
.reward-stat small { color: #82758c; font-size: .57rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.reward-stat strong { margin-top: 2px; color: #2b2040; font-size: .8rem; line-height: 1.2; }
.reward-stat strong b { font-size: 1.25rem; }
.reward-stat em { margin-top: 4px; overflow: hidden; color: #746a80; font-size: .57rem; font-style: normal; line-height: 1.25; }
.reward-jokers { background: #fff2c9; }.reward-jokers > span { background: #ffe486; box-shadow: 0 7px 18px #d6a92a2c; }
.reward-streak { background: #f2eaff; }.reward-streak > span { background: #ddcbff; box-shadow: 0 7px 18px #7147bd20; }
.streak-track { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.streak-track span { position: relative; display: grid; justify-items: center; gap: 3px; color: #a79dad; }
.streak-track span:not(:last-child)::after { content: ''; position: absolute; z-index: 0; top: 11px; left: 65%; width: 72%; height: 3px; border-radius: 9px; background: #eadfec; }
.streak-track span.is-done:not(:last-child)::after { background: linear-gradient(90deg, #ff4f91, #9b5de5); }
.streak-track i { position: relative; z-index: 1; display: grid; width: 24px; height: 24px; place-items: center; border: 2px solid #e4d9e7; border-radius: 50%; background: #fff; font-size: .55rem; font-style: normal; font-weight: 950; }
.streak-track .is-done i { color: #fff; border-color: #ff4f91; background: linear-gradient(135deg, #ff4f91, #9453da); box-shadow: 0 5px 12px #e7458c38; }
.streak-track small { font-size: .47rem; font-weight: 850; }
.reward-card-promise { display: grid; grid-template-columns: 39px 1fr; gap: 10px; align-items: center; padding: 11px 12px; border: 1px dashed #e6bed0; border-radius: 17px; background: #fff9fc; }
.reward-card-promise > span { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 12px; background: #ffe3ee; font-size: 1.2rem; }
.reward-card-promise div { display: grid; gap: 2px; }.reward-card-promise strong { color: #3b2849; font-size: .75rem; }.reward-card-promise small { color: #806f88; font-size: .62rem; line-height: 1.3; }
.reward-card-promise.is-unlocked { border-style: solid; border-color: #b9e2cf; background: #effaf5; }.reward-card-promise.is-unlocked > span { background: #caf0dd; }
.reward-cards-modal, .card-unlock-modal { position: fixed; z-index: 90; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-top: 30px; background: #1510269c; opacity: 0; transition: opacity .25s ease; backdrop-filter: blur(6px); }
.reward-cards-modal[hidden], .card-unlock-modal[hidden] { display: none; }.reward-cards-modal.is-open, .card-unlock-modal.is-open { opacity: 1; }
.reward-cards-sheet { position: relative; width: min(100%, 570px); max-height: 88dvh; padding: 28px 20px max(25px, env(safe-area-inset-bottom)); overflow-y: auto; border-radius: 30px 30px 0 0; background: linear-gradient(150deg, #fff, #fff4f9); box-shadow: 0 -20px 60px #160c2745; transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.82,.25,1); }
.reward-cards-modal.is-open .reward-cards-sheet { transform: none; }.reward-cards-sheet h2 { margin: 3px 0 7px; font-size: 2rem; letter-spacing: -.055em; }.reward-cards-intro { margin: 0 35px 18px 0; color: #776b83; font-size: .75rem; line-height: 1.45; }
.owned-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.owned-cards article { min-width: 0; overflow: hidden; border: 1px solid #ebdce5; border-radius: 19px; background: #fff; box-shadow: 0 10px 24px #49324f16; }.owned-card-button { display: block; width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: zoom-in; }.owned-cards img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }.owned-cards article div { display: grid; gap: 2px; padding: 10px; }.owned-cards small { color: #c52e6d; font-size: .51rem; font-weight: 900; text-transform: uppercase; }.owned-cards strong { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }.owned-cards em { margin-top: 3px; color: #817486; font-size: .52rem; font-style: normal; font-weight: 750; }
.empty-collection { display: grid; grid-column: 1 / -1; justify-items: center; gap: 5px; padding: 30px 15px; border: 1px dashed #dbc9d6; border-radius: 20px; text-align: center; }.empty-collection span { color: #d33a79; font-size: 2rem; }.empty-collection strong { font-size: .84rem; }.empty-collection small { color: #7b7180; font-size: .65rem; }
.card-unlock-modal { z-index: 110; align-items: center; padding: 12px; }.card-unlock-dialog { position: relative; display: grid; width: min(100%, 460px); max-height: 96dvh; justify-items: center; padding: 22px 20px; overflow: hidden auto; border: 1px solid #ffffff40; border-radius: 31px; color: #fff; background: radial-gradient(circle at 50% 30%, #a957d9 0, transparent 42%), linear-gradient(150deg, #251341, #47205a); box-shadow: 0 30px 90px #0904109c; text-align: center; transform: scale(.74) rotate(-3deg); transition: transform .38s cubic-bezier(.18,.9,.25,1.25); }.card-unlock-modal.is-open .card-unlock-dialog { transform: none; }
.card-unlock-dialog > *:not(.card-unlock-rays) { position: relative; z-index: 1; }.card-unlock-dialog .eyebrow { color: #ffe36e; }.card-unlock-dialog h2 { margin: 3px 0 12px; font-size: 1.75rem; letter-spacing: -.055em; }.card-unlock-dialog img { width: min(76vw, 280px); max-height: 68dvh; aspect-ratio: 2 / 3; object-fit: contain; border: 5px solid #fff; border-radius: 18px; box-shadow: 0 20px 46px #0c05145f; transform: rotate(1deg); }.card-unlock-dialog > strong { margin-top: 11px; font-size: 1.05rem; }.card-unlock-dialog > p:not(.eyebrow) { margin: 5px 0 13px; color: #ded0e8; font-size: .72rem; }.card-unlock-dialog button { width: 100%; min-height: 49px; border: 0; border-radius: 15px; color: #442653; background: linear-gradient(135deg, #ffe87b, #ffbd5f); font-size: .78rem; font-weight: 950; }.card-unlock-rays { position: absolute; width: 390px; height: 390px; top: 50px; background: repeating-conic-gradient(#ffffff12 0 8deg, transparent 8deg 20deg); animation: reward-rays 12s linear infinite; }
@keyframes reward-rays { to { transform: rotate(1turn); } }
@media (max-width: 390px) { .reward-hub { padding: 16px; }.reward-stat { grid-template-columns: 35px 1fr; padding: 11px 8px; }.reward-stat > span { width: 35px; height: 35px; }.reward-stat em { font-size: .52rem; }.reward-hub-head button { padding-right: 0; }.owned-cards { gap: 9px; } }
@media (prefers-reduced-motion: reduce) { .reward-cards-modal, .card-unlock-modal, .reward-cards-sheet, .card-unlock-dialog, .card-unlock-rays { animation: none !important; transition: none !important; } }

/* Récompense de personnalisation à 1 000 points */
.profile-unlock { display: grid; width: 100%; grid-template-columns: 39px 1fr auto; gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid #e3dbe7; border-radius: 17px; color: #5f5668; background: #f4f1f5; text-align: left; opacity: .78; }
.profile-unlock > span:first-child { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 12px; background: #e7e1e9; font-size: 1.15rem; filter: grayscale(1); }
.profile-unlock > span:nth-child(2) { display: grid; gap: 2px; }.profile-unlock strong { color: #544b5d; font-size: .75rem; }.profile-unlock small { font-size: .62rem; line-height: 1.3; }.profile-unlock b { font-size: .85rem; }
.profile-unlock.is-unlocked { color: #51284e; border-color: #ffc1db; background: linear-gradient(135deg, #fff0f6, #f4ebff); box-shadow: 0 8px 20px #91496712; opacity: 1; }
.profile-unlock.is-unlocked > span:first-child { background: linear-gradient(135deg, #ffcae0, #d8c5ff); box-shadow: 0 6px 15px #d5539130; filter: none; }.profile-unlock.is-unlocked strong { color: #b72665; }.profile-unlock.is-unlocked b { color: #d12d71; font-size: 1.2rem; }
.profile-customizer-modal { position: fixed; z-index: 95; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-top: 30px; background: #1510269c; opacity: 0; transition: opacity .25s ease; backdrop-filter: blur(6px); }.profile-customizer-modal[hidden] { display: none; }.profile-customizer-modal.is-open { opacity: 1; }
.profile-customizer-sheet { position: relative; width: min(100%, 520px); max-height: 92dvh; padding: 28px 21px max(25px, env(safe-area-inset-bottom)); overflow-y: auto; border-radius: 30px 30px 0 0; background: linear-gradient(150deg, #fff, #fff3f8); box-shadow: 0 -20px 60px #160c2745; transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.82,.25,1); }.profile-customizer-modal.is-open .profile-customizer-sheet { transform: none; }
.profile-customizer-sheet h2 { margin: 3px 0 8px; font-size: 2rem; letter-spacing: -.055em; }.profile-customizer-sheet > p:not(.eyebrow) { margin: 0 30px 18px 0; color: #75697c; font-size: .73rem; line-height: 1.45; }
#profile-customizer-form { display: grid; gap: 10px; }#profile-customizer-form > label, #profile-customizer-form legend { color: #563e5b; font-size: .65rem; font-weight: 900; text-transform: uppercase; }
#custom-profile-name { width: 100%; min-height: 50px; padding: 10px 14px; border: 2px solid #eadbe3; border-radius: 15px; color: #281b34; background: #fff; font: inherit; font-size: .9rem; font-weight: 850; outline: none; }#custom-profile-name:focus { border-color: #f05a96; box-shadow: 0 0 0 4px #f05a9617; }
#profile-customizer-form fieldset { margin: 5px 0 0; padding: 0; border: 0; }#profile-customizer-form legend { margin-bottom: 9px; }.avatar-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.avatar-picker label { cursor: pointer; }.avatar-picker input { position: absolute; opacity: 0; pointer-events: none; }.avatar-picker label span { display: grid; min-height: 78px; place-items: center; border: 2px solid transparent; border-radius: 20px; background: #f3eef5; font-size: 2.3rem; transition: transform .16s ease, border-color .16s ease, background .16s ease; }.avatar-picker label small { display: block; margin-top: 5px; color: #776b7d; font-size: .6rem; font-weight: 850; text-align: center; }.avatar-picker input:checked + span { border-color: #ff4f91; background: linear-gradient(145deg, #ffe4ef, #eadfff); box-shadow: 0 9px 20px #c63c7826; transform: translateY(-3px); }.avatar-picker input:focus-visible + span { outline: 3px solid #7457d955; }
.avatar-picker label.is-locked { cursor: default; }.avatar-picker label.is-locked span { filter: grayscale(1); opacity: .42; }.avatar-picker label.is-locked small { color: #9a909f; }
.profile-customizer-status { min-height: 18px; margin: 2px 0 0; color: #75697c; font-size: .66rem; font-weight: 800; }.profile-customizer-status.is-success { color: #16734f; }.profile-customizer-status.is-error { color: #b62750; }.profile-customizer-save { min-height: 52px; border: 0; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #ff4f91, #8f52dd); box-shadow: 0 11px 24px #d33d8338; font-size: .8rem; font-weight: 950; }.profile-customizer-save:disabled { opacity: .6; }
@media (prefers-reduced-motion: reduce) { .profile-customizer-modal, .profile-customizer-sheet, .avatar-picker label span { transition: none !important; } }
