/* Feature navigation is part of the Home showcase, with its own invitation
   and a stationary surface for the two manual paging controls. */
#main-content-home .home-showcase {
  --discovery-light:220 185 130;
  --discovery-pad:clamp(22px,2.5vw,38px);
  --discovery-text:15px;
}
#main-content-home .home-showcase[data-current-feature=studio],
#main-content-home .home-showcase[data-current-feature=market] { --discovery-light:197 211 225; }
#main-content-home .home-showcase[data-current-feature=sanctuary] { --discovery-light:231 174 193; }
#main-content-home .home-showcase[data-current-feature=youth] { --discovery-light:188 209 167; }
#main-content-home .home-showcase .showcase-content { display:block; }
#main-content-home .encore-mast {
  position:relative;z-index:5;isolation:isolate;border-radius:8px 8px 0 0;
  border:1px solid rgb(var(--discovery-light) / .25);border-bottom:0;
  background:radial-gradient(ellipse at 76% -55%,rgb(var(--discovery-light) / .2),transparent 58%),
             linear-gradient(110deg,#1d1b19,#141413 64%,#1a1a1a);
}
#main-content-home .encore-intro {
  isolation:isolate;position:relative;overflow:hidden;
  padding:21px var(--discovery-pad) 16px;
}
#main-content-home .encore-intro::before {
  content:"";position:absolute;z-index:-1;pointer-events:none;inset:0;
  background:url('/assets/home-medallion-r7-320.webp') no-repeat 87% 45% / 245px auto;
  opacity:.15;mix-blend-mode:luminosity;
}
#main-content-home .encore-intro::after {
  content:"";position:absolute;inset:0 2% auto;height:1px;
  background:linear-gradient(90deg,transparent,rgb(var(--discovery-light) / .8) 27%,rgb(var(--discovery-light) / .15) 67%,transparent);
}
@layer ar-home-catalog {
  body[data-ar-page=home] #main-content-home .home-showcase .encore-intro h2 {
    color:#fff4e3 !important;font:400 clamp(32px,2.75vw,43px)/1.1 Georgia,serif !important;
    letter-spacing:-.02em !important; text-wrap:balance; text-align:left !important; margin:0 !important;
  }
  body[data-ar-page=home] #main-content-home .home-showcase .encore-intro h2 em {
    color:rgb(var(--discovery-light)) !important; font:italic .93em/1.05 Georgia,serif !important;
    letter-spacing:-.035em !important; white-space:nowrap;
  }
}
#main-content-home .encore-tools {
  position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:22px;padding:7px var(--discovery-pad);border-top:1px solid rgb(var(--discovery-light) / .12);
  background:linear-gradient(90deg,#141413cc,#14141388 70%,transparent);
}
#main-content-home .encore-intro h2 > span { display:inline-block; }
@layer ar-home-catalog {
  body[data-ar-page=home] #main-content-home .home-showcase .encore-intro h2 > span {
    font:inherit !important; color:inherit !important;letter-spacing:inherit !important;
  }
}
#main-content-home .encore-tools .showcase-start {display:flex;align-items:center;flex-wrap:nowrap;gap:14px;margin:0;width:auto;border:0;}
#main-content-home .home-showcase .encore-tools .showcase-controls {display:flex;align-items:center;gap:22px;padding:0;}
#main-content-home .home-showcase .encore-tools .showcase-controls[hidden] {display:none !important;}
#main-content-home .encore-tools .encore-paddles {
  display:flex;align-items:center;gap:5px;white-space:nowrap;
}
#main-content-home .encore-paddles .showcase-count {
  font-variant-numeric:tabular-nums;display:inline-block;
  margin:0 9px 0 0;border-inline-start:1px solid rgb(var(--discovery-light) / .27);padding-inline-start:18px;
}
#main-content-home .encore-paddles .showcase-control i {
  position:relative;box-sizing:border-box;width:1.12em;height:.09em;border:0;rotate:0;
  background:currentColor; flex:none;
}
#main-content-home .encore-paddles .showcase-control i::after {
  content:"";position:absolute;box-sizing:border-box;right:0;top:50%;width:.48em;height:.48em;
  border-right:.105em solid currentColor;border-top:.105em solid currentColor;
  transform:translateY(-50%) rotate(45deg);
}
#main-content-home .encore-paddles .showcase-control.showcase-previous i {rotate:180deg;}
#main-content-home .encore-paddles .showcase-control.showcase-next i {rotate:0deg;}
@layer ar-home-catalog {
  body[data-ar-page=home] #main-content-home .home-showcase .encore-paddles .showcase-control {
    display:inline-flex;align-items:center;justify-content:center;gap:.62em;
    min-height:var(--reel-hit) !important;min-width:var(--reel-hit);padding:.3em 1.05em;
    font:650 var(--discovery-text)/1.15 system-ui,sans-serif !important; letter-spacing:.015em !important;
    border:1px solid rgb(var(--discovery-light) / .48) !important;
    border-radius:5px !important;color:#f9efdd !important;
    background:linear-gradient(163deg,rgb(var(--discovery-light) / .115),#181715 80%) !important;
    box-shadow:inset 0 1px rgb(var(--discovery-light) / .15) !important;
  }
  body[data-ar-page=home] #main-content-home .home-showcase .encore-paddles .showcase-next {
    color:#1a1714 !important;
    background:linear-gradient(145deg,#f1e8d8,rgb(var(--discovery-light)) 85%) !important;
    border-color:rgb(var(--discovery-light)) !important;box-shadow:inset 0 1px #fff9 !important;
  }
  body[data-ar-page=home] #main-content-home .home-showcase .encore-paddles .showcase-control:hover {
    border-color:#f2dfb8 !important;filter:brightness(1.12);
  }
  body[data-ar-page=home] #main-content-home .home-showcase .encore-tools .reel-shortcut {
    padding-inline:0; color:#e5daca !important; gap:.45em; border:none !important;
  }
  body[data-ar-page=home] #main-content-home .home-showcase .encore-tools .reel-shortcut:hover {color:#fff4df !important; text-decoration:underline !important; text-underline-offset:.25em;}
}
#main-content-home .home-showcase .showcase-slides,
#main-content-home .home-showcase .showcase-slide {border-radius:0 0 7px 7px;}
#main-content-home .home-showcase .encore-tools .prem-index {right:0;top:calc(100% + 4px);}

