.reference-home .bar{background:#0b0e17;border-bottom-color:#202435}
.reference-home .bar-row,.reference-home .menu{width:min(100% - 30px,1190px)}
.reference-home .bar-tools{gap:clamp(4px,1vw,14px)}
.reference-home .bar-tools>.square{background:none;border-color:transparent;font-size:1.45rem}
.reference-home #desktopNav{display:none}
.reference-home #savedLink{font-size:.8rem;border-color:#be716b;background:#13131f}
.reference-home #savedLink span{display:inline}
.reference-home .brand{direction:ltr;font-size:clamp(1rem,3.3vw,2rem)}
.reference-home .brand small{letter-spacing:.43em}
.reference-home .mobile-nav{background:#0e1421}
.reference-home .btn.primary:hover{background:#ffa192}

.reference-art{
  display:block;
  min-width:0;
  pointer-events:none;
  background-image:url('/assets/reference-art.webp');
  background-repeat:no-repeat;
  background-size:calc(86400% / var(--crop-w)) calc(153600% / var(--crop-h));
  background-position:calc(var(--crop-x) * 100% / (864 - var(--crop-w))) calc(var(--crop-y) * 100% / (1536 - var(--crop-h)));
}
/* Coordinates select the artwork from the supplied reference, leaving labels and controls to the site. */
.art-hero-city{--crop-x:0;--crop-y:64;--crop-w:448;--crop-h:269}
.art-category-0{--crop-x:720;--crop-y:349;--crop-w:118;--crop-h:53}
.art-category-1{--crop-x:582;--crop-y:349;--crop-w:117;--crop-h:53}
.art-category-2{--crop-x:445;--crop-y:349;--crop-w:120;--crop-h:53}
.art-category-3{--crop-x:307;--crop-y:349;--crop-w:118;--crop-h:53}
.art-category-4{--crop-x:170;--crop-y:349;--crop-w:120;--crop-h:53}
.art-category-5{--crop-x:28;--crop-y:349;--crop-w:123;--crop-h:53}
.art-chapter-1{--crop-x:694;--crop-y:555;--crop-w:121;--crop-h:65}
.art-chapter-2{--crop-x:526;--crop-y:555;--crop-w:151;--crop-h:65}
.art-chapter-3{--crop-x:363;--crop-y:555;--crop-w:146;--crop-h:65}
.art-chapter-4{--crop-x:197;--crop-y:555;--crop-w:145;--crop-h:65}
.art-chapter-5{--crop-x:53;--crop-y:555;--crop-w:125;--crop-h:65}
.art-secret-mural{--crop-x:271;--crop-y:725;--crop-w:151;--crop-h:120}
.art-clipboard{--crop-x:17;--crop-y:1252;--crop-w:151;--crop-h:160}
.art-crew{--crop-x:423;--crop-y:1252;--crop-w:219;--crop-h:162}
.art-footer{--crop-x:0;--crop-y:1442;--crop-w:322;--crop-h:93}

.reference-hero{
  display:grid;
  grid-template-columns:minmax(0,45%) minmax(0,55%);
  isolation:isolate;
  width:min(100%,1200px);
  min-height:clamp(222px,31.4vw,376px);
  margin-inline:auto;
  background:linear-gradient(164deg,#4b2145 0%,#242039 42%,#101825 81%);
  border-bottom-color:#594054;
}
.reference-hero .art-hero-city{
  position:absolute;
  z-index:-1;
  inset:0 auto 0 0;
  width:62%;
  -webkit-mask-image:linear-gradient(to right,#000 79%,transparent 100%);
  mask-image:linear-gradient(to right,#000 79%,transparent 100%);
}
.reference-hero-copy{
  grid-column:1;
  display:grid;
  align-content:center;
  justify-items:center;
  align-self:stretch;
  padding:clamp(12px,2vw,28px) clamp(8px,2.2vw,34px);
  text-align:center;
}
.reference-hero h1{
  font-size:clamp(1.14rem,4vw,3.5rem);
  font-weight:950;
  line-height:1.11;
  text-shadow:1px 3px #150b20;
}
.reference-hero h1 .game-title{
  position:relative;
  display:block;
  width:max-content;
  max-width:100%;
  margin:.05em auto .08em;
  font-family:"Segoe UI",Arial,sans-serif;
  font-size:clamp(2.15rem,8.4vw,7.2rem);
  font-weight:1000;
  letter-spacing:-.085em;
  white-space:nowrap;
  text-shadow:2px 3px #0e0a18;
}
.reference-hero .game-title em{color:#ff70ad}
.reference-hero .game-title em::after{
  position:absolute;content:"";inset:auto -2px -2px auto;width:40%;height:4px;
  border-radius:100% 25% 80% 20%;transform:rotate(-6deg);background:#ff7d8f;
}
.reference-hero p{margin:8px 0 12px;font-size:clamp(.72rem,1.65vw,1.18rem);line-height:1.45}
.reference-hero .actions{justify-content:center;gap:clamp(5px,1vw,11px)}
.reference-hero .outline{border-color:var(--mint);background:#102029}
.reference-hero .outline .icon{color:var(--mint)}
.reference-hero .btn{font-size:clamp(.72rem,1.5vw,1.06rem);padding-inline:8px;min-height:38px}

.reference-sections{width:min(100% - 28px,1152px);margin:12px auto 18px;display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.reference-categories{gap:9px;grid-template-columns:repeat(3,minmax(0,1fr))}
.reference-categories .tile-0{--accent:#fb9c76}
.reference-categories .tile-1,.reference-categories .tile-5{--accent:#ed83b6}
.reference-categories .tile-2{--accent:#f3c06a}
.reference-categories .tile-3{--accent:#67d9cb}
.reference-categories .tile-4{--accent:#af88e9}
.reference-categories .reference-category{
  display:grid;
  grid-template-rows:minmax(45px,6vw) auto;
  padding:0;
  background:linear-gradient(180deg,#212236,#10131b 95%);
  box-shadow:inset 0 0 0 1px var(--accent);
}
.reference-category .reference-art{height:100%;padding:0}
.reference-category>span:last-child{font-size:clamp(.8rem,1.55vw,1.14rem);padding:4px;min-height:28px}
.reference-category:hover{background:#262537;transform:translateY(-1px)}
.reference-sections .search-box{
  border:2px solid transparent;
  background:linear-gradient(#111a29,#111a29) padding-box,linear-gradient(105deg,#ff9b82,#df77b9) border-box;
}
.reference-sections .search-box input,.reference-sections .search-box button{background:transparent}
.reference-sections .search-box input{font-size:clamp(.84rem,1.6vw,1.04rem)}

.reference-dispatch{
  display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px 8px;
  padding:6px 9px;border:1px solid #865057;border-radius:10px;background:#201923;
}
.dispatch-heading{display:flex;gap:6px;align-items:center;color:#ffc1aa;white-space:nowrap}
.dispatch-heading h2{font-size:clamp(.85rem,1.6vw,1.12rem)}
.dispatch-heading .icon{color:var(--coral)}
.dispatch-stories{grid-row:2;grid-column:1/-1;min-width:0}
.reference-dispatch .dispatch-story{padding:0;border:0;background:none;display:grid;gap:1px;align-content:center}
.dispatch-story h3{font-size:clamp(.82rem,1.45vw,1.04rem);padding-inline-start:2px}
.dispatch-meta{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.72rem}
.dispatch-meta>span{background:#492731;color:#ffd7cc;padding:1px 6px;border-radius:4px;font-weight:750}
.dispatch-tools,.dispatch-navigation{display:flex;align-items:center;gap:4px}
.dispatch-tools{justify-self:end}
.dispatch-navigation button{
  display:grid;place-items:center;width:34px;height:32px;padding:0;
  border:1px solid #65424e;border-radius:6px;background:#161521;color:#ffc6d1;
}
.dispatch-navigation button:hover{border-color:var(--mint);color:var(--mint)}
.dispatch-tools .text-link{white-space:nowrap;font-size:.74rem;padding-inline-start:4px}

.reference-chapters{min-width:0}
.reference-chapters .section-head,.reference-missions .section-head{margin-bottom:7px}
.reference-chapter-grid{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(116px,30%);gap:8px;width:100%;overflow:auto;padding:2px 2px 5px;scroll-snap-type:inline proximity}
.reference-chapter{scroll-snap-align:start;grid-template-rows:auto auto 1fr auto;gap:3px}
.reference-chapter:hover,.reference-chapter.chapter-active{border-color:var(--mint)}
.reference-chapter .reference-art{height:clamp(58px,8vw,97px)}
.reference-chapter .meta{color:var(--text);font-size:.9rem}
.reference-chapter strong{color:var(--muted);font-size:.77rem;font-weight:540}
.reference-chapter .progress progress{accent-color:var(--mint)}
.reference-chapter .progress span{direction:ltr;font-weight:750}

.reference-feature{
  display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  overflow:hidden;border-radius:12px;border:1px solid var(--edge);
  background:#151421;min-width:0;
}
.reference-feature>.reference-art,.reference-map-image{grid-column:2;grid-row:1;min-width:0;min-height:100%}
.reference-feature-copy{grid-column:1;grid-row:1;display:grid;gap:6px;align-content:center;padding:clamp(9px,1.5vw,16px)}
.reference-feature-copy h2{font-size:clamp(1.02rem,2.3vw,1.55rem)}
.reference-feature-copy p{font-size:clamp(.76rem,1.55vw,1.02rem);color:var(--muted)}
.reference-feature-copy>.btn{justify-self:start;font-size:.84rem;min-height:36px}
.reference-feature-copy h2 .icon{color:var(--pink)}
.reference-discovery{border-color:#b27276;background:#251a24}
.reference-feature-copy .reference-badge{
  justify-self:start;
  color:#26131c;background:var(--coral);border-radius:5px;
  padding:2px 9px;font-weight:900;font-size:.82rem;
}
.reference-discovery .art-secret-mural{min-height:132px}
.reference-map{background:#10232b;border-color:#3d6e70}
.reference-map-image{height:100%;width:100%;min-height:135px;max-height:230px;aspect-ratio:2.35;object-fit:cover;object-position:center 63%}
.reference-map .reference-feature-copy h2 .icon{color:var(--mint)}
.reference-map .reference-feature-copy>.primary{justify-self:stretch}
.reference-map-links .btn{padding:4px 6px;font-size:.72rem;min-height:27px}
.reference-map-links .btn:first-child{color:#191522;background:#f190b9;border-color:#f190b9}
.reference-missions .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.reference-missions .mission-card{grid-template-columns:32% minmax(0,1fr)}
.reference-missions .card-body{gap:3px;padding:6px}
.reference-missions .card-body h3{font-size:.9rem}
.reference-missions .card-body p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.reference-missions .en,.reference-missions .meta,.reference-missions .card-body p{font-size:.73rem}
.reference-bottom{display:grid;gap:8px}
.reference-bottom .reference-feature{border-color:#88566d;background:#241923}
.reference-bottom .reference-feature h2{font-size:clamp(.9rem,1.7vw,1.3rem)}
.reference-bottom .reference-feature h2 .icon{color:var(--pink)}
.reference-bottom .art-crew,.reference-bottom .art-clipboard{min-height:116px}
.quick-checks{display:grid;gap:3px}
.quick-checks .check{min-height:26px;font-size:.77rem;border-bottom:1px solid #563849;color:var(--muted)}
.quick-checks input{width:16px;height:16px;flex-shrink:0}

.reference-home .footer{padding:0;background:#0c101b;border-block-start-color:#61354f}
.reference-home .footer .wrap{width:min(100% - 24px,1152px);display:grid;grid-template-columns:auto minmax(0,1fr) 33%;gap:8px 12px;align-content:center}
.reference-home .footer nav{grid-column:1/3;grid-row:2;gap:2px}
.reference-home .footer nav a{font-size:.7rem;padding:4px}
.reference-home .footer .brand{grid-row:1;grid-column:1;font-size:clamp(.86rem,2.7vw,1.5rem)}
.reference-home .footer .muted{grid-column:2;grid-row:1;font-size:.72rem}
.reference-home .footer .version{grid-column:1;grid-row:3;margin-bottom:5px;font-size:.68rem}
.reference-home .art-footer{grid-row:1/4;grid-column:3;min-height:76px}

@media (min-width:660px){
  .reference-home .mobile-nav{display:none}
  .reference-home .footer{margin-bottom:0}
  .reference-categories{grid-template-columns:repeat(6,minmax(0,1fr))}
  .reference-chapter-grid{grid-auto-columns:minmax(0,1fr)}
  .reference-hero .btn{min-height:44px;padding-inline:14px}
  .reference-dispatch{grid-template-columns:auto minmax(0,1fr) auto;gap:11px}
  .dispatch-stories{grid-row:auto;grid-column:auto}
  .reference-dispatch .dispatch-story{grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:4px}
  .dispatch-story h3{grid-column:1;grid-row:1}
  .dispatch-meta{grid-column:2;grid-row:1}
  .reference-missions .cards{grid-template-columns:repeat(3,minmax(0,1fr))}
  .reference-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:439px){
  .reference-home .bar-row{width:calc(100% - 16px)}
  .reference-home .bar-tools>.square{min-width:34px}
  .reference-home .brand img{width:29px}
  .reference-home #savedLink{padding-inline:5px}
  .reference-hero{grid-template-columns:minmax(0,48%) minmax(0,52%)}
  .reference-hero .art-hero-city{width:60%}
  .reference-hero .actions>*{flex-basis:100%}
  .reference-hero .actions{width:min(100%,160px)}
  .reference-sections{width:calc(100% - 20px)}
  .reference-feature{grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr)}
  .reference-feature-copy{gap:5px;padding:8px}
  .reference-missions .cards{grid-template-columns:1fr}
}
.art-character-jason{--crop-x:243;--crop-y:85;--crop-w:89;--crop-h:103}
.art-character-lucia{--crop-x:139;--crop-y:72;--crop-w:101;--crop-h:117}
