/* Tempered smoke, a pale bevel and a narrow bronze edge. The scene beneath a
   surface supplies all its texture; no duplicate painting is composited here. */
:root {
  --rh-glass-pane: linear-gradient(121deg,rgba(38,42,35,.60),rgba(13,23,25,.64) 46%,rgba(22,31,29,.58));
  --rh-glass-portrait: linear-gradient(124deg,rgba(31,40,35,.73),rgba(15,26,27,.70) 52%,rgba(25,32,27,.69));
  --rh-glass-dense: linear-gradient(123deg,rgba(32,38,33,.82),rgba(16,25,26,.85) 54%,rgba(27,31,27,.81));
  --rh-glass-nav: linear-gradient(180deg,rgba(12,19,21,.78),rgba(19,26,25,.63) 72%,rgba(45,37,25,.67));
  --rh-glass-tray: linear-gradient(98deg,rgba(17,26,26,.69),rgba(18,27,27,.62) 50%,rgba(27,32,27,.71));
  --rh-glass-scrim: radial-gradient(ellipse at 52% 46%,rgba(8,13,15,.11) 13%,rgba(8,13,14,.28) 77%,rgba(7,12,14,.34));
  --rh-glass-filter: blur(2px) saturate(.9);
  --rh-glass-shop-filter: blur(4px) saturate(.83);
  --rh-glass-edge: #b49c70;
  --rh-glass-hairline: #b09a705e;
  --rh-glass-title: #ffe8b7;
  --rh-glass-text: #fbf4e4;
  --rh-glass-muted: #eadfc8;
  --rh-glass-shadow: 0 12px 42px #08101165,inset 0 1px #ffeac840,inset 0 0 0 1px #f3dc9f18;
}
.rh-navigation {
  background:var(--rh-glass-nav); border-bottom-color:#ad9266;
  -webkit-backdrop-filter:var(--rh-glass-filter); backdrop-filter:var(--rh-glass-filter);
  box-shadow:0 1px #191b1677,0 4px 15px #1015114d,inset 0 1px #fae8b91c;
}
.rh-navigation .rh-nav-track>button { color:#f0e6cf; text-shadow:0 1px 3px #08100ff0; }
.rh-navigation .rh-nav-track>:is(.is-lit,[aria-current=page],[data-route=home]) { color:var(--rh-glass-title); }
.rh-atlas .tray {
  background:var(--rh-glass-tray); border-top-color:#bba073;
  -webkit-backdrop-filter:var(--rh-glass-filter); backdrop-filter:var(--rh-glass-filter);
  box-shadow:0 -4px 16px #11151137,inset 0 1px #f5e0ae1c;
}
.rh-atlas .tray :is(.meta,.reward,.goals li,.scout) { color:var(--rh-glass-muted); text-shadow:0 1px 3px #0b1312; }
.rh-atlas .tray :is(.chapter,.objective-label,.reward b) { color:var(--rh-glass-title); text-shadow:0 1px 3px #0b1312; }
.rh-atlas .tray .missionTitle { color:var(--rh-glass-text); text-shadow:0 2px 6px #091110b0; }

.ax-dialog, .wr-avatar-dialog {
  color:var(--rh-glass-text); background:var(--rh-glass-pane);
  border:1px solid var(--rh-glass-edge); box-shadow:var(--rh-glass-shadow);
  -webkit-backdrop-filter:var(--rh-glass-filter); backdrop-filter:var(--rh-glass-filter);
  scrollbar-color:#ae956a #1f2a29;
}
.ax-dialog::backdrop, .wr-avatar-dialog::backdrop { background:var(--rh-glass-scrim); }
.ax-dialog .ax-d-head h2,.ax-dialog h3 { color:var(--rh-glass-title); text-shadow:0 1px 4px #13170ee0; }
.ax-dialog :is(p,label,small) { color:var(--rh-glass-text); text-shadow:0 1px 3px #0b1516; }
.ax-dialog .ax-d-head button { color:var(--rh-glass-title); }
.ax-dialog button:not(.ax-d-head button) { background:#272d26d9; border-color:#a38d64; color:var(--rh-glass-title); }
.ax-dialog button:not(:disabled):is(:hover,:focus-visible) { background:#4d4737ed; color:#ffefc7; }
.ax-dialog select { color:#fff3da; color-scheme:dark; background:#26302d; border-color:#a9956d; }
.ax-dialog:has(.dr-reveal) { -webkit-backdrop-filter:none; backdrop-filter:none; }

.wr-avatar-dialog { background:var(--rh-glass-portrait); }
.wr-avatar-dialog .wr-avatar-layout { background:transparent; }
.wr-avatar-dialog .wr-avatar-layout :is(h2,h3), .wr-avatar-dialog .wr-avatar-close { color:var(--rh-glass-title); }
.wr-avatar-dialog .wr-avatar-layout :is(header p,.wr-avatar-preview small,footer>span) { color:var(--rh-glass-muted); }
.wr-avatar-dialog :is(.wr-avatar-layout header,.wr-avatar-layout footer,.wr-avatar-preview) { border-color:var(--rh-glass-hairline); }
.wr-avatar-dialog .wr-avatar-gallery { scrollbar-color:#a88e65 #1d2828; }
.wr-avatar-dialog .wr-avatar-choice { color:var(--rh-glass-text); }
.wr-avatar-dialog .wr-avatar-choice[aria-pressed=true] { background:#7d674650!important; border-color:#ddbb80!important; }
.wr-avatar-dialog .wr-avatar-choice:hover { background:#957e532f!important; }
.wr-avatar-dialog .wr-avatar-close:is(:hover,:focus-visible) { background:#5c5139c9; }
.wr-avatar-dialog .wr-avatar-layout button:focus-visible { outline:2px solid #ffe2a3;outline-offset:2px; }

/* Forms, odds and receipts share this treatment. A card inspected from the
   collection, a card reveal, and full card art keep their own reading surfaces. */
.cl-shade:has(.cl-prefs,.cl-checkout,.cl-odds,.cl-top-up-actions,.cl-history-kinds,[data-rewards-done]) {
  background:var(--rh-glass-scrim);
  & .cl-dialog {
    --cl-muted:var(--rh-glass-muted); --cl-gold:var(--rh-glass-title); --cl-line:var(--rh-glass-hairline);
    --wr-ink:var(--rh-glass-text); color:var(--rh-glass-text);
    border:1px solid var(--rh-glass-edge); border-radius:2px; background:var(--rh-glass-dense);
    box-shadow:var(--rh-glass-shadow); scrollbar-color:#ae956a #202a28;
    -webkit-backdrop-filter:var(--rh-glass-shop-filter); backdrop-filter:var(--rh-glass-shop-filter);
  }
  & .cl-dialog :is(h2,h3,dt,.cl-log-entry summary) { color:var(--rh-glass-title); }
  & .cl-dialog :is(p,.cl-subtle,.cl-select>span,time,.cl-log-pack small,.cl-log-entry,.cl-log-pack,.cl-receipts small) { color:var(--rh-glass-muted); }
  & .cl-dialog :is(strong,dd,b,.cl-checkout,.cl-receipts,.cl-history-pages) { color:var(--rh-glass-text); }
  & .cl-dialog .cl-note { color:var(--rh-glass-text); background:#d1b57915; }
  & .cl-dialog .cl-odds { background:#f3d6a30b; }
  & .cl-dialog .cl-btn { border:1px solid #a38c63; color:#faebce; background:#262f2ce6; box-shadow:inset 0 1px #e0ba7d23; }
  & .cl-dialog .cl-btn:is([aria-pressed=true],:hover,:focus-visible):not(:disabled) { color:#fff2d3; background:#4e4938; border-color:#e2c58c; }
  & .cl-dialog .cl-primary { color:#fff2cd!important; background:linear-gradient(110deg,#513027,#6a4130,#4a3027);border-color:#bca070; }
  & .cl-dialog .cl-primary:is(:hover,:focus-visible):not(:disabled) { background:#744b37; }
  & .cl-dialog .cl-close { color:var(--rh-glass-title); background:transparent; border-color:transparent; }
  & .cl-dialog :is(select,input:not([type=checkbox])) { color:#fff2d5; background:#27312d; border-color:#a58e65; color-scheme:dark; }
  & .cl-dialog :is(button,select,input,summary):focus-visible { outline:2px solid #ffe2a3;outline-offset:2px; }
}
/* Let terrain read through a modal without doubling the lettering behind it. */
#play-screen:has(.ax-dialog[open]) .rh-atlas :is(.hero,.seal-name,.numeral,.mastery span,.mobile-index,.tray>*) { opacity:.48; }
body:has(.wr-avatar-dialog[open]) .ll-home :is(.ll-home-column,.ll-portrait-row,.ll-footer) { opacity:.32; }
.cl-shell:has(.cl-shade :is(.cl-prefs,.cl-checkout,.cl-odds,.cl-top-up-actions,.cl-history-kinds,[data-rewards-done])) .cl-main[inert] :is(.cl-wallet,.cl-deck-tools,.cl-deck-switch,.cl-list,.cl-factions,.cl-pack-copy,.cl-catalog .cl-list-title,.cl-filters,.rh-rarity-key,.cl-top-up-tier>b,.cl-top-up-tier>strong,.cl-top-up-tier>small) { opacity:.52; }
@media (max-width:650px), (max-height:500px) {
  :root { --rh-glass-filter:blur(1.25px);--rh-glass-shop-filter:blur(2px); }
}
html[data-rh-quality=low] { --rh-glass-filter:none; --rh-glass-shop-filter:none; }
@media (prefers-reduced-transparency:reduce) {
  :root {
    --rh-glass-pane:#202926;--rh-glass-portrait:#202926;--rh-glass-dense:#202926;--rh-glass-nav:#171f20;--rh-glass-tray:#1e2828;
    --rh-glass-scrim:#080e11a8;--rh-glass-filter:none;--rh-glass-shop-filter:none;
  }
}
@media (forced-colors:active) {
  :root {
    --rh-glass-pane:Canvas;--rh-glass-portrait:Canvas;--rh-glass-dense:Canvas;--rh-glass-nav:Canvas;--rh-glass-tray:Canvas;
    --rh-glass-scrim:transparent;--rh-glass-filter:none;--rh-glass-shop-filter:none;
    --rh-glass-edge:CanvasText;--rh-glass-hairline:CanvasText;--rh-glass-title:CanvasText;
    --rh-glass-muted:CanvasText;--rh-glass-text:CanvasText;--rh-glass-shadow:none;
  }
  :is(.ax-dialog,.wr-avatar-dialog,.cl-dialog) :focus-visible { outline:2px solid Highlight!important; }
  .wr-avatar-dialog .wr-avatar-choice[aria-pressed=true] { border-color:Highlight!important; }
}