@media (orientation:portrait) {
  html[data-unified-phone-layout] #main-content-home .home-showcase {
    --discovery-pad:36px;--discovery-text:var(--reel-ui);
  }
  html[data-unified-phone-layout] #main-content-home .home-showcase .showcase-content {display:block;}
  html[data-unified-phone-layout] #main-content-home .encore-intro {padding:33px var(--discovery-pad) 24px;}
  html[data-unified-phone-layout] #main-content-home .encore-intro::before {background-size:435px auto;background-position:104% 48%;opacity:.115;}
  @layer ar-home-catalog {
    html[data-unified-phone-layout] body[data-ar-page=home] #main-content-home .home-showcase .encore-intro h2 {
      font-size:60px !important;line-height:1.1 !important;text-wrap:balance;
    }
  }
  html[data-unified-phone-layout] #main-content-home .encore-tools {
    display:flex;flex-direction:column;align-items:stretch;gap:0;border-top:0;
    background:transparent;padding:0 var(--discovery-pad) 13px;
  }
  html[data-unified-phone-layout] #main-content-home .encore-tools .showcase-start {
    width:100%;display:flex;justify-content:flex-start;gap:38px;grid-column:auto;grid-row:auto;
  }
  html[data-unified-phone-layout] #main-content-home .home-showcase .encore-tools .showcase-controls {
    display:flex;align-items:center;justify-content:space-between;
    gap:6px;padding:14px 0 0;border-top:2px solid rgb(var(--discovery-light) / .16);
  }
  html[data-unified-phone-layout] #main-content-home .encore-tools .prem-picker {position:relative;}
  html[data-unified-phone-layout] #main-content-home .encore-tools .prem-index {left:0;right:auto;}
  html[data-unified-phone-layout] #main-content-home .encore-tools .encore-paddles {gap:12px;}
  html[data-unified-phone-layout] #main-content-home .encore-paddles .showcase-count {display:none;}
  html[data-unified-phone-layout] #main-content-home .encore-tools .reel-shortcut .reel-book-icon {display:block;}
  html[data-unified-phone-layout] #main-content-home .encore-tools .showcase-start .reel-shortcut-portrait {display:block;}
  @layer ar-home-catalog {
    html[data-unified-phone-layout] body[data-ar-page=home] #main-content-home .home-showcase .encore-tools .prem-browse {padding-inline:0 !important;}
    html[data-unified-phone-layout] body[data-ar-page=home] #main-content-home .home-showcase .encore-paddles .showcase-control {padding-inline:.85em;border-radius:.26em !important;}
  }
}
@media (max-device-width:360px) and (orientation:portrait) {
  html[data-unified-phone-layout] #main-content-home .home-showcase {--discovery-pad:28px;}
  html[data-unified-phone-layout] #main-content-home .encore-tools .encore-paddles {gap:9px;}
}
@media (orientation:landscape) {
  html[data-unified-phone-layout] #main-content-home .home-showcase {--discovery-pad:24px;--discovery-text:var(--reel-ui);}
  html[data-unified-phone-layout] #main-content-home .encore-tools {gap:12px;padding-block:4px;}
  html[data-unified-phone-layout] #main-content-home .encore-intro {padding-block:14px;}
  html[data-unified-phone-layout] #main-content-home .encore-tools .showcase-start {gap:14px;}
  html[data-unified-phone-layout] #main-content-home .encore-tools .showcase-controls {gap:12px;}
  html[data-unified-phone-layout] #main-content-home .encore-paddles .showcase-count {display:none;}
  html[data-unified-phone-layout] #main-content-home .encore-tools .showcase-start :is(.reel-book-icon,.reel-shortcut-portrait) {display:none;}
  @layer ar-home-catalog {
    html[data-unified-phone-layout] body[data-ar-page=home] #main-content-home .home-showcase .encore-paddles .showcase-control {padding-inline:.69em;}
  }
}
@media (prefers-reduced-motion:no-preference){
  #main-content-home .encore-paddles .showcase-control i {transition:translate .18s ease;}
  #main-content-home .encore-paddles .showcase-previous:hover i {translate:-.14em;}
  #main-content-home .encore-paddles .showcase-next:hover i {translate:.14em;}
}

