/* REGRET R2.1 — opt-in, scoped visual integration. No game/editor handlers changed. */
:root {--r21-deep:#0b0713;--r21-night:#180b27;--r21-panel:#241332;--r21-violet:#ae78ff;--r21-pink:#fa60d6;--r21-text:#f9f2ff;}
body.r21-integrated { background-color:var(--r21-deep); }
body.r21-integrated :is(a,button,input,textarea,select,summary):focus-visible {outline:3px solid #e996ff !important;outline-offset:3px;}
/* Accent existing shell rather than replacing routes or events. */
body.r21-integrated .rg-global-header {background:linear-gradient(100deg,#11091cec,#260f36ee)!important;border-bottom:1px solid #b954dc80!important;box-shadow:0 12px 35px #0007!important;backdrop-filter:blur(16px);}
body.r21-integrated .rg-global-header .rg-shell-inner {max-width:1390px!important;}
body.r21-integrated .rg-global-header .rg-logo img {border-radius:13px;filter:drop-shadow(0 0 9px #c34add90);}
body.r21-integrated .rg-global-header a {transition:color .18s ease,background-color .18s ease,transform .18s ease;}
body.r21-integrated .rg-global-header a:hover {color:#ffd2fb;}
body.r21-home .section-container {max-width:min(1390px,calc(100% - 34px));}
body.r21-home .hero {border-radius:26px;overflow:hidden;border:1px solid #e96ce072;box-shadow:0 22px 75px #0009,0 0 45px #a532e61f;isolation:isolate;}
body.r21-home .hero:after {content:"";position:absolute;inset:auto 0 0;height:3px;pointer-events:none;background:linear-gradient(90deg,transparent,#e84dde,#7652f6,transparent);}
body.r21-home .section-heading h2,body.r21-home .roadmap-head h2 {letter-spacing:-.035em;}
body.r21-home .product-card,body.r21-home .toolbox-chip {border-color:#b456d33f;box-shadow:0 8px 35px #0003;transition:transform .18s ease,box-shadow .18s ease;}
@media (hover:hover) {body.r21-home .product-card:hover,body.r21-home .toolbox-chip:hover {transform:translateY(-3px);box-shadow:0 15px 40px #0006,0 0 25px #b43eff22;}}
body.r21-home .roadmap-section {background:linear-gradient(127deg,#241137,#120c20 55%,#27113b);border:1px solid #bb64dd74;border-radius:26px;padding:clamp(22px,3vw,44px)!important;box-shadow:0 28px 65px #0007;}
body.r21-home .roadmap-steps.r21-steps {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
body.r21-home .r21-phase {position:relative;min-width:0;padding:24px;border:1px solid #ffffff2b;border-radius:17px;background:#100b1ec7;overflow:hidden;}
body.r21-home .r21-phase.is-complete {border-color:#71d49b7a;}
body.r21-home .r21-phase.is-now {border-color:#fa60d6;box-shadow:0 0 25px #dc4cc62b;}
body.r21-home .r21-phase .r21-label {display:block;color:#e5b7ff;font-size:11px;font-weight:850;letter-spacing:.13em;text-transform:uppercase;}
body.r21-home .r21-phase.is-complete .r21-label {color:#a7f0c1;}
body.r21-home .r21-phase.is-now .r21-label {color:#ff9ae7;}
body.r21-home .r21-phase h3 {margin:14px 0 10px;color:#fff;font-size:clamp(19px,2vw,26px);}
body.r21-home .r21-phase p {margin:0;color:#d9c8ea;font-size:14px;line-height:1.55;}
body.r21-home .r21-phase .r21-symbol {display:block;font-size:29px;line-height:1;}
/* GIF studio: no changes to canvas size/coordinate mapping or export controls. */
body.r21-creator .site-top {background:#140b21eb;border-bottom:1px solid #b954dc71;box-shadow:0 10px 32px #0007;}
body.r21-creator .main {max-width:1450px;}
body.r21-creator .workspace {gap:clamp(12px,1.8vw,22px);}
body.r21-creator .workspace>.panel {min-width:0;border:1px solid #b75ddd66;border-radius:19px;box-shadow:0 15px 40px #0005;}
body.r21-creator .intro {max-width:1100px;margin-inline:auto;}
body.r21-arcade .rgn-arcade-banner {border:1px solid #a858d777;border-radius:23px;overflow:hidden;box-shadow:0 20px 55px #0007;}
body.r21-arcade .r6-gamegrid {gap:clamp(12px,1.5vw,23px);}
@media(max-width:850px) {body.r21-home .roadmap-steps.r21-steps {grid-template-columns:1fr;}body.r21-home .hero{border-radius:15px;}body.r21-creator .workspace>.panel{border-radius:14px;}}
@media(max-width:560px) {body.r21-home .section-container {max-width:calc(100% - 24px);}body.r21-home .r21-phase{padding:18px;}body.r21-home .roadmap-section{padding:22px 14px!important;}}
@media(prefers-reduced-motion:reduce) {body.r21-integrated *,body.r21-integrated *:before,body.r21-integrated *:after {transition-duration:.01ms!important;animation-duration:.01ms!important;}}
