:root {
  --normal-text-size: 1.4rem;
  --title-text-size: 2.1rem;
}

html,
body {
  background-color: #000;
  font-size: 62.5%;
  height: 100%;
  cursor: default;
  pointer-events: auto;
  margin: 0;
  padding: 0;
}

body {
  color: var(--text-color);
}

.promo-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10rem;
  margin-top:10rem;
  margin-bottom: 5rem;
}

.promo-title img {
  width: 50rem;
}

.promo-title span {
  color:rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: var(--normal-text-size);
  line-height: 1.8rem;
}

.container {
  height: fit-content;
  font-family: "Pretendard", sans-serif;
  background-image: url(/img/promo.png);
  background-position: 10% 10%;
  background-size: cover;
  color: #fff;
  padding: 1.6rem;
}

.card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 10rem;
}

.card {
  padding: 3rem 2rem;
  background:rgba(10,10,10,0.8);
  backdrop-filter: blur(6px);
  border: 0.1rem solid #2f2f2f;
  border-radius: 1rem;
  width: 50rem;
  white-space: nowrap;
}

.title-area {
  text-align: center;
  margin-bottom: 1.6rem;
}
.subtitle {
  font-size: var(--normal-text-size);
  opacity: 0.7;
  margin-bottom: 0.4rem;
}
.main-title {
  font-size: var(--title-text-size);
  font-weight: 700;
}


.no {
  color: #797979;
  background-color: #292624;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1rem;
  font-size: var(--normal-text-size);
}


table thead th {
  text-align: left;
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-bottom: 0.1rem solid rgba(255,255,255,0.2);
}

table thead .th-1 {
  width: 5%;
}

table thead .th-2 {
  width: 15%;
}

table thead .th-3 {
  width: 15%;
}

table thead .th-4 {
  width: 65%;
}


table tbody tr {
  padding: 0.6rem 0;
}


table td {
  padding: 0.8rem 1rem;
  background: transparent;
  border-bottom: 0.1rem solid rgba(255,255,255,0.08);
}

table tr td img {
  width: 2rem;
}

table tbody {
  perspective: 500px;
  transform-style: preserve-3d;
}

table tbody tr {
  opacity: 0;
  transform: rotateX(-90deg);
  transform-origin: top center;
  transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease-in;
  will-change: transform, opacity;
}

table tbody tr.flip-active {
  opacity: 1;
  transform: rotateX(0deg);
}


/* 금은동 랭커 컬러 */
.rank-1 { background:linear-gradient(110deg,#c6b27b,#221f1a); }
.rank-2 { background:linear-gradient(110deg,#979591,#221f1a); }
.rank-3 { background:linear-gradient(110deg,#6e675c,#221f1a); }
.rank-oth { background:rgba(255,255,255,0.05); }

.mafia {
  background-color: #030303;
  width: 100%;
  height: 10rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  color: #fff;
  font-size: var(--title-text-size);
}
.squad-name {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 8rem;
}

.user {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 5rem;
}

/*노트북 & 태블릿 가로 : 1024px-1279px*/
@media all and (min-width:1024px) and (max-width:1519px){
  html, body{
    font-size: 100%;
  }
  
  .promo-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top:5rem;
  margin-bottom: 5rem;
  }
  
  .promo-title img {
  width: 30rem;
  }
  
  .card-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  }
  
  .rank-1 { background:#b1a073; }
  .rank-2 { background:#9d9c9a; }
  .rank-3 { background:#62594a; }
  
}

/*태블릿 가로 : 620px-1023px*/
@media all and (min-width:690px) and (max-width:1023px){
  html, body{
    font-size: 150%;
  }
  
  .promo-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top:5rem;
  margin-bottom: 5rem;
  }
  
  .promo-title img {
  width: 15rem;
  }
  
  .card-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  }
  
  .card {
  width: 90%;
  }
  
  .rank-1 { background:#b1a073; }
  .rank-2 { background:#9d9c9a; }
  .rank-3 { background:#62594a; }
  
  .squad-name {
    display: none;
  }
  
  table thead .th-1 {
  width: 5%;
  }

  table thead .th-2 {
    width: 5%;
  }

  table thead .th-3 {
    width: 10%;
  }

  table thead .th-4 {
    width: 80%;
  }
  
}

/*모바일 : 619px*/
@media all and (max-width:689px){
  html, body{
    font-size: 150%;
  }
  
  .promo-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top:5rem;
  margin-bottom: 5rem;
  }
  
  .promo-title img {
  width: 10rem;
  }
  
  .card-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
    gap: 1.6rem;
  }
  
  .card {
  padding: 1rem 1rem;
  width: 90%;
  }
  
  .squad-name {
    display: none;
  }
  
  table thead .th-1 {
  width: 5%;
  }

  table thead .th-2 {
    width: 5%;
  }

  table thead .th-3 {
    width: 10%;
  }

  table thead .th-4 {
    width: 80%;
  }
  
  table td {
  padding: 0.8rem 1rem;
  background: transparent;
  border-bottom: 0.1rem solid rgba(255,255,255,0.08);
  }
  
  .rank-1 { background:#b1a073; }
  .rank-2 { background:#9d9c9a; }
  .rank-3 { background:#62594a; }
}