#main-content-home .home-showcase .enc-library {
  container-type:inline-size;
  display:grid;
  grid-template-columns:42% minmax(0,1fr);
  align-items:center;
  min-height:clamp(440px,38vw,532px);
  isolation:isolate;
  background:#1b1712;
}
#main-content-home .enc-library :is(.enc-library-hall,.enc-library-light) {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}
#main-content-home .enc-library-hall {
  display:block;
  object-fit:cover;
  object-position:30% 50%;
}
#main-content-home .enc-library-light {
  background:linear-gradient(90deg,#110f0df2 1%,#1e1912bc 37%,#1a1511a3 64%,#120f0bd4 100%),
    linear-gradient(0deg,#120f0be8,transparent 63%);
}
#main-content-home .home-showcase .enc-library .showcase-caption {
  grid-column:1;grid-row:1;
  position:relative;
  z-index:1;
  align-self:center;
  margin:0;
  width:auto;
  padding:8% 0 8% 12%;
}
#main-content-home .enc-library-collection {
  position:relative;
  z-index:1;
  grid-column:2;grid-row:1;
  display:grid;
  grid-template-columns:1fr 1.2fr 1fr;
  gap:2.3%;
  align-items:end;
  padding:7% 7% 7% 3%;
}
#main-content-home .enc-library-study {
  min-width:0;
  margin:0;
  display:grid;
  grid-template-rows:auto auto;
}
#main-content-home .enc-library-window {
  position:relative;
  overflow:hidden;
  aspect-ratio:.69;
  border-radius:55% 55% 2px 2px / 26% 26% 2px 2px;
  background:#292117;
  box-shadow:0 0 0 1px #dbb37680,0 10px 30px #0c080778;
}
#main-content-home .enc-library-window::after {
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  box-shadow:inset 0 0 1px 1px #ffe6ae2b;
  background:linear-gradient(0deg,#25190d3a,transparent 38%);
}
#main-content-home .enc-library-gospel .enc-library-window {aspect-ratio:.645}
#main-content-home .enc-library-window img {display:block;width:100%;height:100%;object-fit:cover}
#main-content-home .enc-library-translations img {object-position:36% 61%}
#main-content-home .enc-library-gospel img {object-position:68% center}
#main-content-home .enc-library-return img {object-position:55% center}
@layer ar-home-catalog {
  body[data-ar-page="home"] #main-content-home .home-showcase .enc-library .reel-description {
    min-height:0;
    max-width:34ch;
  }
  body[data-ar-page="home"] #main-content-home .home-showcase .enc-library-study {
    margin:0 !important;
    padding:0 !important;
    background:none !important;
    border:0 !important;
  }
  body[data-ar-page="home"] #main-content-home .home-showcase .enc-library-study figcaption {
    padding:.8em 0 0 !important;
    margin:0 !important;
    color:#f7e6c9 !important;
    font:500 var(--enc-label,clamp(14px,1.55cqw,21px))/1.15 Georgia,serif !important;
    letter-spacing:-.015em !important;
    text-align:center;
    text-wrap:balance;
    text-shadow:0 1px 7px #050402 !important;
  }
}
@media (orientation:portrait), (max-width:700px) {
  #main-content-home .home-showcase .enc-library {
    min-height:0;
    --enc-label:3.7cqw;
  }
  #main-content-home .home-showcase .enc-library .enc-library-hall {
    height:73cqw;object-position:52% center;
    mask-image:linear-gradient(#000 0 62%,transparent 96%);
  }
  #main-content-home .home-showcase .enc-library .enc-library-light {
    background:linear-gradient(0deg,#1b1712 0%,#1b171244 47%,#17130fe0 100%);
  }
  #main-content-home .home-showcase .enc-library {display:flex;flex-direction:column;align-items:stretch}
  #main-content-home .home-showcase .enc-library-collection {
    order:-1;
    grid-template-columns:1fr 1.18fr 1fr;
    padding:6% 5.8% 4%;
    gap:3%;
  }
  #main-content-home .home-showcase .enc-library .showcase-caption {
    padding:4% 5.8% 7%;
    align-self:stretch;
  }
}

