:root {
  --blue: #005efe;
  --grey: #7080b8;
  --red: #A11010;
  --gold: #C49C37;
  --mono: 'Share Tech Mono', monospace;
}

* { 
box-sizing: 
border-box; 
margin: 0; 
padding: 0; 
}



@font-face {
  font-family: 'NilliesLoveLetters';
  src: url('assets/Nillies%20LoveLetters.ttf') format('truetype');
}

body {
  min-height: 100vh;
  color: black;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  position: relative;
  overflow-x: hidden;
  background: linear-gradient(0deg, rgba(0, 94, 254, 1) 0%, rgba(215, 230, 255, 1) 50%);
  background-attachment: fixed;
      animation: fadeIn 3s ease forwards;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('assets/riya.webp');
  background-size: 800px auto;
  background-position: -40px 300px;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.3;
  z-index: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page {
  position: relative; 
  z-index: 2;
  max-width: 900px; 
  margin: 0 auto;
  padding: 52px 40px 60px;
}


.borders {
  position: fixed; 
  z-index: 10; 
  pointer-events: none;
}

  .border-top {
  top: 0; 
  left: 0; 
  right: 0; 
  height: 25px;
  border-bottom: 1px solid rgba(46,79,199,0.3);
  border-top: none; 
  margin-top: 3px;
}

.border-left {
  top: 0;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 100%;
  border-right: 2px dotted rgba(46,79,199,0.3);
  border-bottom: none;
}

.bg-squares {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.front-square {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.dots {
  position: fixed;
  top: 30px;
  left: 55px;
  opacity: 0.5;
  z-index: -1;
}


.block { 
  margin-bottom: 52px; }

.block-label {
  display: flex; 
  align-items: center; 
  gap: 12px;
  margin-bottom: 24px;}
  
.block-title {
  font-size: 25px; 
  font-weight: 900;
  color: var(--blue);
  -webkit-text-stroke: 0.5px black;
  text-transform: uppercase;
  transform: scaleX(1.2);
    transform-origin: left center;
      padding-right: 32px;
  }

.block-line { 
  flex:1; 
  height:1px; 
  background: var(--blue); 
  opacity: 0.5;}


.block-num { 
  font-size: 11px; 
color: var(--red);}




.header {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  margin-bottom: 50px;
}

.header-tab { 
  font-size: 10px; 
  color: 
  var(--grey); 
  letter-spacing: 0.12em; 
  
}


.header-title { 
  font-size: 10px; 
  color: var(--grey); 
}




.overview-body {
  display: grid;
  grid-template-columns: 1fr 200px 160px;
  gap: 25px;
  align-items: start;
  margin: -20px;
}







.title {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 50px; 
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  color: black;
  -webkit-text-stroke: 0.6px var(--blue);
  background: linear-gradient(to right,  rgba(0, 94, 254, 0.5), rgba(0,0,0,0));
  padding: 2px 6px;
  transform: scaleX(1.2);
  z-index: 1;
  margin-bottom: -10px;
}



.rarity { 
  font-size: 25px; 
  color: var(--gold); 
  letter-spacing: -3px;
  -webkit-text-stroke: 0.5px var(--blue);
  margin-top: -10px;
  pointer-events: none;
  
}


.bio {
  line-height: 1.7;
  margin-top: 14px;
  max-width: 400px;
  margin-top: 10px;
}




.avatar-img-wrap { 
  display:flex; 
flex-direction:column; 
}

.avatar-img {
  position: relative; 
  width:100%; 
  aspect-ratio: 3/4;
  border: 1px solid black;
  pointer-events: none;
}

.avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

}


.info { 
  display:flex; 
  flex-direction:column; 
  gap: 10px;
  padding-top:4px; 
}

.info-one { 
  display:flex; 
  flex-direction:column; 
  gap:1px; 
  padding-bottom:8px; 
}

.info-two { 
  font-size: 12px; 
  color: var(--red);
  letter-spacing:0.05em; 
}








.about-grid { 
  display: grid; 
  grid-template-columns: 1.5fr 1fr; 
  gap: 32px; 
  margin-top: 10px;
}
  



.palette-box {
border: 1px solid rgba(0, 94, 254, 0.5);
  padding: 14px 16px;
    margin-top: 10px;
}

.palette-label { 
  font-size: 9px; 
  color: var(--grey); 
  letter-spacing:0.12em; 
  margin-bottom:10px; 
}
.palette-row { 
  display:flex; gap:8px; 
  align-items:center; 
}

.colors {
  width:28px; 
  height:28px; 
  border:1px solid rgba(46,79,199,0.2);
  cursor: pointer; 
  transition: transform 0.15s;
}

.colors:hover { 
  transform: scale(1.1); 
}






.relationship-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 32px; 
}

.portrait {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border: 1px solid var(--blue);
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  align-self: flex-start;
}

.portrait:hover {
    filter: blur(1px);

}

  .reltext { 
  font-size: 12px;
  line-height: 1.7; 
}







.talents-grid { 
  display:grid; 
  grid-template-columns:1fr 1fr; 
  gap:14px; 
}

.talent-card {
  border: 1px solid var(--blue); 
  padding: 18px 16px;
}
.red-card { 
  border-color: var(--red); 
  background: rgba(184,169,106,0.05);
}

.talent-icon { 
  font-size:20px; 
  color:var(--blue-light); 
  margin-bottom:8px;
}

.red-card .talent-icon { 
  color: var(--red);
}

.talent-name { 
  font-family: Helvetica, Arial, sans-serif;
  font-size:18px; 
  margin-bottom:2px; 
}

.talent-type { 
  font-size:10px; 
  letter-spacing:0.1em; 
  margin-bottom:8px; 
}

.talent-desc { 
  font-family: Helvetica, Arial, sans-serif;
  font-size:14px; 
  line-height:1.6; 
  opacity:0.8; 
}


.role-label { 
  font-size: 10px; 
  color: var(--red); 
  letter-spacing:0.1em; 
  margin-top: 10px;
  margin-bottom:10px; 
}

.roles { 
  display:flex; 
  flex-wrap:wrap; 
  gap:7px; }
  
.role {
  border: 1px solid var(--blue); 
  padding: 4px 10px;
  font-size: 11px; 
  opacity:0.75;
  cursor: default;
}

.red-role { 
  border-color: var(--red); 
  color: var(--red); 
  opacity:0.9; 
}





.back-button {
  background:none; 
  border:1px solid var(--red);
  color:black; 
  font-family:var(--mono); 
  font-size:11px;
  padding:10px 20px; 
  cursor:pointer; 
  letter-spacing:0.1em;
}
  


.callout { 
  display: flex; 
  gap: 12px; 
  align-items: flex-start; 
  margin-bottom: 18px; }
  
  
.ctitle { 
  font-family: var(--mono); 
  font-weight: 600;
  letter-spacing:0.08em; 
  margin-top: 10px;
  margin-bottom:4px; 
 background: linear-gradient(to right,  rgba(0, 94, 254, 0.5), rgba(0,0,0,0));
} 
  
.ctext { 
  text-align: justify;
  line-height: 1.7; 
}
  
.callout-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;}




