@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Cormorant+Garamond:ital,wght@0,500;1,500&display=swap');

:root{
  --teal-hi:#1c6a6c;
  --teal:#0f3d3e;
  --teal-lo:#082627;
  --gold:#d4af37;
  --gold-bright:#f3dd93;
  --gold-dim:#8a6f2b;
  --ink:#2c2115;
  --parchment:#f4e8cc;
  /* --night:#060f14; */
}

*{
  box-sizing:border-box;
}

html, body{
  margin:0;
  height:100%;
  font-family:'Cormorant Garamond', serif;
}

body{ 
  margin:0;
  min-height:100vh;
  
  display:grid;
  grid-template-columns: repeat(auto-fit, 220px);
  justify-content: center;
  gap:28px;

  padding:120px 20px 60px;

  overflow-y:auto;
  overflow-x:hidden;
  isolation:isolate;

  background: linear-gradient(135deg, rgb(25, 148, 87), rgb(28, 176, 159), rgb(15, 49, 104));
    background-attachment: fixed;
}

/* elemental-symbols watermark: fixed to the viewport, just like the
   gradient above, so it stays put while the cards scroll past it */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background-image:url('img/elements.png');
  background-repeat:no-repeat;
  background-position:center;
  background-size:min(60vw, 620px);
  opacity:0.18;
  mix-blend-mode:soft-light;
  pointer-events:none;
  z-index:-1;
}

@keyframes drift-bg{
  0%{ background-position: 0 0, 0 0, 0% 50%; }
  50%{ background-position: 0 0, 0 0, 100% 50%; }
  100%{ background-position: 0 0, 0 0, 0% 50%; }
}

body::-webkit-scrollbar{  
  width:8px; 
} 
 
body::-webkit-scrollbar-track{ 
  background:rgba(255,255,255,0.05); 
} 
 
body::-webkit-scrollbar-thumb{ 
  background:linear-gradient(180deg, var(--gold-dim), var(--gold)); 
  border-radius:10px; 
} 
 
body{ 
  scrollbar-width:thin; 
  scrollbar-color: var(--gold-dim) rgba(255,255,255,0.05); 
}


header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  padding:16px 28px;
  display:flex;
  align-items:center;
  z-index:10;
  background:linear-gradient(180deg, rgba(6,15,20,0.85) 0%, rgba(6,15,20,0) 100%);
  pointer-events:none;
}

header img{
  height:44px;
  width:auto;
  filter: drop-shadow(0 0 8px rgba(212,175,55,0.5));
}

.search-bar{
  position:fixed;
  margin:10px;
  top:22px;
  right:32px;
  z-index:11;
  width:auto;
  height:auto;
  display:flex;
  align-items:center;
  gap:8px;
 
  padding:8px 16px;
  border-radius:999px;
  background:linear-gradient(160deg, #163f40, #082627);
  border:1px solid rgba(212,175,55,0.5);
  box-shadow:0 8px 18px rgba(0,0,0,0.4);
  overflow:visible;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
 
.search-bar:focus-within{
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(212,175,55,0.18), 0 8px 18px rgba(0,0,0,0.4);
}
 
.search-bar input{
  background:transparent;
  border:none;
  outline:none;
  width:180px;
  font-family:'Cormorant Garamond', serif;
  font-weight: bold;
  font-size:1rem;
  color:var(--gold-bright);
}
 
.search-bar input::placeholder{
  color:rgba(243,221,147,0.55);
}
 
.search-bar button{
  display:flex;
  align-items:center;
  justify-content:center;
  background:none;
  border:none;
  padding:0;
  color:var(--gold-bright);
  cursor:pointer;
  opacity:0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
 
.search-bar button:hover{
  opacity:1;
  transform:scale(1.10);
}

@media (max-width: 480px){
  .search-bar{
    top:14px;
    right:12px;
    padding:6px 12px;
    gap:6px;
  }
  .search-bar input{
    width:110px;
    font-size:0.85rem;
  }
  .search-bar button svg{
    width:15px;
    height:15px;
  }
}

.new-char {
  background:linear-gradient(135deg, #1be8d7, #0e7d7d);
  font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-weight: bold;
  color: #ff004c;
  border: 1px solid #a9e7ff;
  border-radius: 12px;
  padding: 2px;
  padding-left: 20px;
  padding-right: 20px;
  text-shadow: none;
}

body > div{ 
  position:relative; 
  width:220px;
  height:323px;

  border-radius:10px; 
  overflow:hidden; 
  background:linear-gradient(160deg, #163f40 0%, #0a2a2b 100%); 

  box-shadow: 
    inset 0 0 0 1px rgba(212,175,55,0.35), 
    0 12px 30px rgba(0,0,0,0.5); 

  transition:transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease; 
  transform: translateZ(0); 
}

/* search filtering: truly removed from layout when hidden */
body > div.search-hidden{
  display:none;
}
 
/* the "swipe up" entrance state — starts here, then transitions to the
   card's normal resting state (opacity:1, transform:translateZ(0)) the
   instant this class is removed */
body > div.search-entering{
  opacity:0;
  transform:translateY(26px);
}


body > div:hover{
  transform: translateY(-10px) scale(1.04);
  box-shadow:
    inset 0 0 0 1px var(--gold),
    0 0 26px rgba(212,175,55,0.35),
    0 18px 40px rgba(0,0,0,0.6);
  z-index:2;
}

/*Archon/Special Charcaters Hover Modification*/
.Pyro-Archon:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow:
    inset 0 0 0 1px #ff4500,
    0 0 26px rgba(255, 69, 0, 0.5),
    0 18px 40px rgba(139, 0, 0, 0.6);
  z-index: 2;
}

.Hydro-Archon:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow:
    inset 0 0 0 1px #1e90ff,
    0 0 26px rgba(30, 144, 255, 0.5),
    0 18px 40px rgba(0, 0, 139, 0.6);
  z-index: 2;
}

.Geo-Archon:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow:
    inset 0 0 0 1px #ffd700,
    0 0 26px rgba(255, 215, 0, 0.5),
    0 18px 40px rgba(184, 134, 11, 0.6);
  z-index: 2;
}

.Dendro-Archon:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow:
    inset 0 0 0 1px #7fff00,
    0 0 26px rgba(127, 255, 0, 0.5),
    0 18px 40px rgba(34, 139, 34, 0.6);
  z-index: 2;
}

.Electro-Archon:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow:
    inset 0 0 0 1px #ba55d3,
    0 0 26px rgba(186, 85, 211, 0.5),
    0 18px 40px rgba(75, 0, 130, 0.6);
  z-index: 2;
}