/* Colours and frontal lighting are taken from the public Aletheian Market. */
#main-content-home .sm-market { --sm-line:#92979d42; --reel-accent:#d7dbde; }
#main-content-home .sm-market .sm-panorama {
  grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);
  grid-template-rows:auto auto;
  background:#090b0d;
}
#main-content-home .sm-market .mk-store-mark {
  position:relative; z-index:1; grid-area:1 / 1; align-self:end;
  width:98%; aspect-ratio:4.45; margin:0; padding:0; overflow:hidden;
  mix-blend-mode:screen;
  --mk-lettering:radial-gradient(ellipse 49% 17% at 50% 67%,#000 75%,transparent 100%),
                   radial-gradient(ellipse 10% 32% at 50% 23%,#000 32%,transparent 95%);
  mask-image:var(--mk-lettering); mask-composite:add;
}
#main-content-home .sm-market .mk-store-mark img {
  display:block; position:absolute; width:123%; max-width:none; height:auto; top:-28%; left:-11.5%;
  filter:brightness(1.2) contrast(1.55);
}
#main-content-home .sm-market .sm-panel {
  grid-area:1 / 1 / 3 / -1;
  background:
    radial-gradient(ellipse 30% 61% at 65% 57%,#8a959a 0%,#687379 18%,#414b51 46%,#20272b 72%,transparent 100%),
    linear-gradient(115deg,#080b0d,#1b2024 61%,#121518);
}
#main-content-home .sm-market .sm-panel::before {
  content:""; position:absolute; inset:0;z-index:-1;pointer-events:none;
  background:url("/assets/home-encore/mk-market-banner.webp") no-repeat center/100% 100%;
  mask-image:linear-gradient(90deg,#000d,transparent 17%,transparent 82%,#000 96%),
             linear-gradient(0deg,#000 0%,#000b 13%,transparent 32%),
             linear-gradient(180deg,#0008,transparent 19%);
}
#main-content-home .sm-market .sm-panel::after {
  content:""; position:absolute; inset:70% 0 0; z-index:-1; pointer-events:none;
  background:radial-gradient(ellipse at 64% 71%,#e5edf72d,transparent 42%);
}
#main-content-home .sm-market .sm-product { padding:3% 3% 2.3% 0; width:56%; }
#main-content-home .sm-market .sm-product img {
  filter:drop-shadow(3px 15px 12px #070b0e80);
}
#main-content-home .sm-market .sm-product .sm-legend {
  border-color:#d3d7da79; background:none;
  padding-right:4%;
}
#main-content-home .sm-market .showcase-caption {
  grid-area:2 / 1; align-self:start; padding-top:0; padding-bottom:clamp(28px,3vw,52px);
}
#main-content-home .sm-market .showcase-caption h3 { max-width:13ch; }
#main-content-home .sm-market .sm-selectors {
  padding-inline:2.2%; background:linear-gradient(180deg,#34383b,#222528); border-top:1px solid #8e939852;
}
#main-content-home .sm-market .sm-select {
  color:#d4d7db; background:transparent; border-color:transparent;
}
#main-content-home .sm-market .sm-select img {
  background:none;
}
#main-content-home .sm-market .sm-select:has(:checked) {
  color:#fff; background:linear-gradient(0deg,#b3bdc51b,transparent);
  border-bottom-color:#d1d7da;
}
#main-content-home .sm-market .sm-select:has(:focus-visible) { outline-color:#f1f3f5; }
@media(hover:hover) { #main-content-home .sm-market .sm-select:hover { background:#a6afb71b; } }
@layer ar-home-catalog {
  body[data-ar-page=home] #main-content-home .home-showcase .sm-market .sm-legend span { color:#f4f6f8 !important; }
  body[data-ar-page=home] #main-content-home .home-showcase .sm-market .sm-legend strong { color:#fff !important; }
  body[data-ar-page=home] #main-content-home .home-showcase .sm-market .showcase-primary {
    background:linear-gradient(180deg,#f2f4f5,#ccd0d3) !important; color:#141719 !important;
    box-shadow:inset 0 0 0 1px #f5f6f7aa,0 3px 13px #02040575;
  }
  body[data-ar-page=home] #main-content-home .home-showcase .sm-market .showcase-primary span { color:#141719 !important; }
  body[data-ar-page=home] #main-content-home .home-showcase .sm-market .showcase-caption h3 { color:#f2f3f4 !important; }
}
@media (orientation:portrait) {
  html[data-unified-phone-layout] #main-content-home .sm-market {
    display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto auto auto;
    isolation:isolate; background:#101316;
  }
  html[data-unified-phone-layout] #main-content-home .sm-market .mk-store-mark {
    grid-area:1 / 1; align-self:start; order:0; width:90%; justify-self:center; margin:0;
    aspect-ratio:4.45; background:none; mask-image:var(--mk-lettering); mask-composite:add;
  }
  html[data-unified-phone-layout] #main-content-home .sm-market .sm-panel {
    grid-area:1 / 1 / 3 / 2; align-self:stretch; width:100%; aspect-ratio:1.39;
    background:
      radial-gradient(ellipse 63% 53% at 33% 61%,#879196 0%,#626d73 25%,#374045 57%,#1f262a 79%,transparent 100%),
      linear-gradient(120deg,#101416,#1b2022 68%,#0f1315);
  }
  html[data-unified-phone-layout] #main-content-home .sm-market .sm-product {
    width:87%; height:auto; aspect-ratio:1.9; align-self:end; padding:1% 0 4%; gap:6%;
  }
  html[data-unified-phone-layout] #main-content-home .sm-market .sm-selectors { grid-area:3 / 1; background:linear-gradient(180deg,#34383b,#222528); }
  html[data-unified-phone-layout] #main-content-home .sm-market .showcase-caption {
    grid-area:4 / 1;align-self:stretch; padding:calc(var(--reel-inset) * .85) var(--reel-inset) var(--reel-inset);
    background:linear-gradient(145deg,#171a1d,#0e1012);
  }
}

