/* Optional storefront appearance. The approved artwork keeps its own palette. */
body.rm-m2 .rm-nav-actions{display:flex;align-items:center;gap:20px;flex-shrink:0}
body.rm-m2 .rm-brand-mark{position:relative;isolation:isolate}
body.rm-m2 .rm-footer .rm-brand-mark{display:inline-block}
body.rm-m2 .rm-brand-mark>img{display:block;clip-path:inset(0 46.326836582% 0 0)}
body.rm-m2 .rm-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;margin:0;padding:9px 11px;border:1px solid #777777;border-radius:6px;background:#fff;color:#292929;font-size:12px;font-weight:650;line-height:1.4;white-space:nowrap;cursor:pointer;text-transform:none;letter-spacing:0}
body.rm-m2 .rm-theme-toggle[hidden]{display:none}
body.rm-m2 .rm-theme-toggle:hover{background:#f1efeb;border-color:#666666;color:#292929}
body.rm-m2 .rm-theme-toggle:focus{outline:3px solid #674579!important;outline-offset:3px}
body.rm-m2 .rm-theme-toggle[aria-pressed="true"]{background:#26344b;border-color:#26344b;color:#fff8f0}
body.rm-m2 .rm-theme-toggle .rm-icon{width:17px;height:17px;flex:none}
body.rm-m2 .rm-theme-toggle .rm-theme-icon-sun{display:none}
body.rm-m2 .rm-theme-toggle[aria-pressed="true"] .rm-theme-icon-sun{display:inline-block}
body.rm-m2 .rm-theme-toggle[aria-pressed="true"] .rm-theme-icon-moon{display:none}

/* Shared finishing details for the native shop, including plugin-owned controls. */
body.rm-m2 nav.woocommerce-pagination ul li :is(.current,a:hover,a:focus){background:#e9e6ed;color:#303045}
body.rm-m2 nav.woocommerce-pagination ul li .current{font-weight:750;box-shadow:inset 0 -3px #303045}
body.rm-m2 :is(.rm-support-back,.rm-menu-toggle){min-height:44px}
body.rm-m2 .xoo-wsc-markup :is(.xoo-wsc-ft-btn,.xoo-wsc-btn),
body.rm-m2 #comments :is(input[type="submit"],a.comment-reply-link),
body.rm-m2 .woocommerce #respond input#submit{background:var(--rm-action);color:#fff;border:1px solid var(--rm-action);min-height:46px;font:inherit;font-weight:650;border-radius:2px;text-decoration:none}
body.rm-m2 .xoo-wsc-markup :is(.xoo-wsc-ft-btn,.xoo-wsc-btn):hover,
body.rm-m2 #comments :is(input[type="submit"],a.comment-reply-link):hover,
body.rm-m2 .woocommerce #respond input#submit:hover{background:var(--rm-action-hover);color:#fff;border-color:var(--rm-action-hover)}
body.rm-m2 .xoo-wsc-markup .xoo-wsc-ft-btn-continue{background:#fff;color:#24263c;border-color:#867b90}
body.rm-m2 .xoo-wsc-markup .xoo-wsc-ft-btn-continue:hover{background:#f1efeb;color:#24263c;border-color:#24263c}
body.rm-m2 #comments :is(input[type="submit"],a.comment-reply-link){display:inline-flex;align-items:center;padding:12px 20px}
body.rm-m2 :is(textarea,.xoo-wsc-markup a,.xoo-wsc-markup button):focus-visible{outline:3px solid #674579;outline-offset:4px}
body.rm-m2 .woocommerce form .form-row .password-input input.input-text{padding-right:50px}
body.rm-m2 form .password-input .show-password-input{top:1px;right:1px;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;transform:none;border:0;border-radius:2px;background:transparent;color:#24263c}
body.rm-m2 .rm-captcha-status{margin:12px 0;color:var(--rm-ink);font-size:14px;line-height:1.6;overflow-wrap:anywhere}
body.rm-m2 .rm-captcha-retry{margin:8px 0 0;max-width:100%;white-space:normal}
body.rm-m2 .rm-captcha-retry[hidden]{display:none!important}
body.rm-m2.rm-support-route .woocommerce .col2-set::before,
body.rm-m2.rm-support-route .woocommerce .col2-set::after{display:none}
body.rm-m2.error404 .more-btn a{display:inline-flex;align-items:center;gap:10px;min-height:46px;background:var(--rm-action);color:#fff;text-decoration:none}
body.rm-m2.error404 .more-btn a:hover{background:var(--rm-action-hover);color:#fff}

html[data-rm-theme="dark"] body.rm-m2{
 --rm-ink:#f6f2eb;--rm-muted:#d0ccc5;--rm-red:#f6f2eb;--rm-line:#626262;
 --rm-dark-base:#111827;--rm-dark-surface:#1b263a;--rm-dark-raised:#26344b;
 --rm-dark-field:#111c2f;--rm-dark-border:#a3a09b;--rm-dark-link:#f6f2eb;
 --rm-dark-success:#c9e5ce;--rm-dark-danger:#ffc5ba;
 color-scheme:dark;background-color:var(--rm-dark-base);color:var(--rm-ink)
}

/* Shared solid M; original MANIA colours on white, brighter hues on navy.
   Slice boundaries fall in transparent gutters of the 667 x 95 original.
   The filled pixel M retains the original stepped silhouette.
   Only dark mode replaces the original black RETR with a white alpha mask. */
html[data-rm-theme="dark"] body.rm-m2 .rm-preview{background:#0c1423;color:#f6f2eb}
html[data-rm-theme="dark"] body.rm-m2 .rm-preview span{color:#d0ccc5}
html[data-rm-theme="dark"] body.rm-m2 .rm-header{color-scheme:dark;background:#111827;color:var(--rm-ink);box-shadow:0 1px 0 var(--rm-line)}
html[data-rm-theme="dark"] body.rm-m2 .rm-header-main{border-color:var(--rm-line)}
/* Follow the roundel's dark outline to trim its pale matte fringe on navy.
   The white lower hemisphere and centre button remain inside this contour. */
html[data-rm-theme="dark"] body.rm-m2 .rm-brand-mark>img{clip-path:ellipse(5.652173913% 39.684210526% at 45.967016492% 49.578947368%)}
body.rm-m2 .rm-brand-colour{display:block;position:absolute;inset:0;pointer-events:none}
html[data-rm-theme="dark"] body.rm-m2 .rm-brand-colour{filter:brightness(1.45) saturate(1.1)}
body.rm-m2 .rm-brand-colour::before{content:"";position:absolute;inset:0;background:url('brand/retromania-logo-667-transparent.png') center/100% 100% no-repeat;-webkit-mask:linear-gradient(to right,transparent 66.116941529%,#000 66.116941529% 84.107946027%,transparent 84.107946027% 88.305847076%,#000 88.305847076%);mask:linear-gradient(to right,transparent 66.116941529%,#000 66.116941529% 84.107946027%,transparent 84.107946027% 88.305847076%,#000 88.305847076%)}
body.rm-m2 .rm-brand-colour::after{content:"";position:absolute;inset:0;background:#9d0c46;clip-path:polygon(55.622188906% 14.736842105%,62.818590705% 14.736842105%,62.818590705% 23.157894737%,64.017991004% 23.157894737%,64.017991004% 31.578947368%,65.217391304% 31.578947368%,65.217391304% 82.105263158%,62.818590705% 82.105263158%,62.818590705% 31.578947368%,61.619190405% 31.578947368%,61.619190405% 82.105263158%,59.220389805% 82.105263158%,59.220389805% 31.578947368%,58.020989505% 31.578947368%,58.020989505% 82.105263158%,55.622188906% 82.105263158%)}
/* Gold reaches its channel limit sooner, so lift it less to retain its hue. */
body.rm-m2 .rm-brand-mark::before{content:"";position:absolute;inset:0;background:url('brand/retromania-logo-667-transparent.png') center/100% 100% no-repeat;pointer-events:none;clip-path:inset(0 11.694152924% 0 84.107946027%)}
html[data-rm-theme="dark"] body.rm-m2 .rm-brand-mark::before{filter:brightness(1.18) saturate(1.1)}
html[data-rm-theme="dark"] body.rm-m2 .rm-brand-mark::after{content:"";position:absolute;inset:0;background:#fff;pointer-events:none;-webkit-mask:url('brand/retromania-logo-667-transparent.png') center/100% 100% no-repeat;mask:url('brand/retromania-logo-667-transparent.png') center/100% 100% no-repeat;clip-path:inset(0 60.569715142% 0 0)}
html[data-rm-theme="dark"] body.rm-m2 .rm-header :is(.rm-logo,.rm-logo img){background:transparent;border:0;border-radius:0}
html[data-rm-theme="dark"] body.rm-m2 .rm-header .rm-search{background:#1b263a;border-color:var(--rm-dark-border)}
html[data-rm-theme="dark"] body.rm-m2 .rm-header .rm-search input{color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 .rm-header .rm-search input::placeholder{color:var(--rm-muted);opacity:1}
html[data-rm-theme="dark"] body.rm-m2 .rm-header :is(.rm-search button,.rm-search>.rm-icon,.rm-bag,.rm-nav-note,.rm-menu-toggle){color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 .rm-header .rm-nav-wrap #site-navigation>a{color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 .rm-header .rm-nav-wrap #site-navigation>a>.rm-icon{color:var(--rm-muted)}
html[data-rm-theme="dark"] body.rm-m2 .rm-header :is(a,button):hover{color:#fff}
html[data-rm-theme="dark"] body.rm-m2 .rm-header .rm-nav-wrap #site-navigation>a:hover{text-decoration:underline;text-underline-offset:4px}
html[data-rm-theme="dark"] body.rm-m2 .rm-header .rm-theme-toggle{background:#26344b;color:#f6f2eb;border-color:#a3a09b}
html[data-rm-theme="dark"] body.rm-m2 .rm-header .rm-theme-toggle:hover{background:#34445f;border-color:#f6f2eb}
html[data-rm-theme="dark"] body.rm-m2 .rm-header .rm-theme-toggle:focus{outline-color:#f6f2eb!important;box-shadow:0 0 0 3px #111827!important}
html[data-rm-theme="dark"] body.rm-m2 .rm-header :is(a,button,input):focus-visible{outline:3px solid #f6f2eb!important;outline-offset:3px!important;box-shadow:0 0 0 3px #111827!important}

/* Keep inherited UI tokens from recolouring the approved art compositions. */
html[data-rm-theme="dark"] body.rm-m2 :is(.rm-journey,.rm-game-world,.rm-card-world,.rm-era-choice,.rm-collection){--rm-ink:#24263c;--rm-muted:#626275;--rm-red:#bc2541;--rm-line:#e6e4eb;color-scheme:light}

/* Text outside the illustrations, pastel era tiles and approved collector cards. */
html[data-rm-theme="dark"] body.rm-m2 main :is(p,label,table,h1,h2,h3,h4,h5,h6):not(:where(.rm-journey *,.rm-game-world *,.rm-card-world *,.rm-era-choice *,.rm-collection *,.mejs-captions-selector *)){color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 main a:not(:where(.button,.rm-button,.rm-era-button,.rm-era-choice,.rm-collection,.woocommerce-LoopProduct-link,.woocommerce-loop-product__link,.rm-journey *,.rm-game-world *,.rm-card-world *,.rm-era-choice *,.rm-collection *)){color:var(--rm-dark-link);text-decoration:underline;text-underline-offset:3px}
html[data-rm-theme="dark"] body.rm-m2 main a:not(:where(.button,.rm-button,.rm-era-button,.rm-era-choice,.rm-collection,.rm-journey *,.rm-game-world *,.rm-card-world *,.rm-era-choice *,.rm-collection *)):hover{color:#ffffff}
html[data-rm-theme="dark"] body.rm-m2 :is(.rm-strip,.rm-section-title>p,.rm-section-title>a,.rm-era-results,.rm-era-system-nav a span,.woocommerce-breadcrumb,.woocommerce-result-count,.product_meta,.rm-support-intro,.rm-support-aside p,.rm-article-meta){color:var(--rm-muted)}
html[data-rm-theme="dark"] body.rm-m2 :is(.rm-strip,.rm-era-strip,.product_meta,.rm-footer-note){border-color:var(--rm-line)}
html[data-rm-theme="dark"] body.rm-m2 :is(.rm-story,.woocommerce-products-header,.retromania-m2-filters,.rm-support-heading,.rm-support-aside,.rm-support-content blockquote,.rm-review-transcript,.rm-battery-transcript,.rm-support-content .rm-review-note,.rm-journal-card,.rm-journal-empty,.woocommerce form.login,.woocommerce form.register,.woocommerce-MyAccount-navigation){background-color:var(--rm-dark-surface);border-color:var(--rm-line);color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 :is(.rm-support-content,.rm-support-content p,.rm-journal-card p,.rm-journal-empty p){color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 :is(.rm-support-heading .rm-eyebrow,.rm-support-aside .rm-eyebrow,.rm-journal-card .rm-eyebrow){color:var(--rm-dark-link)}
html[data-rm-theme="dark"] body.rm-m2 :is(.rm-support-heading,.rm-support-content .rm-review-note,.rm-support-content blockquote){border-left-color:#a3a09b;border-top-color:#a3a09b}
html[data-rm-theme="dark"] body.rm-m2 :is(.rm-support-nav a,.rm-era-system-nav a,.rm-journal-pagination a,.rm-journal-pagination span){background-color:var(--rm-dark-surface);border-color:var(--rm-dark-border);color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 :is(.rm-support-nav a[aria-current="page"],.rm-era-system-nav a[aria-current="page"],.rm-journal-pagination .current,.woocommerce-MyAccount-navigation li.is-active a){background-color:var(--rm-dark-raised);border-color:#bcb9b3;color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 .woocommerce-MyAccount-navigation a{border-color:var(--rm-line)}
html[data-rm-theme="dark"] body.rm-m2 :is(.rm-support-text-link,.rm-support-content th,.rm-support-content td){border-color:var(--rm-line)}
html[data-rm-theme="dark"] body.rm-m2 .rm-journal-image{background-color:var(--rm-dark-raised)}
html[data-rm-theme="dark"] body.rm-m2 .rm-strip .rm-icon{color:var(--rm-muted)}
html[data-rm-theme="dark"] body.rm-m2 :is(.rm-story .rm-button,.retromania-m2-filters button){background:var(--rm-action);color:#fff}
html[data-rm-theme="dark"] body.rm-m2 :is(.rm-story .rm-button,.retromania-m2-filters button):hover{background:var(--rm-action-hover);color:#fff}

/* Product photography remains unaltered on white image wells. */
/* A missing cover uses the image's text colour, not the surrounding dark link. */
html body.rm-m2 :is(ul.products li.product a img,.woocommerce-product-gallery img,.woocommerce-cart-form .product-thumbnail img,.xoo-wsc-img-col img){
 color:#1b263a;background-color:#fff;color-scheme:light;
}
html[data-rm-theme="dark"] body.rm-m2 ul.products li.product{background:var(--rm-dark-surface);border-color:var(--rm-line)}
html[data-rm-theme="dark"] body.rm-m2 ul.products li.product .woocommerce-loop-product__title{color:var(--rm-ink)!important}
html[data-rm-theme="dark"] body.rm-m2 :is(ul.products li.product .price,div.product p.price,div.product span.price,.single_variation .price){color:var(--rm-ink)!important}
html[data-rm-theme="dark"] body.rm-m2 div.product div.images{background:#f6f5f2;border-color:var(--rm-line);color-scheme:light}
html[data-rm-theme="dark"] body.rm-m2 div.product .woocommerce-product-details__short-description{color:var(--rm-ink);border-color:var(--rm-line)}
/* Native Woo tab anchors must not inherit the parent theme's dark-grey text. */
html[data-rm-theme="dark"] body.rm-m2 div.product .woocommerce-tabs ul.tabs li{background:var(--rm-dark-surface);border-color:var(--rm-line);color:var(--rm-ui-ink)}
html[data-rm-theme="dark"] body.rm-m2 div.product .woocommerce-tabs ul.tabs li a{color:var(--rm-ui-ink)}
html[data-rm-theme="dark"] body.rm-m2 div.product .woocommerce-tabs ul.tabs li a:is(:hover,:focus-visible){color:#fff}
html[data-rm-theme="dark"] body.rm-m2 div.product .woocommerce-tabs ul.tabs li.active{background:var(--rm-dark-raised);border-bottom-color:var(--rm-dark-link)}
html[data-rm-theme="dark"] body.rm-m2 div.product .woocommerce-tabs ul.tabs:before{border-color:var(--rm-line)}
html[data-rm-theme="dark"] body.rm-m2 .star-rating{color:var(--rm-dark-link)}
html[data-rm-theme="dark"] body.rm-m2 :is(.retromania-m2-low-stock,div.product p.stock.out-of-stock){color:var(--rm-dark-danger)!important}
html[data-rm-theme="dark"] body.rm-m2 div.product p.stock:not(.out-of-stock){color:var(--rm-dark-success)}
html[data-rm-theme="dark"] body.rm-m2 :is(.retromania-video-description,.retromania-caption-draft){background:var(--rm-dark-surface);color:var(--rm-ink);border-color:var(--rm-dark-border)}
html[data-rm-theme="dark"] body.rm-m2 nav.woocommerce-pagination ul li{border-color:var(--rm-dark-border)}
html[data-rm-theme="dark"] body.rm-m2 nav.woocommerce-pagination ul li :is(.current,a:hover,a:focus){background:var(--rm-dark-raised);color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 nav.woocommerce-pagination ul li .current{box-shadow:inset 0 -3px var(--rm-ink)}

/* Native forms retain their labels, validation and chosen values. */
html[data-rm-theme="dark"] body.rm-m2 :is(main,.xoo-wsc-markup,#yith-quick-view-modal) :is(input.input-text,input[type="password"],input[type="email"],input[type="search"],input[type="number"],textarea,select){background-color:var(--rm-dark-field);color:var(--rm-ink);border-color:var(--rm-dark-border);color-scheme:dark}
html[data-rm-theme="dark"] body.rm-m2 :is(main,.xoo-wsc-markup,#yith-quick-view-modal) :is(input,textarea)::placeholder{color:var(--rm-muted);opacity:1}
html[data-rm-theme="dark"] body.rm-m2 :is(input[type="checkbox"],input[type="radio"]){accent-color:#f6f2eb}
html[data-rm-theme="dark"] body.rm-m2 .woocommerce form .form-row label{color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 .woocommerce form .form-row .required{color:var(--rm-dark-danger)}
html[data-rm-theme="dark"] body.rm-m2 .woocommerce form .form-row.woocommerce-invalid :is(input.input-text,select,textarea,.select2-selection){border-color:#ff9d87!important}
html[data-rm-theme="dark"] body.rm-m2 .woocommerce form .form-row.woocommerce-validated :is(input.input-text,select,textarea,.select2-selection){border-color:#b6d9bd!important}
html[data-rm-theme="dark"] body.rm-m2 :is(.select2-dropdown,.select2-container .select2-selection--single,.select2-search--dropdown .select2-search__field){background:var(--rm-dark-field);border-color:var(--rm-dark-border);color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 .select2-container--default .select2-selection--single .select2-selection__rendered{color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 .select2-container--default .select2-selection--single .select2-selection__arrow b{border-top-color:var(--rm-muted)}
html[data-rm-theme="dark"] body.rm-m2 .select2-results__option{color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 .select2-results__option[aria-selected="true"]{background:var(--rm-dark-raised)}
html[data-rm-theme="dark"] body.rm-m2 .select2-container--default .select2-results__option--highlighted[aria-selected]{background:#f6f2eb;color:#1b263a}
html[data-rm-theme="dark"] body.rm-m2 .select2-results__option[aria-disabled="true"]{color:var(--rm-muted)}
html[data-rm-theme="dark"] body.rm-m2 :is(main,.xoo-wsc-markup,.rm-footer,.select2-container,#yith-quick-view-modal) :is(a,button,input,select,textarea,summary,[tabindex]):not(:where(.rm-journey *,.rm-game-world *,.rm-card-world *,.rm-era-choice,.rm-era-choice *)):focus-visible{outline:3px solid #f6f2eb!important;outline-offset:3px!important;box-shadow:0 0 0 3px #111827!important}

/* Basket and checkout stay native, including meaningful error and success states. */
html[data-rm-theme="dark"] body.rm-m2 :is(table.shop_table,table.shop_table td,.woocommerce-customer-details address){border-color:var(--rm-line);color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 table.shop_table th{background:var(--rm-dark-raised);color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 .woocommerce table.shop_table_responsive tr:nth-child(2n) td{background-color:#1b263a}
html[data-rm-theme="dark"] body.rm-m2 :is(.cart_totals,#order_review,ul.order_details){background:var(--rm-dark-surface);border-color:var(--rm-line);color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 #payment{background:var(--rm-dark-surface)!important;color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 #payment ul.payment_methods{border-color:var(--rm-line)}
html[data-rm-theme="dark"] body.rm-m2 #payment div.payment_box{background:var(--rm-dark-raised);color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 #payment div.payment_box:before{border-bottom-color:var(--rm-dark-raised)}
html[data-rm-theme="dark"] body.rm-m2 :is(.woocommerce-info,.woocommerce-message,.woocommerce-error){background:#26344b;color:var(--rm-ink);border-top-color:#bcb9b3}
html[data-rm-theme="dark"] body.rm-m2 .woocommerce-error{background:#342723;border-top-color:#ff9d87}
html[data-rm-theme="dark"] body.rm-m2 :is(.woocommerce-error li,.woocommerce-error li strong){color:#fff0eb}
html[data-rm-theme="dark"] body.rm-m2 .woocommerce-message{background:#263129;border-top-color:#b6d9bd}
html[data-rm-theme="dark"] body.rm-m2 :is(.woocommerce-info,.woocommerce-message,.woocommerce-error) a{color:#ffffff;text-decoration:underline}
html[data-rm-theme="dark"] body.rm-m2 .woocommerce-info:before{color:#f6f2eb}
html[data-rm-theme="dark"] body.rm-m2 .woocommerce-message:before{color:#c9e5ce}
html[data-rm-theme="dark"] body.rm-m2 .woocommerce-error:before{color:#ffc5ba}
html[data-rm-theme="dark"] body.rm-m2 .coupon-error-notice{color:var(--rm-dark-danger)}
html[data-rm-theme="dark"] body.rm-m2 #payment .woocommerce-privacy-policy-text p{color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 .woocommerce-password-strength{color:#111827}
html[data-rm-theme="dark"] body.rm-m2 form .password-input .show-password-input{color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 form .password-input .show-password-input::before{filter:brightness(0) invert(1)}
html[data-rm-theme="dark"] body.rm-m2.error404 .more-btn a{color:#fff;text-decoration:none}
html[data-rm-theme="dark"] body.rm-m2 #comments :is(ol li,.comment-body){background:var(--rm-dark-surface);color:var(--rm-ink);border-color:var(--rm-line)}
html[data-rm-theme="dark"] body.rm-m2 #comments .comment-content p{color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 .woocommerce-thankyou-order-received{background:#263129;color:#eef8ef;border-color:#b6d9bd}
html[data-rm-theme="dark"] body.rm-m2 .woocommerce a.remove{color:#ffc5ba!important}
html[data-rm-theme="dark"] body.rm-m2 .woocommerce a.remove:hover{background:#a31d35;color:#fff!important}

/* The existing side drawer supplies the same basket in either appearance. */
html[data-rm-theme="dark"] body.rm-m2 :is(.xoo-wsc-container,.xoo-wsc-slider,.xoo-wsc-drawer,.xoo-wsc-header,.xoo-wsc-drawer-header,.xoo-wsc-sl-heading,.xoo-wsc-body,.xoo-wsc-footer){background-color:var(--rm-dark-surface);color:var(--rm-ink);border-color:var(--rm-line)}
html[data-rm-theme="dark"] body.rm-m2 :is(.xoo-wsc-product,.xoo-wsc-sp-product,.xoo-wsc-sp-container,.xoo-wsc-dr-sp,.xoo-wsc-sm-front,.xoo-wsc-sm-back,.xoo-wsc-card-actionbar>* ){background-color:var(--rm-dark-raised);color:var(--rm-ink);border-color:var(--rm-line)}
html[data-rm-theme="dark"] body.rm-m2 .xoo-wsc-markup :is(p,a,label,th,td,span.amount,.xoo-wsc-sm-front,.xoo-wsc-sm-back,.xoo-wsc-card-actionbar,.xoo-wsc-bar-potitle,.xoo-wsc-bar-milestone-label,.xoo-wsc-shipping-destination span,.xoo-wsc-clist-label){color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 .xoo-wsc-markup :is(.xoo-wsc-bar-remtext,.xoo-wsc-bar-poamt,.xoo-wsc-bar-remtext .amount,.xoo-wsc-bar-remtext bdi,.xoo-wsc-bar-poamt .amount,.xoo-wsc-bar-poamt bdi){color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 .xoo-wsc-markup :is(.xoo-wsc-smr-del,.xoo-wsch-close,.xoo-wscdh-close,.xoo-wsc-sl-close,.xoo-wsc-remove-coupon span){color:#ffc5ba}
html[data-rm-theme="dark"] body.rm-m2 .xoo-wsc-markup :is(.xoo-wsc-qty,.xoo-wsc-chng){background-color:var(--rm-dark-field);color:var(--rm-ink);border-color:var(--rm-dark-border)}
html[data-rm-theme="dark"] body.rm-m2 .xoo-wsc-markup .xoo-wsc-qty-box{border-color:var(--rm-dark-border)}
html[data-rm-theme="dark"] body.rm-m2 .xoo-wsc-markup :is(.xoo-wsc-ft-btn,.xoo-wsc-btn,.woocommerce-shipping-calculator button[type="submit"]){background-color:var(--rm-action);color:#fff;border-color:var(--rm-action)}
html[data-rm-theme="dark"] body.rm-m2 .xoo-wsc-markup :is(.xoo-wsc-ft-btn,.xoo-wsc-btn):hover{background-color:var(--rm-action-hover);color:#fff}
html[data-rm-theme="dark"] body.rm-m2 .xoo-wsc-markup .xoo-wsc-ft-btn-continue{background:transparent;color:var(--rm-ink);border-color:var(--rm-dark-border)}
html[data-rm-theme="dark"] body.rm-m2 .xoo-wsc-markup .xoo-wsc-ft-btn-continue:hover{background:var(--rm-dark-raised);color:#fff;border-color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 .xoo-wsc-markup :is(.xoo-wsc-notice-success,.xoo-wsc-notice-success a){background-color:#263129;color:#eef8ef}
html[data-rm-theme="dark"] body.rm-m2 .xoo-wsc-markup :is(.xoo-wsc-notice-error,.xoo-wsc-notice-error a){background-color:#342723;color:#fff0eb}
html[data-rm-theme="dark"] body.rm-m2 .xoo-wsc-markup :is(.xoo-wsc-notice-success,.xoo-wsc-notice-error) a{text-decoration:underline;text-underline-offset:3px}
html[data-rm-theme="dark"] body.rm-m2 .xoo-wsc-markup :is(.xoo-wsc-psavings,.xoo-wsc-psavings *,.xoo-wsc-ft-amt.xoo-wsc-less,.xoo-wsc-cr-off){color:var(--rm-dark-success)}
html[data-rm-theme="dark"] body.rm-m2 .xoo-wsc-markup :is(.xoo-wsch-items-count,.xoo-wsch-save-count,.xoo-wsc-gift-ban){background:#a31d35;color:#fff}
html[data-rm-theme="dark"] body.rm-m2 .xoo-wsc-markup *::-webkit-scrollbar-track{background:#1b263a}
html[data-rm-theme="dark"] body.rm-m2 .xoo-wsc-markup *::-webkit-scrollbar-thumb{background:#a3a09b}
html[data-rm-theme="dark"] body.rm-m2 #yith-quick-view-modal .yith-wcqv-main{background:var(--rm-dark-surface);color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 #yith-quick-view-modal :is(p,.variations label,.product_meta){color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 :is(#yith-quick-view-close,.yith-quick-view-close){background:var(--rm-dark-surface);color:var(--rm-ink);border-color:var(--rm-dark-border)}

html[data-rm-theme="dark"] body.rm-m2 .rm-footer{background:#172135;border-color:var(--rm-line);color:var(--rm-ink)}
html[data-rm-theme="dark"] body.rm-m2 .rm-footer :is(p,.rm-footer-groups strong){color:var(--rm-muted)}
html[data-rm-theme="dark"] body.rm-m2 .rm-footer a{color:var(--rm-dark-link);text-decoration:underline;text-underline-offset:3px}
html[data-rm-theme="dark"] body.rm-m2 .rm-footer img{background:transparent;border:0;border-radius:0}

@media(max-width:1000px){
 body.rm-m2 .rm-nav-actions{margin-left:auto;gap:10px}
 body.rm-m2 .rm-header #mySidenav .rm-menu-close{top:16px;right:20px;min-height:44px;min-width:112px;padding:10px 14px;font-size:14px;line-height:1.4;font-weight:650;border:1px solid #867b90;border-radius:4px}
 body.rm-m2 .rm-header #mySidenav .rm-menu-close:focus{outline:3px solid #674579!important;outline-offset:3px}
 /* The navigation drawer uses the same navy surface as the dark header. */
 html[data-rm-theme="dark"] body.rm-m2 .rm-header .rm-nav-wrap #mySidenav{--rm-line:#626262;background:#1b263a!important;color:#f6f2eb;color-scheme:dark}
 html[data-rm-theme="dark"] body.rm-m2 .rm-header #mySidenav #site-navigation>a{color:#f6f2eb;border-color:#626262}
 html[data-rm-theme="dark"] body.rm-m2 .rm-header #mySidenav #site-navigation>a:hover{color:#ffffff}
 html[data-rm-theme="dark"] body.rm-m2 .rm-header #mySidenav .rm-menu-close{background:#26344b;color:#f6f2eb}
 html[data-rm-theme="dark"] body.rm-m2 .rm-header #mySidenav .rm-menu-close:focus{outline-color:#f6f2eb!important}
 html[data-rm-theme="dark"] body.rm-m2 .rm-header #mySidenav :is(a,button):focus-visible{outline-color:#f6f2eb!important;box-shadow:0 0 0 3px #111827!important}
}
@media(max-width:360px){body.rm-m2 .rm-theme-toggle{font-size:11px;padding-left:8px;padding-right:8px}}
@media(max-width:700px){
 body.rm-m2 ul.products li.product .button{min-height:44px}
 body.rm-m2 .rm-footer-groups a{min-height:44px;display:inline-flex;align-items:center}
}
@media(max-width:480px){
 body.rm-m2 .woocommerce :is(form.checkout,form.checkout_coupon) .form-row-first,
 body.rm-m2 .woocommerce :is(form.checkout,form.checkout_coupon) .form-row-last{width:100%;float:none}
 body.rm-m2 .woocommerce form.checkout_coupon :is(.input-text,.button){width:100%}
}
@media(prefers-reduced-motion:reduce){body.rm-m2 .rm-theme-toggle{transition:none;animation:none}}

/* M magenta unifies formerly crimson action buttons without recolouring the logo. */
body.rm-m2 {--rm-action:#9d0c46;--rm-action-hover:#790936}
html body.rm-m2 :is(input[type="submit"],.woocommerce a.added_to_cart.wc-forward,.pro-button a,.view-btn a,.more-btn a,.wc-ambisn-button,#footer .wp-block-search__button,#sidebar .wp-block-search__button) {background-color:var(--rm-action);color:#fff;border-color:var(--rm-action)}
html body.rm-m2 :is(input[type="submit"],.woocommerce a.added_to_cart.wc-forward,.pro-button a,.view-btn a,.more-btn a,.wc-ambisn-button,#footer .wp-block-search__button,#sidebar .wp-block-search__button):is(:hover,:active) {background-color:var(--rm-action-hover);color:#fff;border-color:var(--rm-action-hover)}
html body.rm-m2 .rm-game-world .rm-button:is(:hover,:active) {background:var(--rm-action-hover)}
.rm-m2 .rm-journey-8bit .rm-era-button:hover {background:var(--rm-action-hover);filter:none}

/* Measured interface palette. Brand lettering and illustrated worlds are fixed.
   Keep decorative separators separate from essential control boundaries. */
body.rm-m2 {
 --rm-ui-ink:#24263c;
 --rm-ui-muted:#3f4d60;
 --rm-ui-surface:#f4f6f8;
 --rm-ui-raised:#e5ebf2;
 --rm-ui-field:#ffffff;
 --rm-ui-boundary:#778396;
 --rm-ui-focus:#244c76;
 --rm-ui-focus-gap:#ffffff;
 --rm-ui-success:#23543a;
 --rm-ui-success-bg:#edf6f0;
 --rm-ui-warning:#674609;
 --rm-ui-warning-bg:#fff5dc;
 --rm-ui-danger:#8f2433;
 --rm-ui-danger-bg:#fff5ed;
 --rm-ui-disabled:#3f4d60;
 --rm-ui-disabled-bg:#e5ebf2;
}
html[data-rm-theme="dark"] body.rm-m2 {
 --rm-ui-ink:#f6f2eb;
 --rm-ui-muted:#d0ccc5;
 --rm-ui-surface:#1b263a;
 --rm-ui-raised:#26344b;
 --rm-ui-field:#111c2f;
 --rm-ui-boundary:#a3a09b;
 --rm-ui-focus:#f6f2eb;
 --rm-ui-focus-gap:#111827;
 --rm-ui-success:#c9e5ce;
 --rm-ui-success-bg:#263129;
 --rm-ui-warning:#f5dda3;
 --rm-ui-warning-bg:#38301f;
 --rm-ui-danger:#ffc5ba;
 --rm-ui-danger-bg:#342723;
 --rm-ui-disabled:#d0ccc5;
 --rm-ui-disabled-bg:#26344b;
}

/* Neutral surfaces belong to shop chrome, never to the era scenes or tiles. */
html:not([data-rm-theme="dark"]) body.rm-m2 :is(
 .rm-story,.woocommerce-products-header,.retromania-m2-filters,
 .rm-support-heading,.rm-support-aside,.rm-support-content blockquote,
 .rm-review-transcript,.rm-battery-transcript,.rm-support-content .rm-review-note,
 .rm-journal-card,.rm-journal-empty,.woocommerce form.login,.woocommerce form.register,
 .woocommerce-MyAccount-navigation,.cart_totals,#order_review,ul.order_details
) {background-color:var(--rm-ui-surface);color:var(--rm-ui-ink)}
html:not([data-rm-theme="dark"]) body.rm-m2 :is(.rm-support-heading,.woocommerce-products-header,.rm-support-content .rm-review-note,.rm-support-content blockquote) {border-top-color:var(--rm-ui-boundary);border-left-color:var(--rm-ui-boundary)}
html:not([data-rm-theme="dark"]) body.rm-m2 :is(.rm-support-heading .rm-eyebrow,.rm-support-aside .rm-eyebrow,.rm-journal-card .rm-eyebrow) {color:var(--rm-ui-focus)}
html:not([data-rm-theme="dark"]) body.rm-m2 :is(.rm-journal-image,table.shop_table th) {background-color:var(--rm-ui-raised)}
html:not([data-rm-theme="dark"]) body.rm-m2 #payment {background:var(--rm-ui-surface)!important}
html:not([data-rm-theme="dark"]) body.rm-m2 #payment div.payment_box {background:var(--rm-ui-raised);color:var(--rm-ui-ink)}
html:not([data-rm-theme="dark"]) body.rm-m2 #payment div.payment_box:before {border-bottom-color:var(--rm-ui-raised)}
html:not([data-rm-theme="dark"]) body.rm-m2 :is(
 .rm-support-nav a[aria-current="page"],.rm-era-system-nav a[aria-current="page"],
 .rm-journal-pagination .current,nav.woocommerce-pagination ul li .current,
 nav.woocommerce-pagination ul li a:hover,nav.woocommerce-pagination ul li a:focus
) {background:var(--rm-ui-raised);color:var(--rm-ui-ink);border-color:var(--rm-ui-boundary)}
html:not([data-rm-theme="dark"]) body.rm-m2 .rm-story .rm-button {background:#26344b;color:#ffffff}
html:not([data-rm-theme="dark"]) body.rm-m2 .rm-story .rm-button:hover {background:#172135;color:#ffffff}

html body.rm-m2 :is(
 .rm-nav-note,.rm-strip,.rm-section-title>p,.rm-section-title>a,.rm-era-results,
 .rm-era-system-nav a span,.woocommerce-breadcrumb,.woocommerce-result-count,
 .product_meta,.rm-support-intro,.rm-support-aside p,.rm-article-meta,
 .rm-service-artwork-caption,.rm-service-artwork figcaption,
 .rm-footer p,.rm-footer-groups strong
) {color:var(--rm-ui-muted)}
html body.rm-m2 :is(.rm-search input,main input,main textarea,.xoo-wsc-markup input)::placeholder {color:var(--rm-ui-muted);opacity:1}
html:not([data-rm-theme="dark"]) body.rm-m2 .rm-search button {color:var(--rm-ui-muted)}
html body.rm-m2 :is(#payment div.payment_box span.help,.woocommerce form.checkout small,.woocommerce form.checkout .checkout-inline-error-message) {color:var(--rm-ui-muted)}
html body.rm-m2 .woocommerce form.checkout .checkout-inline-error-message {color:var(--rm-ui-danger)}

/* SelectWoo uses data-selected for the saved choice, aria-selected for focus. */
html body.rm-m2 .select2-container--default .select2-results__option[data-selected="true"] {background:var(--rm-ui-raised);color:var(--rm-ui-ink)}
html body.rm-m2 .select2-container--default .select2-results__option--highlighted:is([data-selected],[aria-selected]) {background:var(--rm-ui-focus);color:var(--rm-ui-focus-gap)}
html body.rm-m2 .select2-container--default .select2-results__option[aria-disabled="true"] {background:var(--rm-ui-field);color:var(--rm-ui-muted)}

html body.rm-m2 .woocommerce-MyAccount-navigation ul li {padding:0;background:transparent}
html body.rm-m2 .woocommerce-MyAccount-navigation ul li a {background:var(--rm-ui-surface);color:var(--rm-ui-ink)}
html body.rm-m2 .woocommerce-MyAccount-navigation ul li a:hover,
html body.rm-m2 .woocommerce-MyAccount-navigation ul li.is-active a {background:var(--rm-ui-raised);color:var(--rm-ui-ink);border-left-color:var(--rm-ui-focus)}
html body.rm-m2 .woocommerce-MyAccount-navigation ul li a:hover {text-decoration:underline!important}

html body.rm-m2 :is(.woocommerce-info,.woocommerce-message,.woocommerce-error) {color:var(--rm-ui-ink)}
html:not([data-rm-theme="dark"]) body.rm-m2 .woocommerce-info {background:var(--rm-ui-surface);border-top-color:var(--rm-ui-focus)}
html:not([data-rm-theme="dark"]) body.rm-m2 .woocommerce-info:before {color:var(--rm-ui-focus)}
html body.rm-m2 .woocommerce-message {background:var(--rm-ui-success-bg);border-top-color:var(--rm-ui-success)}
html body.rm-m2 .woocommerce-message:before {color:var(--rm-ui-success)}
html body.rm-m2 .woocommerce-error {background:var(--rm-ui-danger-bg);border-top-color:var(--rm-ui-danger)}
html body.rm-m2 .woocommerce-error:before {color:var(--rm-ui-danger)}
html body.rm-m2 :is(.woocommerce-info,.woocommerce-message,.woocommerce-error) a:not(.button) {color:var(--rm-ui-ink);text-decoration:underline}
html body.rm-m2 .woocommerce-error :is(li,strong) {color:var(--rm-ui-danger)}
html:not([data-rm-theme="dark"]) body.rm-m2 .woocommerce form .form-row.woocommerce-invalid :is(input.input-text,select,textarea,.select2-selection) {border-color:var(--rm-ui-danger)!important}
html:not([data-rm-theme="dark"]) body.rm-m2 .woocommerce form .form-row.woocommerce-validated :is(input.input-text,select,textarea,.select2-selection) {border-color:var(--rm-ui-success)!important}

html:not([data-rm-theme="dark"]) body.rm-m2 :is(.rm-search,select,.quantity .qty,form .form-row input.input-text,form .form-row textarea,.select2-container .select2-selection--single,.select2-dropdown,.select2-search--dropdown .select2-search__field,.rm-support-nav a,.rm-era-system-nav a) {border-color:var(--rm-ui-boundary)}
html body.rm-m2 :is(.woocommerce span.onsale,span.onsale) {background:#a31d35;color:#ffffff}
html:not([data-rm-theme="dark"]) body.rm-m2 :is(.star-rating,.star-rating span,p.stars a) {color:#8a6000}
html[data-rm-theme="dark"] body.rm-m2 :is(.star-rating,.star-rating span,p.stars a) {color:#feaf18}
html body.rm-m2 .star-rating::before {color:var(--rm-ui-muted)}
html body.rm-m2 :is(.price del,#yith-quick-view-content .price del) {opacity:1;color:var(--rm-ui-muted)}
html body.rm-m2 :is(.price del *,#yith-quick-view-content .price del *) {color:inherit}
html body.rm-m2 :is(.button,button,input[type="submit"]):is(:disabled,[disabled],[aria-disabled="true"],.disabled),
html body.rm-m2 :is(.button,button,input[type="submit"]):is(:disabled,[disabled],[aria-disabled="true"],.disabled):hover {
 background:var(--rm-ui-disabled-bg)!important;color:var(--rm-ui-disabled)!important;
 border:1px solid var(--rm-ui-boundary)!important;opacity:1!important;cursor:not-allowed;
}

/* A two-tone focus ring stays legible on light, dark and illustrated surfaces. */
html:not([data-rm-theme="dark"]) body.rm-m2 :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
 outline:3px solid var(--rm-ui-focus)!important;outline-offset:3px!important;box-shadow:0 0 0 3px var(--rm-ui-focus-gap)!important;
}
/* Instant mode changes avoid an unreadable mid-transition foreground/background. */
html body.rm-m2,
html body.rm-m2 :is(.rm-header,.rm-theme-toggle,.rm-bag,.rm-menu-toggle) {transition-property:none}

/* Measure homepage lettering against the actual blue sky, not its pale fallback. */
html body.rm-m2 .rm-game-world h1 em {color:#6a1425!important}
html body.rm-m2 .rm-game-world .rm-eyebrow {color:#091320!important}

/* Keep the signature's original per-era treatment directly on the artwork. */
.rm-m2 .rm-journey-8bit .rm-era-empty {
 background:rgba(228,245,255,.9);padding:16px;width:max-content;max-width:100%;
}
@media(min-width:801px) {
 .rm-journey-handheld::before {
  background:linear-gradient(90deg,#eff3dcf5 0%,#eff3dce6 31%,#eff3dc99 47%,transparent 64%);
 }
 .rm-journey-advance::before {
  background:linear-gradient(90deg,#eff5e7f5 0%,#eff5e7e6 31%,#eff5e799 47%,transparent 64%);
 }
}
@media(max-width:800px) {
 .rm-journey-8bit::before {
  background:linear-gradient(90deg,rgba(200,234,255,.85),rgba(200,234,255,.533) 40%,rgba(200,234,255,.12) 100%);
 }
 .rm-journey-16bit::before {
  background:linear-gradient(180deg,rgba(22,59,72,.93),rgba(21,55,70,.8) 85%,rgba(21,55,70,0) 100%);
 }
 .rm-journey-3d .rm-era-systems,
 .rm-journey-advance .rm-era-systems,
 .rm-journey-switch .rm-era-systems,
 .rm-journey-modern .rm-era-systems {
  width:max-content;max-width:100%;padding:4px 7px;border-radius:3px;
 }
 .rm-journey-3d .rm-era-systems {background:rgba(33,20,56,.8)}
 .rm-journey-advance .rm-era-systems,
 .rm-journey-switch .rm-era-systems,
 .rm-journey-modern .rm-era-systems {background:rgba(255,254,245,.93)}
}