.Anemo-Archon:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow:
    inset 0 0 0 1px #00ffcc,
    0 0 26px rgba(0, 255, 204, 0.5),
    0 18px 40px rgba(0, 139, 139, 0.6);
  z-index: 2;
}

/* Coming Soon */
.Cryo-Archon:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow:
    inset 0 0 0 1px #b0e0e6,
    0 0 26px rgba(176, 224, 230, 0.5),
    0 18px 40px rgba(70, 130, 180, 0.6);
  z-index: 2;
}

.Lunar-God:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow:
    inset 0 0 0 1px #e0e0ff,
    0 0 26px rgba(180, 150, 255, 0.5),
    0 18px 40px rgba(30, 20, 60, 0.7);
  z-index: 2;
}
/*=============================================*/

body > div img{
  width:100%;
  height:100%;

  object-fit: cover;
  object-position: center top; 
  display:block;
  filter:saturate(1.05) contrast(1.02);
  transition: transform 0.5s ease, filter 0.5s ease;
}

body > div:hover img{
  transform:scale(1.08);
}

body > div p{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  margin:0;
  padding:22px 10px 12px;
  text-align:center;

  font-family:'Cinzel', serif;
  font-weight:600;
  font-size:1.05rem;
  letter-spacing:0.03em;
  color:var(--gold-bright);
  text-shadow: 0 2px 6px rgba(0,0,0,0.9);

  background:linear-gradient(180deg, rgba(6,15,20,0) 0%, rgba(6,15,20,0.85) 60%, rgba(6,15,20,0.92) 100%);
  z-index:1;
}


/*Archon/Special Charcaters Hover Modification*/
.Pyro-Archon:hover p{
  background: linear-gradient(180deg, #060f1400 0%, #ff4500bf 60%, #8b0000e6 100%);
}

.Hydro-Archon:hover p{
  background: linear-gradient(180deg, #060f1400 0%, #0073ffbf 60%, #02008be6 100%);
}

.Geo-Archon:hover p{
  background: linear-gradient(180deg, #060f1400 0%, #ff9900bf 60%, #8b6600e6 100%);
}

.Dendro-Archon:hover p{
  background: linear-gradient(180deg, #060f1400 0%, #00ff37bf 60%, #158b00e6 100%);
}

.Electro-Archon:hover p{
  background: linear-gradient(180deg, #060f1400 0%, #9d00ffbf 60%, #53008be6 100%);
}

.Anemo-Archon:hover p{
  background: linear-gradient(180deg, #060f1400 0%, #00ffd0bf 60%, #008b66e6 100%);
}

/* Coming Soon */
.Cryo-Archon:hover p {
  background: linear-gradient(180deg, #060f1400 0%, #4682b4d9 60%, #1e3c64f2 100%);
}

.Lunar-God:hover p{
 background: linear-gradient(180deg, rgba(6,15,20,0) 0%, rgba(45, 25, 75, 0.85) 60%, rgba(20, 10, 40, 0.95) 100%);
}