.background {
  background-image: url('../images/mu-background.png');
}

.hero-banner {
  min-height: 235px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-bottom: 36px;
  padding: 38px clamp(25px, 5vw, 60px);
  border: 1px solid rgba(115, 207, 255, .32);
  background: url('../images/mu-fpt-banner-1500x300.png') center / cover no-repeat;
  text-align: left;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .38);
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 7, 16, .48), rgba(2, 7, 16, .04) 58%);
}

.banner-content { position: relative; z-index: 1; }
.banner-content p { margin: 0 0 7px; color: #73d9ff; font-size: 12px; font-weight: 700; letter-spacing: 4px; }
.banner-content h1 { margin: 0; color: #fff; font-size: clamp(32px, 5vw, 54px); line-height: 1; letter-spacing: 1px; text-shadow: 0 3px 15px #000; }
.banner-content span { display: block; margin-top: 13px; color: rgba(255, 255, 255, .8); font-size: 14px; }

.select-card {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
  background-position: center 18%;
  background-size: cover;
  isolation: isolate;
}

main {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  justify-content: flex-start;
  padding: 10px 0 38px;
}

.hero-banner {
  width: min(1180px, 92%);
  min-height: 0;
  aspect-ratio: 5 / 1;
  margin-left: auto;
  margin-right: auto;
}

.select-grid {
  width: min(1180px, 92%);
  margin: 0 auto;
}

footer { width: min(1180px, 92%); margin-left: auto; margin-right: auto; }

.select-card { min-height: 370px; }

.select-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(3, 8, 17, .18) 0%, rgba(3, 8, 17, .76) 46%, rgba(3, 8, 17, .99) 100%);
  transition: background .25s ease;
}

@property --glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.hero-banner::after,
.select-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 2px;
  pointer-events: none;
  background: conic-gradient(from var(--glow-angle), transparent 0 72%, #61d7ff 79%, #e8fbff 83%, #61d7ff 87%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: frame-light 4s linear infinite;
  box-shadow: inset 0 0 8px rgba(79, 202, 255, .35), 0 0 8px rgba(79, 202, 255, .28);
  will-change: background-position;
  transform: translateZ(0);
}

.hero-banner::after { animation-duration: 6s; }

@keyframes frame-light {
  to { --glow-angle: 360deg; }
}

@keyframes border-light {
  0% { background-position: 100% 100%; }
  50% { background-position: 0 0; }
  100% { background-position: -100% -100%; }
}

.select-card:hover::before {
  background: linear-gradient(to bottom, rgba(3, 8, 17, .1) 0%, rgba(3, 8, 17, .68) 46%, rgba(3, 8, 17, .98) 100%);
}

.select-card:nth-child(1) { background-image: url('../images/mu-dark-knight.jpg'); background-position: 50% 15%; }
.select-card:nth-child(2) { background-image: url('../images/mu-dark-wizard.jpg'); background-position: 56% 15%; }
.select-card:nth-child(3) { background-image: url('../images/mu-fairy-elf.jpg'); background-position: 55% 15%; }
.select-card:nth-child(4) { background-image: url('../images/mu-magic-gladiator.jpg'); background-position: 50% 15%; }

.select-card h2,
.select-card p,
.select-card .number,
.select-card .type,
.select-card .button {
  position: relative;
  overflow: hidden;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .85);
}

.select-card h2 {
  width: fit-content;
  margin-top: 118px;
  padding: 7px 11px;
  border-left: 3px solid #67d7ff;
  background: rgba(2, 8, 18, .88);
  color: #fff;
  font-family: "Chakra Petch", "Be Vietnam Pro", sans-serif;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-shadow: 0 3px 12px #000, 0 0 18px rgba(103, 215, 255, .75);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.select-card p {
  width: fit-content;
  margin-top: 5px;
  padding: 6px 10px;
  background: rgba(2, 8, 18, .86);
  color: #fff;
  font-family: "Chakra Petch", "Be Vietnam Pro", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .015em;
  text-shadow: 0 2px 7px #000;
}
.select-card .button {
  border-color: rgba(103, 215, 255, .72);
  background: rgba(2, 10, 21, .94);
  color: #fff;
  box-shadow: inset 0 0 18px rgba(63, 190, 255, .1), 0 0 15px rgba(63, 190, 255, .08);
  font-family: "Chakra Petch", "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.select-card:hover .button { box-shadow: inset 0 0 24px rgba(63, 190, 255, .2), 0 0 20px rgba(63, 190, 255, .2); }

.select-card .button::after {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 12%, #53d5ff 34%, #fff 44%, #53d5ff 54%, transparent 76%);
  background-size: 320% 320%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-light 1.45s linear infinite;
  box-shadow: inset 0 0 7px rgba(90, 215, 255, .42);
  will-change: background-position;
  transform: translateZ(0);
}

.open-info,
.community-list a,
.modal-box h2,
.modal-label {
  font-family: "Chakra Petch", "Be Vietnam Pro", sans-serif;
}

.open-info strong { font-size: 14px; letter-spacing: .035em; }

@media (min-resolution: 120dpi) {
  .select-card,
  .hero-banner { transform: translateZ(0); }
}

.open-info {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding: 11px 12px;
  border-left: 2px solid #67d7ff;
  background: rgba(2, 9, 18, .78);
  text-shadow: 0 2px 8px #000;
}

.open-info > span {
  display: block;
  margin-bottom: 5px;
  color: #72d8ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.open-info strong {
  display: block;
  color: #ffd875;
  font-size: 13px;
  font-weight: 700;
}

.open-info strong.opened { color: #72f2a4; }
.open-info small { display: block; margin-top: 4px; color: rgba(255, 255, 255, .62); font-size: 10px; }

@media (max-width: 560px) {
  .hero-banner { min-height: 0; aspect-ratio: 5 / 1; padding: 0; background-position: center; }
  .hero-banner::before { background: linear-gradient(to top, rgba(2, 7, 16, .45), rgba(2, 7, 16, .03) 60%); }
  .select-card { min-height: 335px; }
  .select-card h2 { margin-top: 78px; }
}
