body {
      font-family:Arial, Helvetica, sans-serif;
      background: #1a1a1a;
      color: white;
      display: flex;
      gap: 20px;
      padding: 20px;
    }

    .form {
      width: 300px;
    }

    input, textarea, select {
      width: 100%;
      margin-bottom: 10px;
      padding: 5px;
    }

    #card {
      font-family:Georgia, 'Times New Roman', Times, serif;
      left: 250px;
      top: 200px;
      width: 900px;
      height: 450px;
      position: relative;
      background: #333;
      overflow: hidden;
      border: 3px solid #999;
      transform: scale(1.5);
    }

    #bg {
      position: absolute;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -1;
    }

    #bg-grad{
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      object-fit: cover;
    }
    #profile {
      position: absolute;
      top: 20px;
      left: 20px;
      width: 120px;
      height: 120px;
      object-fit: fill;
      border: 2px dotted white;
    }

    #name {
      position: absolute;
      top: 20px;
      left: 160px;
      width: 500px;
      font-size: 27px;
      background-color: #1a1a1a93;
      border-radius: 15px;
      padding: 5px;
    }
    #title {
      position: absolute;
      top: 70px;
      left: 160px;
      width: 210px;
      font-size: 15px;
      border-radius: 15px;
      padding: 3px;
      color: lemonchiffon;
      background-color: #1a1a1a93;
    }

    #desc-bg {
        position: absolute;
        top: 115px;
        left: 160px;
        background-image: url("/pages/guildcardforreal/imagens/oldpaper.png");
        height: 220px;
        width: 600px;
        outline-style:solid;
        outline-color: #88000093;
        outline-width: 5px;
        padding: 10px;        /* espaço interno */
        box-sizing: border-box;
        color: #1a1a1a;
        text-shadow: #e9e9e9 1px 1px 2px;
        overflow: hidden;     /* corta o excesso */
        opacity: 70%;
    }
    #desc {
         width: 100%;
        height: 100%;
        color: black;
        overflow: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: pre-wrap; /* respeita ENTER do textarea */
        text-align: left;      /* melhor leitura */
        display: -webkit-box;
        -webkit-line-clamp: 10;
        -webkit-box-orient: vertical;
        line-height: 1.4em;
        max-height: calc(1.4em * 10);
        color: #1a1a1a;
        opacity: 100%;
}

    textarea{
        resize: none;
        overflow: auto;
    }

    #weapon-cont{
        position: absolute;
        bottom: -1px;
        left: 530px;
        transform: scale(0.8);
        background-image: url("/pages/guildcardforreal/imagens/backgroundweapon.png");
        outline-style: solid;
        outline-color: #d39b0093;
        outline-width: 2px;
        height: 120px;
        width: 400px;
        padding: 4px;
        box-sizing: border-box;
        overflow: hidden;
        text-align: center;
        font-size: 50px;
    }
    .gallery img {
      width: 120px;
      height: 80px;
      object-fit: fill;
      margin: 2px;
    }

    .gallery {
      position: absolute;
      bottom: 10px;
      left: 10px;
      border: 3px dotted #999;
      display: flex;
    }

    .weapons {
      width: 100%;
      height: 100%;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 4px;
      font-size: 0px;
      overflow: hidden;
      padding: 2px;
      box-sizing: border-box;
      margin: 0;
      opacity: 100%;
    }

    .weapons b {
      width: 100%;
      font-size: 10px;
      opacity: 100%;
    }

    .weapon-icon {
      width: 32px;
      height: 32px;
      object-fit: contain;
      border: 3px dotted rgba(255,255,255,0.25);
      border-radius: 2px;
      background: rgba(0,0,0,0.35);
      padding: 3px;
      opacity: 100%;
    }

    .gicon {
      width: 100px;
      height: 80px;
      object-fit: contain;
      border: 1px solid rgba(255,255,255,0.25);
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.39);
      padding: 3px;
      
    }

    #favGam {
      position: absolute;
      top: 20px;
      right: 20px;
      text-align: center;
      font-size: 12px;
      z-index: 3;
    }
    #favGam-te {
      position: absolute;
      top: 8px;
      right: 32px;
      text-align: center;
      font-size: 12px;
      z-index: 3;
    }

    #Fg-Cont{
      align-items: center;
    }


    button {
      padding: 10px;
      width: 100%;
      cursor: pointer;
    }
    #weapon-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

#icon{
  height: 80px;
  width: 80px;
  padding-top: 20%;
}

#weapon-list label {
  background: #444;
  padding: 6px 4px;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  font-size: 11px;
  transition: 0.2s;
  user-select: none;
}

#weapon-list input {
  display: none;
}

#weapon-list label:hover {
  background: #666;
}

#weapon-list label:has(input:checked) {
  background: #c89b3c;
  color: black;
  font-weight: bold;
}

#favmons{
  position: absolute;
  top: 160px;
  left: 22px;
  height: 174px;
  width: 120px;
  text-align: center;
  background-image: url("/pages/guildcardforreal/imagens/backgroundfavmon.png");
  outline-style: solid;
  outline-color: #d3000093;
  outline-width: 2px;
  padding: 5px;
  box-sizing: border-box;
  overflow: hidden;
  color: black;
  font-size: 12px;
}

#famon {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  font-weight: bold;
}

/* Ajustes mínimos para mobile */
@media (max-width: 768px) {
  body {
    flex-direction: column;
    padding: 10px;
  }

  .form {
    width: 100%;
  }

  #card {
    left: 0;
    top: 0;
    transform: scale(1.0);
    margin: 0 auto;
  }
}

a{
  color: red;
}

#star1{
  position: absolute;
  width: 50px;
  height: 50px;
  top: 10px;
  right:10px;
  z-index: 3;
  display: none;
}