:root {
  --pixel: "Press Start 2P", monospace;
  --mono: "DM Mono", monospace;
  --serif: "Cormorant Garamond", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #080b09;
  color: #f4f0df;
  font-family: var(--mono);
  overflow-x: hidden;
}

button {
  font: inherit;
  cursor: pointer;
}

#app {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}




.top-status {
  color: rgba(255,255,255,.45);
}

.screen {
  min-height: 100vh;
  display: none;
  position: relative;
  animation: appear .7s ease both;
}

.screen.active {
  display: flex;
}

@keyframes appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CHARACTER SELECT */

#selection {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 5% 60px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #080810;
}

#selection::before {
    content: "";
    position: absolute;
    inset: -10px;
    z-index: -1;

    background:
        linear-gradient(
            rgba(0, 0, 0, .80),
            rgba(0, 0, 0, .80)
        ),
        url("images/mainpagebg.jpg") center / cover no-repeat;

    filter: blur(7px);
    transform: scale(1.03);
}

.select-kicker {
  font-size: 9px;
  letter-spacing: 5px;
  color: #9caa8c;
  margin-bottom: 28px;
}

.select-title {
  font-family: var(--serif);
  font-size: clamp(45px, 8vw, 100px);
  font-weight: 400;
  letter-spacing: -3px;
  text-align: center;
  line-height: .9;
}

.select-title span {
  display: block;
  font-family: var(--pixel);
  font-size: clamp(9px, 1.4vw, 14px);
  letter-spacing: 4px;
  margin-top: 24px;
  color: #b5c39c;
}

.hero-grid {
  width: min(100%, 1050px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 65px;
}

.hero-card {
  position: relative;
  height: 410px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  background: #17251a;
  text-align: left;
  color: white;
  transition: .45s;
}

.hero-card:hover {
  transform: translateY(-9px);
  border-color: rgba(220,230,185,.7);
}

.hero-card.ellayah-card {
    background:
        linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.35)),
        url("images/ellayah_forest_castle.png") center / cover no-repeat;
}

.hero-card.xidize-card {
    background:
        linear-gradient(rgba(0,0,0,.2), rgba(0,0,0,.45)),
        url("images/xidize_crimson_dusk.png") center / cover no-repeat;
}

.card-world {
    position: absolute;
    inset: -5px;
    overflow: hidden;
    backdrop-filter: blur(3px);
}

.card-world::before {
  content: "";
  position: absolute;
  width: 140%;
  height: 60%;
  bottom: -22%;
  left: -20%;
  border-radius: 50%;
  background: rgba(0,0,0,.2);
  filter: blur(25px);
}

.card-label {
  position: absolute;
  top: 25px;
  left: 25px;
  font-size: 8px;
  letter-spacing: 3px;
  color: rgba(255,255,255,.7);
}

.card-name {
  position: absolute;
  left: 27px;
  bottom: 55px;
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 57px);
  z-index: 3;
}

.card-subtitle {
  position: absolute;
  left: 30px;
  bottom: 30px;
  font-size: 8px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.6);
  z-index: 3;
}

.card-arrow {
  position: absolute;
  right: 28px;
  bottom: 35px;
  font-size: 24px;
  z-index: 3;
  transition: .3s;
}

.hero-card:hover .card-arrow {
  transform: translateX(8px);
}

/* PROFILE */


#profile {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #080810;
}

#profile::before {
    content: "";
    position: absolute;
    inset: -15px;
    z-index: -1;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(5px);
    transform: scale(1.04);
    pointer-events: none;
}

#profile.ellayah-world::before {
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.40),
            rgba(0, 0, 0, 0.40)
        ),
        url("images/ellayah_green_ruins.png");
}

#profile.xidize-world::before {
    background-image: url("images/xidize_moonlit_ruins.png");
}

.back-button {
    position: absolute;
    top: 28px;
    left: 5%;
    z-index: 10;

    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);

    color: #fff;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;

    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}


.profile-layout {
  width: min(100%, 1200px);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%,100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.world-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  letter-spacing: 4px;
  white-space: nowrap;
  color: rgba(255,255,255,.55);
}

.profile-info {
  padding: 20px 0;
}

.profile-kicker {
  font-size: 9px;
  letter-spacing: 4px;
  color: rgba(255,255,255,.55);
  margin-bottom: 20px;
}

