/* REGRET R2.1.1 — Icon / Typography / Sharpness Polish.
 * Visual-only overrides. Do not modify canvas, graphics buffers, events or game layout.
 * Deliberately appended after R2.1 and all legacy stylesheets. */
body.r21-integrated {
  --rp-border:#b96beb; --rp-border-dim:#74529a;
  --rp-text:#fbf8ff; --rp-muted:#dccfe9;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--rp-text);
  font-synthesis:none;
}
body.r21-integrated :is(button,input,select,textarea) {font-family:inherit;}
body.r21-integrated :is(p,small,label) {text-shadow:none;}
body.r21-integrated :is(a,button,input,textarea,select,summary):focus-visible {
  outline:3px solid #f4a1ff!important;outline-offset:3px!important;
}
/* Navigation: thicker icon contours and framed SVGs without replacing semantic markup. */
body.r21-integrated .rg-global-header .rg-links a {
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
  font-size:clamp(12px,.9vw,14px)!important;
  font-weight:750!important;
  line-height:1.28!important;
  letter-spacing:0!important;
  color:#f3eafd!important;
}
body.r21-integrated .rg-global-header .rg-links svg {
  box-sizing:content-box!important;width:19px!important;height:19px!important;
  padding:7px!important;border:2px solid #9b66cd!important;
  border-radius:11px!important;background:linear-gradient(145deg,#321747,#1b0e2d)!important;
  stroke-width:2.35!important;filter:none!important;flex-shrink:0!important;
  box-shadow:inset 0 1px 0 #ffffff17,0 1px 7px #0006;
}
body.r21-integrated .rg-global-header .rg-links a:is(:hover,.active,[aria-current="page"]) svg {
  border-color:#ee82fd!important;background:#3e1b5b!important;
  box-shadow:0 0 0 1px #e37aff55,0 0 12px #a945c547;
}
body.r21-integrated .rg-global-header .rg-hamburger,
body.r21-integrated .rg-global-header .rg-trade,
body.r21-integrated .rg-global-header .rg-account {
  border-width:2px!important;
}
body.r21-integrated .rg-global-header .rg-hamburger svg,
body.r21-integrated .rg-global-header .rg-trade svg {
  stroke-width:2.4!important;filter:none!important;
}
body.r21-integrated .rg-global-header .rg-mobile-links a {
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
  font-size:14px!important;font-weight:750!important;line-height:1.35!important;
  border:1.5px solid #70438f!important;
  border-radius:11px!important;color:#fff!important;
}
/* Shared section typography: crisp, readable body copy, preserving original REGRET display brand. */
body.r21-home :is(.section-heading p,.roadmap-head p,.community-cta p,.product-card p,.hero-footnote) {
  color:#dfd3e9!important;line-height:1.6!important;
}
body.r21-home :is(.eyebrow,.section-overline,.market-item span,.market-last span) {
  color:#e7c9f5!important;letter-spacing:.065em!important;
  font-size:max(12px,.72rem)!important;line-height:1.4!important;
}
body.r21-home .market-item strong {text-shadow:none!important;font-weight:800!important;}
body.r21-home .market-frame {border-width:2px!important;}
body.r21-home .source-pill {border-width:1.5px!important;font-size:12px!important;}
body.r21-home :is(.button,.head-buy,.section-side-link) {
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
  font-size:14px!important;font-weight:800!important;letter-spacing:0!important;
}
body.r21-home .button svg {stroke-width:2.25!important;filter:none!important;}
body.r21-home .button-outline,body.r21-home .button-ghost {border-width:2px!important;}
body.r21-home .feature-card.rg-premium-feature {border-width:2px!important;}
body.r21-home .rg-premium-copy small {
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
  font-size:clamp(12px,.9vw,14px)!important;line-height:1.5!important;
  font-weight:550!important;color:#f0e5f7!important;
  text-shadow:none!important;
}
body.r21-home .rg-premium-go {
  border-width:2px!important;font-size:25px!important;font-weight:700!important;
  text-shadow:none!important;
}
body.r21-home .r21-phase {border-width:2px!important;}
body.r21-home .r21-phase p {font-size:clamp(14px,1.1vw,16px)!important;}
body.r21-home .r21-phase .r21-label {font-size:12px!important;letter-spacing:.08em!important;}
/* Inline icons elsewhere on homepage: use clear framed glyphs, not glowing blur. */
body.r21-home .section-side-link svg,
body.r21-home :is(.product-card,.toolbox-chip) svg:not(.icon-sprite) {
  stroke-width:2.3!important;filter:none!important;
}
body.r21-home :is(.product-card,.toolbox-chip,.community-cta) {
  border-width:2px!important;border-color:#8052a5!important;
}
/* Arcade: improve interactive text legibility without moving game surfaces. */
body.r21-arcade :is(.rg-internal-tabs button,.topnav .nav-item,#rgGameBuilderControls button) {
  font-size:clamp(13px,1vw,15px)!important;font-weight:800!important;
  letter-spacing:0!important;line-height:1.35!important;
}
body.r21-arcade :is(.r6-panel,.r6-minirow,.r6-radio,.r6-survival-promo) {
  border-width:2px!important;
}
body.r21-arcade :is(.r6-kicker,.r7-mini) {
  font-size:12px!important;letter-spacing:.07em!important;
}
body.r21-arcade :is(.r6-section-head p,.r6-community p,.r6-panel p) {
  font-size:clamp(14px,1.1vw,16px)!important;
  color:#e6d9f0!important;line-height:1.55!important;
}
/* Creator: frame tool icons, make tiny controls readable. Avoid any dimensions on canvas/stage. */
body.r21-creator :is(.editing,.canvas-panel,.workspace>.panel,.after) {
  border-width:2px!important;border-color:#8652ad!important;
}
body.r21-creator :is(.panel-title h2,.rg-workspace-pro .panel-title h2) {
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
  font-weight:850!important;font-size:16px!important;letter-spacing:0!important;
}
body.r21-creator :is(.mini-kicker,.rg-workspace-pro .mini-kicker,.rg-editor-online,.rg-upload-first-tag) {
  font-size:11px!important;letter-spacing:.045em!important;line-height:1.4!important;
}
body.r21-creator :is(.preset,.rg-style) {
  border-width:2px!important;border-color:#755098!important;
  background-color:#241536!important;
}
body.r21-creator :is(.preset,.rg-style) :is(b,span:first-child) {
  text-shadow:none!important;
}
body.r21-creator .preset b,
body.r21-creator .rg-style b {
  display:grid!important;place-items:center!important;
  width:40px!important;height:40px!important;
  border:2px solid #ab67d9!important;border-radius:12px!important;
  background:#391d50!important;
  font-size:22px!important;line-height:1!important;
  box-shadow:inset 0 1px #ffffff18;
}
body.r21-creator :is(.preset span,.rg-style span,.studio-pills span) {
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
  font-size:12px!important;font-weight:750!important;line-height:1.3!important;
}
body.r21-creator :is(.field label,.field input,.field select,.small-note,.upload-visual small,.after p) {
  font-size:clamp(13px,1vw,15px)!important;line-height:1.55!important;
}
body.r21-creator :is(.export-main,.export-secondary,.rg-direct-hero,
  .rg-direct-share button,.rg-preview-share button,
  .rg-image-nudge button,.rg-canvas-move-bar button,
  .rg-text-pick button,#rgPreviewReset,#rgResetText) {
  border-width:2px!important;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
  font-size:clamp(12px,1vw,14px)!important;font-weight:750!important;
  line-height:1.3!important;text-shadow:none!important;
}
body.r21-creator .rg-upload-first {
  border:2px solid #d27af0!important;
  box-shadow:inset 0 0 0 1px #cc73fc20,0 0 15px #8e3cc42c!important;
}
body.r21-creator .rg-upload-first-icon,
body.r21-creator .upload-icon {
  border:2px solid #ce85ed!important;
  background:#431a60!important;color:#fff!important;
  box-shadow:0 0 10px #9f4ed044;
}
body.r21-creator :is(.rg-canvas-move-bar span,.rg-image-nudge>span) {
  font-size:12px!important;letter-spacing:.03em!important;
}
body.r21-creator :is(.small-note,.status,.preview-footer) {
  color:#dacde6!important;font-size:12px!important;
}
/* Improve text legibility on phones while preserving layout and controls. */
@media(max-width:670px) {
  body.r21-home .rg-premium-copy small {font-size:12px!important;line-height:1.4!important;}
  body.r21-home .rg-premium-copy strong {line-height:1.1!important;}
  body.r21-home .rg-premium-copy {min-height:0!important;}
  body.r21-home .rg-premium-feature .rg-premium-art {flex-shrink:0;}
  body.r21-creator :is(.preset span,.rg-style span) {font-size:11px!important;white-space:normal!important;text-align:center;}
  body.r21-creator .rg-upload-first-heading strong {font-size:13px!important;}
}
@media(prefers-reduced-motion:reduce) {
  body.r21-integrated :is(button,a,.feature-card) {transition:none!important;}
}
