/* R112: restore the approved light scope and colours exactly as requested.
   - Yellow buttons: contour + interior yellow.
   - Red buttons: contour + interior red.
   - Large framed panels: contour only.
   - Homepage franchise row: contour + interior, one card at a time.
   - No palette changes outside those scopes. */

.dd-interactions-r110 body .dd-r110-target {
  --dd-r110-edge: #e6c77f !important;
  --dd-r110-corner: #d9b96e !important;
  --dd-r110-inner: #eedaa2 !important;
  --dd-r110-highlight: #fff0c5 !important;
  --dd-r110-glow: #e3bb62 !important;
  --dd-r110-halo: #bc882b80 !important;
  --dd-r112-filter: drop-shadow(0 0 2px #e3bb62) drop-shadow(0 0 4px #bc882b80);
}
.dd-interactions-r110 body .dd-r110-target.btn:not(.gold),
.dd-interactions-r110 body .dd-r110-target.dd-hero-action--book,
.dd-interactions-r110 body .dd-r110-target.filter-btn[aria-pressed="true"] {
  --dd-r110-edge: var(--red-bright) !important;
  --dd-r110-corner: var(--red-bright) !important;
  --dd-r110-inner: var(--red-bright) !important;
  --dd-r110-highlight: var(--red-bright) !important;
  --dd-r110-glow: var(--red-bright) !important;
  --dd-r110-halo: rgba(188, 38, 53, .5) !important;
  --dd-r112-filter: drop-shadow(0 0 2px var(--red-bright)) drop-shadow(0 0 4px rgba(188, 38, 53, .5));
}

/* Base resting state for all managed framed elements. */
.dd-interactions-r110 body .dd-r110-target:not(.dd-r110-lit) > .dd-archive-frame,
.dd-interactions-r110 body .dd-r110-target:is(:disabled, [aria-disabled="true"], [hidden], [inert]) > .dd-archive-frame,
.dd-interactions-r110 body :is(:disabled, [aria-disabled="true"], [hidden], [inert]) .dd-r110-target > .dd-archive-frame {
  --dd-frame-edge: #751820 !important;
  --dd-frame-corner: #8a2731 !important;
  --dd-frame-inner: #9a774b !important;
  --dd-frame-highlight: #c4a064 !important;
  --dd-frame-tab: #8f343b !important;
}
.dd-interactions-r110 body .dd-r110-target:not(.dd-r110-lit) > .dd-archive-frame .file-outer,
.dd-interactions-r110 body .dd-r110-target:is(:disabled, [aria-disabled="true"], [hidden], [inert]) > .dd-archive-frame .file-outer,
.dd-interactions-r110 body :is(:disabled, [aria-disabled="true"], [hidden], [inert]) .dd-r110-target > .dd-archive-frame .file-outer {
  filter: none !important;
}

/* Restore contour lighting everywhere that is allowed. */
.dd-interactions-r110 body .dd-r110-target.dd-r110-lit:not(:disabled, [aria-disabled="true"], [hidden], [inert]):not(:is(:disabled, [aria-disabled="true"], [hidden], [inert]) *) > .dd-archive-frame {
  --dd-frame-edge: var(--dd-r110-edge) !important;
  --dd-frame-corner: var(--dd-r110-corner) !important;
  --dd-frame-inner: var(--dd-r110-inner) !important;
  --dd-frame-highlight: var(--dd-r110-highlight) !important;
  --dd-frame-tab: var(--dd-r110-corner) !important;
}
.dd-interactions-r110 body .dd-r110-target.dd-r110-lit:not(:disabled, [aria-disabled="true"], [hidden], [inert]):not(:is(:disabled, [aria-disabled="true"], [hidden], [inert]) *) > .dd-archive-frame .file-outer {
  filter: var(--dd-r112-filter) !important;
}

/* Interior light is off by default for all framed boxes. */
.dd-interactions-r110 body .dd-r110-target > .dd-archive-frame > .dd-r110-light-wash {
  display: none !important;
  opacity: 0 !important;
}

/* The franchise row on the homepage is the only group of framed boxes that
   should light both the contour and the interior. */
.dd-interactions-r110 body .franchise-home .franchise-grid .franchise-card.dd-r110-lit > .dd-archive-frame > .dd-r110-light-wash {
  display: block !important;
  opacity: 1 !important;
}

/* Approved active fills for buttons. */
.dd-interactions-r110 body .dd-r110-target.btn { --dd-r112-active-fill: #700f20; }
.dd-interactions-r110 body .dd-r110-target.btn.gold { --dd-r112-active-fill: #332715; }
.dd-interactions-r110 body .dd-r110-target.dd-hero-action--book { --dd-r112-active-fill: #a7373e; }
.dd-interactions-r110 body .dd-r110-target.dd-hero-action--demo { --dd-r112-active-fill: #32191c; }

.dd-interactions-r110 body .dd-r110-target.dd-archive-action:is(.btn, .dd-hero-action, .diblet-promo-link, .filter-btn).dd-r110-lit:not(:disabled, [aria-disabled="true"], [hidden], [inert]):not(:is(:disabled, [aria-disabled="true"], [hidden], [inert]) *)::before {
  background: var(--dd-r112-active-fill) !important;
}

@media (hover: hover) and (pointer: fine) {
  .dd-interactions-r110:not(.dd-r110-nonmouse) body .dd-r110-target.dd-archive-action:is(.btn, .dd-hero-action, .diblet-promo-link, .filter-btn):hover:not(:has(.dd-r110-target:hover)):not(:disabled, [aria-disabled="true"], [hidden], [inert]):not(:is(:disabled, [aria-disabled="true"], [hidden], [inert]) *)::before {
    background: var(--dd-r112-active-fill) !important;
  }
  .dd-interactions-r110:not(.dd-r110-nonmouse) body .franchise-home .franchise-grid .franchise-card:hover:not(:has(.dd-r110-target:hover)):not(:disabled, [aria-disabled="true"], [hidden], [inert]):not(:is(:disabled, [aria-disabled="true"], [hidden], [inert]) *) > .dd-archive-frame > .dd-r110-light-wash {
    display: block !important;
    opacity: 1 !important;
  }
}

/* The game launch button keeps its existing dedicated behaviour. */
#game-wrap #game-launch.dd-archive-action:not(:disabled):not([aria-disabled="true"]):is(:hover, :active, :focus-visible)::before {
  background: #700f20 !important;
}
#game-wrap #game-launch:not(:disabled):not([aria-disabled="true"]):is(:hover, :active, :focus-visible) > .dd-archive-frame {
  --dd-frame-edge: var(--red-bright) !important;
  --dd-frame-corner: var(--red-bright) !important;
  --dd-frame-inner: var(--red-bright) !important;
  --dd-frame-highlight: var(--red-bright) !important;
  --dd-frame-tab: var(--red-bright) !important;
}
#game-wrap #game-launch:not(:disabled):not([aria-disabled="true"]):is(:hover, :active, :focus-visible) > .dd-archive-frame .file-outer {
  filter: drop-shadow(0 0 2px var(--red-bright)) drop-shadow(0 0 4px rgba(188, 38, 53, .5)) !important;
}
#game-wrap #game-launch:is(:disabled, [aria-disabled="true"])::before {
  background-color: var(--dd-action-colour, transparent) !important;
  background-image: var(--dd-action-image, none) !important;
}
#game-wrap #game-launch:is(:disabled, [aria-disabled="true"]) > .dd-archive-frame .file-outer { filter: none !important; }

@media (forced-colors: active) {
  .dd-interactions-r110 body .dd-r110-target.dd-archive-action:is(.btn, .dd-hero-action)::before {
    display: none !important;
  }
}