.profile-name {
  font-family: var(--serif);
  font-size: clamp(55px, 8vw, 100px);
  font-weight: 400;
  line-height: .85;
  margin-bottom: 22px;
}

.profile-role {
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(255,255,255,.55);
  margin-bottom: 40px;
}

.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid rgba(255,255,255,.2);
  margin-bottom: 25px;
}

.tab {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.42);
  font-size: 9px;
  letter-spacing: 2px;
  padding: 0 0 13px;
  position: relative;
}

.tab.active {
  color: white;
}

.tab.active::after {
  content: "";
  position: absolute;
  height: 2px;
  bottom: -1px;
  left: 0;
  width: 100%;
  background: #d6d4b6;
}

.tab-content {
  min-height: 155px;
  animation: appear .3s ease;
}

.bio-text {
    display: flex;
    flex-direction: column;
    gap: 13px;
    max-width: 470px;
}

.bio-text p {
    margin: 0;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.7;
    color: rgba(255,255,255,.75);
}

.bio-text span {
    color: #b5c39c;
    margin-right: 8px;
}

.ability-list {
  display: grid;
  gap: 12px;
}

.ability {
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.12);
  color: white;
  text-align: left;
  transition: .25s;
}

.ability:hover {
  background: rgba(255,255,255,.1);
  padding-left: 21px;
}

.ability strong {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 400;
  margin-bottom: 7px;
}

.ability span {
  font-size: 10px;
  color: rgba(255,255,255,.55);
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  display: inline-block;
  text-decoration: none;
  color: white;
  border: 1px solid rgba(255,255,255,.25);
  padding: 14px 18px;
  font-size: 9px;
  letter-spacing: 2px;
  transition: .25s;
}

.social-link:hover {
  background: rgba(255,255,255,.15);
}

.profile-footer {
  margin-top: 35px;
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,.35);
  font-size: 8px;
  letter-spacing: 2px;
}

.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(228,236,184,.7);
  box-shadow: 0 0 8px currentColor;
  animation: drift linear infinite;
}

.xidize-world .particle {
  background: rgba(182,173,235,.8);
}

@keyframes drift {
  from { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  15% { opacity: .8; }
  85% { opacity: .5; }
  to { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

@media(max-width: 750px) {
  .topbar { padding: 22px 5%; }
  .hero-grid { grid-template-columns: 1fr; max-width: 430px; }
  .hero-card { height: 340px; }
  #profile { padding: 100px 7% 40px; }
  .profile-layout { grid-template-columns: 1fr; gap: 0; }
  .profile-info { padding-top: 15px; }
  .profile-name { font-size: 65px; }
  .world-caption { bottom: 0; }
}

.card-character {
  position: absolute;
  height: 290px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  image-rendering: pixelated;
  z-index: 2;
  transition: .5s;
}

.hero-card:hover .card-character {
  transform: translate(-50%, -54%);
}

.hero-card.ellayah-card,
.hero-card.xidize-card {
    isolation: isolate;
}

.hero-card.ellayah-card::before,
.hero-card.xidize-card::before {
    content: "";
    position: absolute;
    inset: -5px;
    background: inherit;
    filter: blur(3px);
    z-index: 0;
    pointer-events: none;
}

.hero-card .card-character,
.hero-card .card-name,
.hero-card .card-subtitle {
    z-index: 2;
}

.profile-visual {
    height: 560px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-character {
    position: relative;
    z-index: 2;
    height: 700px;
    max-width: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,.35));
    animation: float 4s ease-in-out infinite;
}

@media(max-width: 750px) {
    .profile-visual {
        height: 360px;
    }

    .profile-character {
        height: 300px;
    }
}
/* DISCOGRAPHY */

.discography-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.release-card {
    display: block;
    min-width: 0;
    color: white;
    text-decoration: none;
    transition: .3s ease;
}

.release-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.13);
    transition: .3s ease;
}

.release-card:hover {
    transform: translateY(-5px);
}

.release-title {
    margin-top: 11px;
    font-size: 9px;
    color: rgba(255,255,255,.9);
}

.release-meta {
    margin-top: 5px;
    font-size: 8px;
    color: rgba(255,255,255,.4);
}