/* The hanging companion keeps her own anchor. The other companions share the foreground. */
#main-content-home #st-room-views.st-dorm-views .feature-cast {
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap:1.8%;
  box-sizing:border-box;
  padding:0 2.8% 1.7% 0;
}
#main-content-home #st-room-views.st-dorm-views .feature-cast img:not(.feature-cast-azeroth) {
  position:static;
  flex:none;
  height:auto;
  filter:drop-shadow(0 2px 1px #170f15ce) drop-shadow(1px 5px 4px #100b1280);
}
#main-content-home #st-room-views .feature-cast .feature-cast-sheep {width:13%;}
#main-content-home #st-room-views .feature-cast .feature-cast-avdi {width:15%;}
#main-content-home #st-room-views .feature-cast .feature-cast-agandar {width:17%;}

@media (orientation:landscape) and (max-height:600px) {
  html[data-unified-phone-layout] #main-content-home .st-sanctuary {grid-template-columns:40fr 60fr;}
  html[data-unified-phone-layout] #main-content-home .st-sanctuary .spread-copy {
    width:100%;
    box-sizing:border-box;
    padding:18px 16px 18px 26px;
    --spread-title:40px;
  }
  html[data-unified-phone-layout] #main-content-home .st-sanctuary .showcase-actions {gap:4px 12px;}
}

