/* Richer pastels preserve dark-text contrast; illustrations remain decorative. */
:is(.journey-card,.practice-card,.practice-mode-card).card-mint{background:#ccebd9!important;color:#183c2d}
:is(.journey-card,.practice-card,.practice-mode-card).card-blue{background:#d3e8fa!important;color:#203e58}
:is(.journey-card,.practice-card,.practice-mode-card).card-lilac{background:#e2d8f6!important;color:#42335d}
:is(.journey-card,.practice-card,.practice-mode-card).card-peach{background:#f6dcc5!important;color:#593b28}
:is(.journey-card,.practice-card,.practice-mode-card).card-rose{background:#f3d4df!important;color:#583345}
:is(.journey-card,.practice-card,.practice-mode-card) .card-copy,:is(.journey-card,.practice-card,.practice-mode-card) .card-foot,:is(.journey-card,.practice-card,.practice-mode-card) .practice-card-facts{color:inherit}
.practice-card .practice-card-orbit{align-self:flex-start;transform:none;width:86px;height:86px;margin:5px 0 22px;border-radius:22px;background:#ffffff70;color:inherit;box-shadow:inset 0 1px 0 #ffffffd9,0 6px 12px #173f2910}
.practice-card-orbit svg{color:inherit;width:66px;height:66px;stroke:currentColor;stroke-width:1.8}
.practice-mode-card .card-art{width:60px;height:60px;margin-bottom:15px;background:#ffffff66;color:inherit}
.practice-mode-card .card-art svg{width:49px;height:49px}
@media(max-width:720px){.practice-card .practice-card-orbit{width:79px;height:79px;margin-bottom:19px}.practice-card-orbit svg{color:inherit;width:61px;height:61px}}

:is(.journey-card,.practice-card,.practice-mode-card) .card-art svg{color:inherit;stroke:currentColor}

/* Compact reading order: diagram, title, description and a clear action. */
.journey-card,.practice-card,.practice-mode-card{border:1px solid #ffffff9c;box-shadow:inset 0 2px 0 #ffffffb8,inset 0 -1px 0 #17312812,0 6px 0 #526c6026,0 13px 22px #25382e13}
.practice-format-grid,.practice-set-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;overflow:visible;margin:25px 0 30px;padding:0;perspective:1100px}
.practice-format-grid .practice-mode-card,.practice-set-grid .practice-card{width:100%;min-width:0;max-width:none;flex:none;text-align:left}
.practice-set-grid .practice-card:disabled{opacity:.75;cursor:default}
@media(max-width:1050px){.practice-set-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.practice-format-grid{grid-template-columns:1fr}}
@media(max-width:640px){.practice-set-grid{grid-template-columns:1fr}.practice-format-grid,.practice-set-grid{gap:18px;margin:22px 0 27px}}
.class-choice-cards .journey-card,.subject-choice-cards .journey-card{min-height:210px;padding:23px}
.chapter-choice-cards .journey-card{min-height:168px;padding:22px}
.practice-card{min-height:238px;padding:22px;flex-basis:300px}
.practice-mode-card{min-height:154px;padding:20px}
.card-heading-row{display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;gap:15px;width:100%;margin-bottom:17px;text-align:left}
.card-heading-row .card-art,.practice-card .card-heading-row .practice-card-orbit{position:static;align-self:auto;flex:0 0 64px;width:64px;height:64px;margin:0;border-radius:17px;transform:none}
.card-heading-row .card-art svg,.card-heading-row .practice-card-orbit svg{width:50px;height:50px}
.card-heading-row .card-title,.class-choice-cards .card-heading-row .card-title,.subject-choice-cards .card-heading-row .card-title,.practice-card .card-heading-row .card-title{margin:0;min-width:0;max-width:none;font-size:22px;line-height:1.35;overflow-wrap:break-word}
.class-choice-cards .card-copy,.subject-choice-cards .card-copy{max-width:none;font-size:15px}
.journey-card .card-foot,.practice-card .card-foot{padding-top:17px}
.practice-card .practice-card-facts{margin:14px 0 0}
.welcome-motivation{padding:25px;gap:25px;align-items:center}
.welcome-motivation .card-art{width:80px;height:80px;flex:0 0 80px;margin:0}
.welcome-motivation .card-art svg{width:55px;height:55px}
.welcome-motivation h2{font-size:25px;line-height:1.3;margin-bottom:10px}
.welcome-motivation p{margin:5px 0;line-height:1.65}
@media(hover:hover) and (pointer:fine){html[data-card-motion="on"][data-card-input="pointer"] :is(.journey-card,.practice-card,.practice-mode-card):hover{box-shadow:inset 0 2px 0 #ffffffcf,inset 0 -1px 0 #17312812,0 7px 0 #526c6028,0 19px 28px #25382e19}}
@media(max-width:720px){
 .class-choice-cards .journey-card,.subject-choice-cards .journey-card{min-height:175px;padding:21px}
 .chapter-choice-cards .journey-card{min-height:147px;padding:20px}
 .practice-card{min-height:226px;padding:20px;flex-basis:min(300px,85vw)}
 .card-heading-row{gap:12px;margin-bottom:14px}
 .card-heading-row .card-art,.practice-card .card-heading-row .practice-card-orbit{flex-basis:56px;width:56px;height:56px;border-radius:15px}
 .card-heading-row .card-art svg,.card-heading-row .practice-card-orbit svg{width:44px;height:44px}
 .card-heading-row .card-title,.class-choice-cards .card-heading-row .card-title,.subject-choice-cards .card-heading-row .card-title,.practice-card .card-heading-row .card-title{font-size:20px;line-height:1.35}
 .welcome-motivation{padding:22px;gap:17px;flex-direction:row;align-items:flex-start}
 .welcome-motivation .card-art{width:58px;height:58px;flex-basis:58px;border-radius:16px}
 .welcome-motivation .card-art svg{width:43px;height:43px}
 .welcome-motivation>div:last-child{min-width:0;flex:1}
 .welcome-motivation h2{font-size:21px}
 .welcome-motivation .primary{width:auto;max-width:100%;padding:12px;font-size:14px}
}