.corner { 
  position: absolute; 
  width:14px; 
  height:14px; 
  border-color: var(--red); 
  border-style:solid; 
}

.corner.tl {
  top:-3px; 
left:-3px; 
border-width:2px 0 0 2px; 
}

.corner.tr { 
  top:-3px; 
  right:-3px; 
  border-width:2px 2px 0 0;
}

.corner.bl { 
  bottom:-3px; 
  left:-3px; 
  border-width:0 0 2px 2px; 
}

.corner.br { 
  bottom:-3px; 
  right:-3px; 
  border-width:0 2px 2px 0;
}

.red { 
  color: var(--red);
}

a:link {
  color: var(--red);
    text-decoration: underline;
  text-decoration-style: dotted;
}

a:visited {
  color: var(--red);
    text-decoration: underline;
  text-decoration-style: dotted;
}

a:hover {
  color: var(--blue);
    text-decoration: underline;
  text-decoration-style: dotted;
  filter: blur(1px);
}

.tooltip {
  position: relative;
  cursor: default;
      text-decoration: underline;
  text-decoration-style: dotted;
}


.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  border: 0.5px solid white;
  color: white;
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tooltip:hover::after {
  opacity: 1;
}





@media (max-width: 600px) {

  html, body {
    overflow-x: hidden;
    max-width: 100%;
    }
    
  .page {
    padding: 30px 16px 40px;
  }

  .dots {
    left: -18px;
    width: 100%;
  }
  .overview-body {
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto auto;
    margin: 0;
  }
  
    .overview-body > div:first-child {
    grid-column: 1 / -1;
    }

 .avatar-img-wrap {
    grid-column: 1;
    grid-row: 2;
  }
  
    .info {
    grid-column: 2;
    grid-row: 2;
  }

  .title {
   font-size: 38px;
   transform: scaleX(1.2);
   transform-origin: left center;
   margin-left: -15px;
  }
  
  .rarity {
    margin-top: 5px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .relationship-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .border-left {
    display: none;
  }


  .border-top {
    display: block;
  }

  .bg-squares,
  .front-square {
    display: none;
  }
  .header {
    margin-bottom: 24px;
  }
  svg[style*="position: fixed"] {
    display: none;
  }

  body::before {
    display: none;
  }
}