#main-content-home #st-room-views .feature-cast .feature-cast-azeroth {
  width: 16%;
  height: auto;
}

/* Keep the shop's native product-photography set at its original proportions on phones. */
html[data-unified-phone-layout] #main-content-home .sm-market .mk-store-mark img {
  content: url("/assets/home-encore/market-banner-detail.webp");
}
@media (orientation: landscape) {
  html[data-unified-phone-layout] #main-content-home .sm-market .sm-panel::before {
    background-image: url("/assets/home-encore/market-banner-detail.webp");
    background-size: cover;
  }
}
@media (orientation: portrait) {
  html[data-unified-phone-layout] #main-content-home .sm-market .sm-panel {
    aspect-ratio: 1.69;
    background: #11161a url("/assets/home-encore/market-stage-detail.webp") center / cover no-repeat;
  }
  html[data-unified-phone-layout] #main-content-home .sm-market .sm-panel::before {
    background: radial-gradient(ellipse 37% 48% at 33% 65%, rgb(190 201 207 / 36%), transparent);
    mask-image: none;
  }
  html[data-unified-phone-layout] #main-content-home .sm-market .sm-panel::after {
    content: none;
  }
  html[data-unified-phone-layout] #main-content-home .sm-market .sm-product {
    padding-bottom: 2.5%;
    aspect-ratio: 2.05;
  }
}
