/* Reusable primitives mapped to existing classes; no layout or learning behavior changes. */
body{--ink:var(--rr-text-primary);--muted:var(--rr-text-secondary);--paper:var(--rr-background);--line:var(--rr-border);--white:var(--rr-surface);color:var(--rr-text-primary);background:var(--rr-background)}
.rr-display{font-size:var(--rr-type-display);line-height:var(--rr-leading-heading)}
.rr-h1{font-size:var(--rr-type-h1)}.rr-h2{font-size:var(--rr-type-h2)}.rr-h3{font-size:var(--rr-type-h3)}.rr-body{font-size:var(--rr-type-body);line-height:var(--rr-leading-body)}.rr-caption{font-size:var(--rr-type-caption);color:var(--rr-text-secondary)}.rr-number{font-size:var(--rr-type-number);font-variant-numeric:tabular-nums}
body :is(.primary,.secondary,.rr-button){min-height:44px;padding:11px 24px;border-radius:var(--rr-radius-xl);font-weight:650;line-height:1.4;transition:transform var(--rr-motion) var(--rr-ease),filter var(--rr-motion) var(--rr-ease);max-width:100%;white-space:normal;text-align:center}
body .primary,body .rr-button-primary{background:var(--rr-gradient-discovery);color:white;border:1px solid transparent;box-shadow:var(--rr-shadow-sm)}
body .secondary,body .rr-button-secondary{background:var(--rr-surface);color:var(--rr-navy);border:1px solid var(--rr-border);box-shadow:none}
body :is(.text-button,.rr-button-ghost){display:inline-flex;align-items:center;min-height:44px;color:var(--rr-action-blue);background:transparent;border:0;box-shadow:none;line-height:1.5}
body :is(.primary,.secondary,.rr-button):hover:not(:disabled):not([aria-disabled="true"]){transform:translateY(-1px);filter:brightness(.98)}
body :is(.primary,.secondary,.rr-button):disabled,body .rr-button[aria-disabled="true"]{opacity:.55;transform:none;filter:none;box-shadow:none;cursor:not-allowed}
body :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--rr-action-blue);outline-offset:4px}
body :is(.glass,.rr-card,.root-tile,.learning-section,.word-row,.word-search-result,.root-network-section,.stat){border:1px solid var(--rr-border);border-radius:var(--rr-radius-lg);box-shadow:var(--rr-shadow-sm)}
.rr-card{background:var(--rr-surface);padding:var(--rr-space-5)}.rr-card-interactive{transition:box-shadow var(--rr-motion) var(--rr-ease),border-color var(--rr-motion) var(--rr-ease)}.rr-card-interactive:hover,.root-tile:hover{border-color:var(--rr-blue);box-shadow:var(--rr-shadow-md)}
.rr-card-highlight{background:var(--rr-gradient-soft);border-color:var(--rr-sky-100)}.rr-card-data{background:var(--rr-surface);font-variant-numeric:tabular-nums}
body .brand .home-brand-logo,body .footer-brand .home-brand-logo{object-fit:contain;max-width:100%;height:auto;aspect-ratio:805/290}
@media(prefers-reduced-motion:reduce){body :is(.primary,.secondary,.rr-button,.rr-card-interactive){transition:none;transform:none!important}}

body .rr-button{display:inline-flex;align-items:center;justify-content:center}body .stat strong{font-variant-numeric:tabular-nums}
